New goal to publish all sites

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@321129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier 2005-10-14 14:15:30 +00:00
parent 51f65c8ae6
commit 95ed2df795

View File

@ -28,11 +28,22 @@
<goal name="plugins:site" description="Create the web site root for all plugins"> <goal name="plugins:site" description="Create the web site root for all plugins">
<attainGoal name="multiproject:site"/> <attainGoal name="multiproject:site"/>
</goal> </goal>
<goal name="plugins:deploy-all-sites" description="Create and deploy the web site for all plugins">
<!-- We don't want to have the question about to deploy the root site after each plugin -->
<ant:property name="skip.main.site" value="true"/>
<ant:property name="goal" value="site:deploy"/>
<attainGoal name="multiproject:goal"/>
<attainGoal name="multiproject:site"/>
<attainGoal name="site:deploy"/>
</goal>
<goal name="confirm-and-deploy-site"> <goal name="confirm-and-deploy-site">
<i:ask question="Would you like to regenerate and deploy the main plugins site (y/n)?" answer="ok" default="y"/> <j:set var="skipQuestion" value="${skip.main.site}"/>
<j:if test="${ok == 'y'}"> <j:if test="${!empty(skipQuestion) and skipQuestion==true}">
<attainGoal name="multiproject:site"/> <i:ask question="Would you like to regenerate and deploy the main plugins site (y/n)?" answer="ok" default="y"/>
<attainGoal name="site:sshdeploy"/> <j:if test="${ok == 'y'}">
<attainGoal name="multiproject:site"/>
<attainGoal name="site:sshdeploy"/>
</j:if>
</j:if> </j:if>
</goal> </goal>
<postGoal name="site"> <postGoal name="site">