jvanzyl 2002/06/26 14:13:01
Modified: src/templates/build/plugins/docs plugin.jelly
Log:
Nothing left in the jelly plugin except for the xdoc generation. I've
split up the rest into invidual plugins.
Revision Changes Path
1.2 +18 -284
jakarta-turbine-maven/src/templates/build/plugins/docs/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/templates/build/plugins/docs/plugin.jelly,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- plugin.jelly 26 Jun 2002 19:30:07 -0000 1.1
+++ plugin.jelly 26 Jun 2002 21:13:01 -0000 1.2
@@ -4,169 +4,10 @@
<goal
name="docs"
- prereqs="jdepend-metrics, junit-report,checkstyle-report, change-log,
- activity-log, task-list, generate-xdocs,docbook-simple, docs:site"
+ prereqs="generate-xdocs, docs:site"
description="o Generate html project documentation xdoc sources">
</goal>
- <goal
- name="docs-quick"
- prereqs="generate-xdocs, docbook-simple,docs:site"
- description="o Generates documentation that are quickly generated.">
- </goal>
-
- <goal
- name="jdepend-metrics"
- if="maven.sourcesPresent"
- description="o Generiates html from jdepend metrics">
- <maven-ant antfile="${maven.home}/plugins/metrics/build.xml"
- target="jdepend-xml"
- inheritRefs="true" inheritAll="true"
- exportRefs="true" exportAll="true" />
- </goal>
-
- <goal
- name="junit-report"
- if="maven.unitTestSourcesPresent"
- description="o Generates xdoc from junit test case runs">
- <maven-ant antfile="${maven.home}/plugins/test/build.xml"
- target="junit-xml"
- inheritRefs="true" inheritAll="true"
- exportRefs="true" exportAll="true" />
- </goal>
-
- <goal
- name="checkstyle-report"
- if="maven.sourcesPresent"
- description="o Generates html from checkstyle report">
- <maven-ant antfile="${maven.home}/plugins/core/build.xml"
- target="check-source"
- inheritRefs="true" inheritAll="true"
- exportRefs="true" exportAll="true" />
- </goal>
-
- <!-- ================================================================== -->
- <!-- C R O S S R E F E R E N C E S O U R C E S -->
- <!-- ================================================================== -->
-
- <goal
- name="cross-ref"
- prereqs="do-cross-ref"/>
-
- <goal
- name="do-cross-ref"
- if="maven.sourcesPresent">
- <!-- If the 'startDir' attribute changes we need to update
- CodeTransform.java in o.a.m.jxr, this will be fixed. -->
-
- <echo>${maven.sourcesPresent}</echo>
-
- <jxr
- sourcepathref="maven.src.set"
- destDir="${maven.jxr.destdir}"
- javadocDir="${maven.javadoc.destdir}"
- imageFolder="${maven.home}/images/folder.gif"
- imageFile="${maven.home}/images/file.gif">
- </jxr>
-
- <!-- The last two parameters don't really matter but the
- task craps out if they aren't there. -->
-
- </goal>
-
- <!-- ================================================================== -->
- <!-- T A S K C R E A T I O N -->
- <!-- ================================================================== -->
-
- <goal name="task-list"
- prereqs="do-task-list"
- />
-
- <goal
- name="do-task-list"
- if="maven.sourcesPresent">
-
- <task-parser
- projectDescriptor="project.xml"
- base="${maven.src.dir}"
- includes="**/*.java"
- outputFile="${maven.gen.docs}/task-list.xml"
- />
-
- </goal>
-
- <!-- ================================================================== -->
- <!-- C H A N G E L O G R E P O R T -->
- <!-- ================================================================== -->
-
- <goal
- name="change-log"
- prereqs="do-change-log"
- />
-
- <goal name="do-change-log">
-
- <change-log
- projectDescriptor="project.xml"
- baseDir="."
- output="${maven.gen.docs}/changelog.xml"
- range="${maven.changelog.range}"
- factory="${maven.changelog.factory}"
- />
-
- </goal>
-
- <!-- ================================================================== -->
- <!-- C V S A C T I V I T Y R E P O R T -->
- <!-- ================================================================== -->
-
- <goal
- name="activity-log"
- prereqs="do-activity-log"
- />
-
- <goal name="do-activity-log">
-
- <change-log
- projectDescriptor="project.xml"
- baseDir="."
- output="${maven.build.dir}/activity-log.xml"
- range="${maven.activitylog.range}"
- factory="${maven.changelog.factory}"
- />
-
- <!-- Transform the activity log into developer activity first -->
- <dvsl
- basedir="${maven.build.dir}"
- destdir="${maven.gen.docs}/"
- extension=".xml"
- force="true"
- toolboxfile="${maven.home}/stylesheets/toolbox.props"
- style="${maven.home}/stylesheets/developer-activity.dvsl"
- includes="activity-log.xml"
- outputencoding="${maven.docs.outputencoding}">
- <!-- Need to add the maven jar to load the toolbox -->
- <classpath refid="maven-classpath"/>
- <tool name="toolbox.string.range" value="${maven.activitylog.range}"/>
- <tool name="toolbox.string.basedir" value="${basedir}"/>
- </dvsl>
-
- <!-- Transform the activity log into file activity-->
- <dvsl
- extension=".xml"
- force="true"
- toolboxfile="${maven.home}/stylesheets/toolbox.props"
- style="${maven.home}/stylesheets/file-activity.dvsl"
- in="${maven.build.dir}/activity-log.xml"
- out="${maven.gen.docs}/file-activity-report.xml">
- <!-- Need to add the maven jar to load the toolbox -->
- <classpath refid="maven-classpath"/>
- <tool name="toolbox.string.basedir" value="${basedir}"/>
- <tool name="toolbox.string.range" value="${maven.activitylog.range}"/>
- </dvsl>
-
-
- </goal>
<!-- ================================================================== -->
<!-- P R O J E C T D O C U M E N T A T I O N -->
<!-- ================================================================== -->
@@ -185,20 +26,6 @@
</goal>
<!-- ================================================================== -->
- <!-- S I M P L E D O C B O O K D O C U M E N T A T I O N -->
- <!-- ================================================================== -->
- <goal
- name="docbook-simple"
- if="maven.docbook-simple.ok"
- description="Transform any docbook-simple source into xdocs for later use">
-
- <style basedir="${maven.src.docbook-simple}"
- destdir="${maven.gen.docs}" extension=".xml"
- style="${maven.home}/plugins/docs/docbook2document.xsl"
- includes="**/*.xml, **/*.sgml"/>
- </goal>
-
- <!-- ================================================================== -->
<!-- D V S L D O C U M E N T A T I O N -->
<!-- ================================================================== -->
@@ -330,69 +157,18 @@
</copy>
</goal>
- <goal
- name="fo"
- prereqs="do-fo"
- description="o Generate XSL:FO project documentation"/>
-
- <goal name="do-fo">
-
- <mkdir dir="${maven.docs.dest}"/>
-
- <java classname="org.apache.xalan.xslt.Process" fork="yes">
- <classpath>
- <pathelement location="${lib.repo}/xercesImpl-2.0.0.jar"/>
- <pathelement location="${lib.repo}/xmlParserAPIs-2.0.0.jar"/>
- <pathelement location="${lib.repo}/xalan-2.1.0.jar"/>
- </classpath>
- <arg value="-in"/>
- <!-- FIXME: Using ${maven.docs.src} here causes the build to fail because
- xalan constructs the path relative to the current directory
- even if it is an absolute path. -->
- <arg value="xdocs/navigation.xml"/>
- <arg value="-out"/>
- <arg value="${maven.docs.dest}/project.fo"/>
- <arg value="-xsl"/>
- <arg value="${maven.home}/stylesheets/project2fo.xslt"/>
- <arg value="-param"/>
- <arg value="basePath"/>
- <arg value="${maven.docs.src}"/>
- </java>
-
- </goal>
-
- <goal
- name="pdf"
- prereqs="fo, do-pdf"
- description="o Generate PDF project documentation"/>
-
- <goal name="do-pdf">
-
- <java classname="org.apache.fop.apps.Fop" fork="yes">
- <classpath>
- <pathelement location="${lib.repo}/fop-0.20.3.jar"/>
- <pathelement location="${lib.repo}/batik.jar"/>
- <pathelement location="${lib.repo}/logkit-1.0.jar"/>
- <pathelement location="${lib.repo}/avalon-framework-4.0.jar"/>
- <pathelement location="${lib.repo}/xercesImpl-2.0.0.jar"/>
- </classpath>
- <arg line="-fo ${maven.docs.dest}/project.fo -pdf
${maven.docs.dest}/project.pdf"/>
- </java>
-
- </goal>
-
<!-- ================================================================== -->
<!-- S I T E -->
<!-- ================================================================== -->
<goal
name="site"
- prereqs="do-site, post-site-callback"
+ prereqs="do-site"
/>
<goal
name="do-site"
- prereqs="docs,javadocs,cross-ref"
+ prereqs="docs,cross-ref"
/>
<!-- ================================================================== -->
@@ -400,8 +176,15 @@
<!-- ================================================================== -->
<goal
- name="check-maven-username"
+ name="check-maven-username">
+
+ <!--
unless="maven.username">
+
+ Not sure if there's an unless jelly tag or what syntax I need
+ to test for null.
+
+ -->
<fail>
+------------------------------------------------------------------
@@ -422,9 +205,10 @@
/>
<goal
- name="do-deploy-site"
- if="maven.username">
-
+ name="do-deploy-site">
+
+ <j:if test="${flags.mavenUserName}">
+
<echo>
siteAddress = ${maven.siteAddress}
siteDirectory = ${maven.siteDirectory}
@@ -447,59 +231,9 @@
</exec>
<delete file="${maven.final.name}-site.tar.gz"/>
-
- </goal>
-
- <!-- ================================================================== -->
- <!-- J A V A D O C S -->
- <!-- ================================================================== -->
-
- <goal
- name="javadocs"
- prereqs="do-javadocs"
- description="o Generates the Javadoc API documentation"
- />
-
- <goal
- name="do-javadocs"
- if="maven.sourcesPresent">
-
- <!-- Get the year to display in the Javadocs -->
- <tstamp>
- <format property="year" pattern="${maven.inceptionYear}-yyyy"/>
- </tstamp>
-
- <property
- name="copyright"
- value="Copyright &copy; ${year} ${maven.organization}. All Rights
Reserved."
- />
-
- <echo>
- javadoc.destdir = ${maven.javadoc.destdir}
- package = ${maven.package}
- javadoc.author = ${maven.javadoc.author}
- javadoc.private = ${maven.javadoc.private}
- javadoc.version = ${maven.javadoc.version}
- javadoc.use = ${maven.javadoc.use}
- javadoc.windowtitle = ${maven.javadoc.windowtitle}
- javadoc.doctitle = ${maven.javadoc.doctitle}
- copyright = ${copyright}
- </echo>
-
- <javadoc
- sourcepathref="maven.src.set"
- packagenames="${maven.package}.*"
- destdir="${maven.javadoc.destdir}"
- author="${maven.javadoc.author}"
- private="${maven.javadoc.private}"
- version="${maven.javadoc.version}"
- use="${maven.javadoc.use}"
- windowtitle="${maven.javadoc.windowtitle}"
- doctitle="${maven.javadoc.doctitle}"
- bottom="${copyright}">
- <classpath refid="maven.dependency.classpath"/>
- </javadoc>
-
+
+ </j:if>
+
</goal>
</project>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>