o Updating JellyDoc plugin so that it can hooked dynamically into the site
using the dyna-site goal. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112925 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
33f38f75d0
commit
1296fd6b48
1 file changed
+46
-34
+46
-34
@@ -3,45 +3,57 @@
|
||||
<project
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:maven="jelly:maven"
|
||||
xmlns:doc="doc"
|
||||
xmlns:m="maven">
|
||||
|
||||
<goal name="maven-jellydoc-plugin:register">
|
||||
<doc:registerReport
|
||||
name=""
|
||||
link="jellydog"
|
||||
description="Jelly Tag Documentation."/>
|
||||
</goal>
|
||||
|
||||
<goal name="maven-jellydoc-plugin:report"
|
||||
prereqs="jellydoc"
|
||||
description="Generates the tag documentation"/>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- GENERATE THE XML DOCUMENTATION -->
|
||||
<!-- ================================================================== -->
|
||||
<goal name="jellydoc" prereqs="jellydoc:doclet"
|
||||
description="Generates the tag documentation">
|
||||
description="Generates the tag documentation">
|
||||
|
||||
<mkdir dir="${maven.build.dir}/generated-xdocs"/>
|
||||
<mkdir dir="${maven.build.dir}/generated-xdocs"/>
|
||||
|
||||
<j:file name="${maven.build.dir}/generated-xdocs/tags.xml">
|
||||
|
||||
<!-- the following should be way easier - j:include should support files -->
|
||||
<j:new var="file" className="java.io.File">
|
||||
<j:arg value="${plugin.resources}/${plugin.artifactId}.jelly"/>
|
||||
</j:new>
|
||||
|
||||
<!--
|
||||
<echo>About to include ${file.toURL()}</echo>
|
||||
-->
|
||||
|
||||
<j:include uri="${file.toURL().toString()}"/>
|
||||
</j:file>
|
||||
<j:file name="${maven.build.dir}/generated-xdocs/tags.xml">
|
||||
|
||||
<!-- the following should be way easier - j:include should support files -->
|
||||
<j:new var="file" className="java.io.File">
|
||||
<j:arg value="${plugin.resources}/${plugin.artifactId}.jelly"/>
|
||||
</j:new>
|
||||
|
||||
<!--
|
||||
<echo>About to include ${file.toURL()}</echo>
|
||||
-->
|
||||
|
||||
<j:include uri="${file.toURL().toString()}"/>
|
||||
</j:file>
|
||||
</goal>
|
||||
|
||||
|
||||
<!-- runs the Tag doclet -->
|
||||
<goal name="jellydoc:doclet" prereqs="jellydoc:init"
|
||||
description="A doclet which outputs all the Jelly tag related metadata as XML">
|
||||
description="A doclet which outputs all the Jelly tag related metadata as XML">
|
||||
|
||||
<j:if test="${context.getVariable('maven.jellydoc.packages') == null}">
|
||||
<j:set var="maven.jellydoc.packages" value="${pom.package}.*"/>
|
||||
</j:if>
|
||||
|
||||
<echo>Generating jellydoc for packages ${maven.jellydoc.packages}</echo>
|
||||
|
||||
<mkdir dir="target"/>
|
||||
|
||||
<echo>Source directory is ${basedir}/${pom.build.sourceDirectory}</echo>
|
||||
|
||||
<j:if test="${context.getVariable('maven.jellydoc.packages') == null}">
|
||||
<j:set var="maven.jellydoc.packages" value="${pom.package}.*"/>
|
||||
</j:if>
|
||||
|
||||
<echo>Generating jellydoc for packages ${maven.jellydoc.packages}</echo>
|
||||
|
||||
<mkdir dir="target"/>
|
||||
|
||||
<echo>Source directory is ${basedir}/${pom.build.sourceDirectory}</echo>
|
||||
|
||||
<javadoc
|
||||
sourcepath="${basedir}/${pom.build.sourceDirectory}"
|
||||
packagenames="${maven.jellydoc.packages}"
|
||||
@@ -50,13 +62,13 @@
|
||||
doclet="org.apache.maven.jellydoc.TagXMLDoclet">
|
||||
</javadoc>
|
||||
|
||||
<!-- if ran inside the reactor then lets copy the generated file -->
|
||||
<copy tofile="${maven.build.dir}/taglib.xml" file="${user.dir}/target/taglib.xml"/>
|
||||
<!-- if ran inside the reactor then lets copy the generated file -->
|
||||
<copy tofile="${maven.build.dir}/taglib.xml" file="${user.dir}/target/taglib.xml"/>
|
||||
</goal>
|
||||
|
||||
<!-- runs the XML doclet -->
|
||||
<goal name="jellydoc:xml-doclet" prereqs="jellydoc:init"
|
||||
description="Creates an XML representation of the doclet information">
|
||||
description="Creates an XML representation of the doclet information">
|
||||
|
||||
<javadoc
|
||||
sourcepath="${basedir}/${pom.build.sourceDirectory}"
|
||||
@@ -69,12 +81,12 @@
|
||||
</goal>
|
||||
|
||||
|
||||
<!-- sets the classpath used for doclet invocations -->
|
||||
<!-- sets the classpath used for doclet invocations -->
|
||||
<goal name="jellydoc:init">
|
||||
|
||||
<!-- just in case this is ran before a compile -->
|
||||
<mkdir dir="${maven.build.dir}"/>
|
||||
|
||||
<!-- just in case this is ran before a compile -->
|
||||
<mkdir dir="${maven.build.dir}"/>
|
||||
|
||||
<path id="doclet.classpath">
|
||||
<path refid="maven.dependency.classpath"/>
|
||||
<pathelement path="${plugin.dir}"/>
|
||||
|
||||
Reference in new issue
Block a user