2006-03-10 23:17:33 +00:00

55 lines
2.5 KiB
XML

<!--
/*
* Copyright 2001-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<project xmlns:ant="jelly:ant" xmlns:i="jelly:interaction" xmlns:j="jelly:core" xmlns:maven="jelly:maven">
<goal name="plugins:build-all-sites" description="Create the web site for all plugins and for the root site">
<!-- And we generate & deploy the root site -->
<attainGoal name="multiproject:site"/>
<!-- We don't use the aggregate mode thus we manually generate all sites -->
<j:set var="goal" value="site"/>
<attainGoal name="multiproject:goal"/>
</goal>
<goal name="plugins:deploy-all-sites" description="Deploy the web site for all plugins and for the root site">
<maven:get var="method" plugin="maven-site-plugin" property="maven.site.deploy.method"/>
<!-- And we generate & deploy the root site -->
<attainGoal name="site:${method}deploy"/>
<!-- We deploy all sites -->
<j:set var="goal" value="site:${method}deploy"/>
<attainGoal name="multiproject:goal"/>
</goal>
<goal name="plugins:publish-all-sites" description="Publish the web site for all plugins and for the root site">
<!-- And we publish the root site -->
<attainGoal name="site:publish"/>
<!-- We publish all sites -->
<j:set var="goal" value="site:publish"/>
<attainGoal name="multiproject:goal"/>
</goal>
<goal name="confirm-and-deploy-site">
<j:if test="${(skipQuestion == null) or not (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"/>
<maven:get var="method" plugin="maven-site-plugin" property="maven.site.deploy.method"/>
<attainGoal name="site:${method}deploy"/>
</j:if>
</j:if>
</goal>
<postGoal name="site">
<ant:move file="${maven.docs.dest}/projects-overview.html" tofile="${maven.docs.dest}/index.html"/>
</postGoal>
</project>