2006-02-12 13:48:06 +00:00

43 lines
1.8 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: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 -->
<j:set var="skipQuestion" value="true" scope="parent"/>
<j:set var="goal" value="site:deploy"/>
<attainGoal name="multiproject:goal"/>
<attainGoal name="multiproject:site"/>
<attainGoal name="site:deploy"/>
</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"/>
<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"/>
</postGoal>
</project>