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:
parent
51f65c8ae6
commit
95ed2df795
11
maven.xml
11
maven.xml
@ -28,12 +28,23 @@
|
||||
<goal name="plugins:site" description="Create the web site root for all plugins">
|
||||
<attainGoal name="multiproject:site"/>
|
||||
</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">
|
||||
<j:set var="skipQuestion" value="${skip.main.site}"/>
|
||||
<j:if test="${!empty(skipQuestion) and skipQuestion==true}">
|
||||
<i:ask question="Would you like to regenerate and deploy the main plugins site (y/n)?" answer="ok" default="y"/>
|
||||
<j:if test="${ok == 'y'}">
|
||||
<attainGoal name="multiproject:site"/>
|
||||
<attainGoal name="site:sshdeploy"/>
|
||||
</j:if>
|
||||
</j:if>
|
||||
</goal>
|
||||
<postGoal name="site">
|
||||
<ant:move file="${maven.docs.dest}/projects-overview.html" tofile="${maven.docs.dest}/index.html"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user