o fixing links and generation output directory so that the tag lib

docs now come out on the site correctly.


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jvanzyl 2003-02-13 02:29:47 +00:00
parent 1296fd6b48
commit dc228b8534

View File

@ -8,8 +8,8 @@
<goal name="maven-jellydoc-plugin:register"> <goal name="maven-jellydoc-plugin:register">
<doc:registerReport <doc:registerReport
name="" name="Jelly Tag Documentation"
link="jellydog" link="tags"
description="Jelly Tag Documentation."/> description="Jelly Tag Documentation."/>
</goal> </goal>
@ -23,9 +23,9 @@
<goal name="jellydoc" prereqs="jellydoc:doclet" <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="${genDocs}"/>
<j:file name="${maven.build.dir}/generated-xdocs/tags.xml"> <j:file name="${genDocs}/tags.xml">
<!-- the following should be way easier - j:include should support files --> <!-- the following should be way easier - j:include should support files -->
<j:new var="file" className="java.io.File"> <j:new var="file" className="java.io.File">
@ -63,7 +63,7 @@
</javadoc> </javadoc>
<!-- if ran inside the reactor then lets copy the generated file --> <!-- if ran inside the reactor then lets copy the generated file -->
<copy tofile="${maven.build.dir}/taglib.xml" file="${user.dir}/target/taglib.xml"/> <copy tofile="${genDocs}/taglib.xml" file="${user.dir}/target/taglib.xml"/>
</goal> </goal>
<!-- runs the XML doclet --> <!-- runs the XML doclet -->
@ -84,8 +84,11 @@
<!-- sets the classpath used for doclet invocations --> <!-- sets the classpath used for doclet invocations -->
<goal name="jellydoc:init"> <goal name="jellydoc:init">
<j:set var="genDocs"
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.gen.docs')}"/>
<!-- just in case this is ran before a compile --> <!-- just in case this is ran before a compile -->
<mkdir dir="${maven.build.dir}"/> <mkdir dir="${genDocs}"/>
<path id="doclet.classpath"> <path id="doclet.classpath">
<path refid="maven.dependency.classpath"/> <path refid="maven.dependency.classpath"/>