git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-03-30 16:05:46 +00:00
1 parent 21ec36179a
commit 8acb775a1d
4 files changed
+79 -79

No files matched your search

+9 -9
View File
@@ -82,13 +82,13 @@
<!-- Copy any resources that must be present in the deployed
JAR file.
-->
<j:forEach var="resource" items="${pom.build.resources}">
<j:forEach var="resource" items="${pom.build.resources}">
<copy todir="$${classesdir}">
<j:set var="dir" value="${resource.directory}"/>
<j:if test="${empty dir}">
<j:set var="dir" value="."/>
<j:set var="dir" value="."/>
</j:if>
<fileset dir="${dir}">
@@ -102,16 +102,16 @@
</fileset>
</copy>
</j:forEach>
</j:forEach>
<!-- Copy any resources required for unit testing -->
<j:forEach var="resource" items="${pom.build.unitTest.resources}">
<j:forEach var="resource" items="${pom.build.unitTest.resources}">
<copy todir="$${testclassesdir}">
<j:set var="dir" value="${resource.directory}"/>
<j:if test="${empty dir}">
<j:set var="dir" value="."/>
<j:set var="dir" value="."/>
</j:if>
<fileset dir="${dir}">
@@ -125,7 +125,7 @@
</fileset>
</copy>
</j:forEach>
</j:forEach>
</target>
@@ -155,8 +155,8 @@
description="o Create a distribution">
<mkdir dir="dist"/>
<copy todir="dist">
<fileset dir="$${defaulttargetdir}" includes="*.jar"/>
<fileset dir="$${basedir}" includes="LICENSE*, README*"/>
<fileset dir="$${defaulttargetdir}" includes="*.jar"/>
<fileset dir="$${basedir}" includes="LICENSE*, README*"/>
</copy>
</target>
@@ -178,7 +178,7 @@
fork="true"
dir="./">
<!--
I think the following is wrong
I think the following is wrong
<sysproperty key="basedir" value="${pom.build.unitTestSourceDirectory}"/>
<sysproperty key="basedir" value="${basedir}"/> // this gives a full path
including the C:\ on windows
+1 -1
View File
@@ -114,7 +114,7 @@
</j:if>
<j:forEach var="packageGroup" items="${pom.packageGroups}">
<ant:group title="${packageGroup.title}" packages="${packageGroup.packages}"/>
<ant:group title="${packageGroup.title}" packages="${packageGroup.packages}"/>
</j:forEach>
<!-- allow custom doclets -->
@@ -1,22 +1,22 @@
<?xml version="1.0"?>
<j:jelly
xmlns:j="jelly:core"
xmlns:x="jelly:xml"
xmlns:jsl="jelly:jsl">
xmlns:j="jelly:core"
xmlns:x="jelly:xml"
xmlns:jsl="jelly:jsl">
<j:new var="file" className="java.io.File">
<j:arg value="${maven.build.dir}/taglib.xml"/>
<j:arg value="${maven.build.dir}/taglib.xml"/>
</j:new>
<x:parse var="doc" xml="${file}"/>
<x:set var="libraries" select="$doc/tags/library"/>
<x:set var="libraries" select="$doc/tags/library"/>
<!-- lets create a JSL stylesheet that we'll use later -->
<jsl:stylesheet var="docStylesheet">
<!-- don't output <doc> element but output its contents -->
<jsl:template match="doc">
<jsl:applyTemplates/>
<jsl:applyTemplates/>
</jsl:template>
<!-- ignore javadoc tags-->
@@ -46,7 +46,7 @@
<body>
<section name="Tag Documentation">
<p>
<p>
[<a href="#Tag Libraries">tag libraries</a>]
[<a href="#Tags">tags</a>]
</p>
@@ -58,13 +58,13 @@
</section>
<section name="Tag Libraries">
<p>
<p>
[<a href="#Tag Libraries">tag libraries</a>]
[<a href="#Tags">tags</a>]
</p>
<table>
<tr>
<tr>
<th>Library</th>
<th>Description</th>
</tr>
@@ -73,8 +73,8 @@
<tr>
<td><a href="#${uri}">${uri}</a></td>
<td>
<jsl:style stylesheet="${docStylesheet}" select="doc"/>
</td>
<jsl:style stylesheet="${docStylesheet}" select="doc"/>
</td>
</tr>
</x:forEach>
</table>
@@ -98,12 +98,12 @@
<x:forEach select="tag">
<x:set var="tagName" select="string(@name)"/>
<x:set var="doc" select="doc"/>
<tr>
<td><a href="#${prefix}:${tagName}">${tagName}</a></td>
<tr>
<td><a href="#${prefix}:${tagName}">${tagName}</a></td>
<td>
<jsl:style stylesheet="${docStylesheet}" select="$doc"/>
</td>
</tr>
<jsl:style stylesheet="${docStylesheet}" select="$doc"/>
</td>
</tr>
</x:forEach>
</table>
</subsection>
@@ -114,8 +114,8 @@
<section name="Tags">
<p>
<section name="Tags">
<p>
[<a href="#Tag Libraries">tag libraries</a>]
[<a href="#Tags">tags</a>]
</p>
@@ -125,29 +125,29 @@
<x:forEach select="tag" var="tag">
<x:set var="tagName" select="string(@name)"/>
<subsection name="${prefix}:${tagName}">
<p>
<jsl:style stylesheet="${docStylesheet}" select="$tag/doc"/>
</p>
<table>
<tr>
<th>Attribute Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<x:forEach var="attr" select="$tag/attribute">
<tr>
<td><x:expr select="$attr/@name"/></td>
<td><x:expr select="$attr/@type"/></td>
<td>
<jsl:style stylesheet="${docStylesheet}" select="$attr/doc"/>
</td>
</tr>
</x:forEach>
</table>
</subsection>
<subsection name="${prefix}:${tagName}">
<p>
<jsl:style stylesheet="${docStylesheet}" select="$tag/doc"/>
</p>
<table>
<tr>
<th>Attribute Name</th>
<th>Type</th>
<th>Description</th>
</tr>
<x:forEach var="attr" select="$tag/attribute">
<tr>
<td><x:expr select="$attr/@name"/></td>
<td><x:expr select="$attr/@type"/></td>
<td>
<jsl:style stylesheet="${docStylesheet}" select="$attr/doc"/>
</td>
</tr>
</x:forEach>
</table>
</subsection>
+28 -28
View File
@@ -38,23 +38,23 @@
-->
<goal name="maven-linkcheck-plugin:report">
<copy file="${plugin.resources}/linkcheck-temp.xml"
toFile="${maven.gen.docs}/linkcheck.xml"/>
<copy file="${plugin.resources}/linkcheck-temp.xml"
toFile="${maven.gen.docs}/linkcheck.xml"/>
</goal>
<postGoal name="xdoc:jelly-transform">
<j:set var="reports" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
<j:set var="context" value="${pom.getPluginContext('maven-xdoc-plugin')}"/>
<j:set var="reports" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
<j:set var="context" value="${pom.getPluginContext('maven-xdoc-plugin')}"/>
<j:set var="online">${maven.mode.online}</j:set>
<j:if test="${online.trim().length() > 0}">
<j:forEach var="report" items="${reports}">
<j:if test="${report.get('pluginName').equals('maven-linkcheck-plugin')}">
<attainGoal name="maven-linkcheck-plugin:report-real"/>
</j:if>
</j:forEach>
</j:if>
<attainGoal name="maven-linkcheck-plugin:report-real"/>
</j:if>
</j:forEach>
</j:if>
</postGoal>
<goal
@@ -63,32 +63,32 @@
<mkdir dir="${maven.build.dir}/linkcheck"/>
<mkdir dir="${maven.build.dir}/linkcheck/docs"/>
<linkcheck:linkcheck
<linkcheck:linkcheck
project="${pom}"
cache="${maven.linkcheck.cache}"
exclude="${pom.repository.url}"
basedir="${maven.docs.dest}"
output="${maven.build.dir}/linkcheck/linkcheck-results.xml"
outputEncoding="${maven.docs.outputencoding}"
/>
<doc:jsl
input="${maven.build.dir}/linkcheck/linkcheck-results.xml"
output="../linkcheck/docs/linkcheck.xml"
stylesheet="${plugin.resources}/linkcheck.jsl"
omitXmlDeclaration="true"
outputMode="xml"
prettyPrint="true"
/>
<j:set var="maven.xdoc.src" value="${maven.build.dir}/linkcheck/docs"/>
<attainGoal name="xdoc:performJSL"/>
basedir="${maven.docs.dest}"
output="${maven.build.dir}/linkcheck/linkcheck-results.xml"
outputEncoding="${maven.docs.outputencoding}"
/>
<doc:jsl
input="${maven.build.dir}/linkcheck/linkcheck-results.xml"
output="../linkcheck/docs/linkcheck.xml"
stylesheet="${plugin.resources}/linkcheck.jsl"
omitXmlDeclaration="true"
outputMode="xml"
prettyPrint="true"
/>
<j:set var="maven.xdoc.src" value="${maven.build.dir}/linkcheck/docs"/>
<attainGoal name="xdoc:performJSL"/>
</goal>
<goal name="maven-linkcheck-plugin:clearcache"
description="Removes the cache file">
<delete file="${maven.linkcheck.cache}"/>
description="Removes the cache file">
<delete file="${maven.linkcheck.cache}"/>
</goal>
</project>