You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/11/24 20:57:18 UTC
cvs commit: maven plugins-site.xml
jvanzyl 2003/11/24 11:57:18
Added: . plugins-site.xml
Log:
o plugin site specific jelly. separating it to be integrated when i'm done decomposing
our massive maven.xml file.
Revision Changes Path
1.1 maven/plugins-site.xml
Index: plugins-site.xml
===================================================================
<project>
<!-- ================================================================== -->
<!-- G E N E R A T E P L U G I N D O C U M E N T A T I O N -->
<!-- ================================================================== -->
<goal name="maven:plugin-docs"
description="Build each Maven plugin's documentation">
<maven:reactor
basedir="${maven.plugins.directory}"
includes="*/project.xml"
goals="xdoc"
banner="Generating Docs For"
ignoreFailures="false"
/>
</goal>
<!--
These two goals are the start of the merge of plugin docs and
the main maven documentation. pre-xdoc-transform will be changed
from a 'goal' to a 'preGoal' on 'xdoc:transform'.
'postSite' will be changed to a 'postGoal' on 'site'.
Plugin docs will generated and then copied into
target/docs/reference/plugins/${plugin}/
A simple home page listing the plugins and linking to their
docs will be generated in pre xdoc:transform, and processed into
target/docs/reference/plugins/index.html
-->
<preGoal name="xdoc:transform">
<attainGoal name="multiproject:create-overview-page"/>
</preGoal>
<preGoal name="xdoc">
<j:if test="${pluginSite != null}">
<maven:reactor
basedir="${basedir}"
includes="src/plugins-build/*/project.xml"
goals="site"
banner="Generating site for"
ignoreFailures="false"
/>
<!-- create the parent directory for the docs -->
<mkdir dir="${maven.docs.dest}/reference/plugins"/>
<!-- copy them all to ${maven.docs.dest}/reference/plugins/${plugin.id}/ -->
<ant:fileScanner var="pluginProjects">
<fileset dir="${basedir}">
<include name="src/plugins-build/*/project.xml"/>
</fileset>
</ant:fileScanner>
<j:forEach items="${pluginProjects.iterator()}" var="plugin">
<j:set var="pluginName" value="${plugin.parentFile.name}"/>
<mkdir dir="${maven.docs.dest}/reference/plugins/${pluginName}/"/>
<copy toDir="${maven.docs.dest}/reference/plugins/${pluginName}/">
<fileset dir="src/plugins-build/${pluginName}/target/docs/">
<include name="**"/>
</fileset>
</copy>
</j:forEach>
</j:if>
</preGoal>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org