Files
maven-plugins/plugins-site/maven.xml
T
aheritier c64c892dc1 New subproject to store the main site for plugins.
It's needed to avoid conflicts between settings for the site and settings for multiproject goals (to tests plugins for example).

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@375138 13f79535-47bb-0310-9956-ffa450edef68
2006-02-06 00:12:59 +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>