Start using tag instead of ${pom.getPluginContext(....)}
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114249 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8401ebcd77
commit
f21a859fbe
@ -5,6 +5,7 @@
|
|||||||
xmlns:changelog="changelog"
|
xmlns:changelog="changelog"
|
||||||
xmlns:doc="doc"
|
xmlns:doc="doc"
|
||||||
xmlns:j="jelly:core"
|
xmlns:j="jelly:core"
|
||||||
|
xmlns:maven="jelly:maven"
|
||||||
xmlns:util="jelly:util">
|
xmlns:util="jelly:util">
|
||||||
|
|
||||||
<goal name="maven-file-activity-plugin:register">
|
<goal name="maven-file-activity-plugin:register">
|
||||||
@ -44,8 +45,7 @@
|
|||||||
<j:set var="maven.mode.online" value="true" />
|
<j:set var="maven.mode.online" value="true" />
|
||||||
</j:if>
|
</j:if>
|
||||||
|
|
||||||
<j:set var="factory"
|
<maven:pluginVar var="factory" plugin="maven-changelog-plugin" property="maven.changelog.factory" />
|
||||||
value="${pom.getPluginContext('maven-changelog-plugin').getVariable('maven.changelog.factory')}"/>
|
|
||||||
|
|
||||||
<j:choose>
|
<j:choose>
|
||||||
<j:when test="${maven.mode.online}">
|
<j:when test="${maven.mode.online}">
|
||||||
|
|||||||
@ -53,7 +53,7 @@
|
|||||||
<ant:attribute name="Implementation-Version" value="${pom.currentVersion}"/>
|
<ant:attribute name="Implementation-Version" value="${pom.currentVersion}"/>
|
||||||
<ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
|
<ant:attribute name="Implementation-Vendor" value="${pom.organization.name}"/>
|
||||||
<ant:attribute name="Implementation-Vendor-Id" value="${pom.organization.identifier}"/>
|
<ant:attribute name="Implementation-Vendor-Id" value="${pom.organization.identifier}"/>
|
||||||
<j:set var="mainclass" value="${pom.getPluginContext('maven-java-plugin').getVariable('maven.jar.mainclass')}"/>
|
<maven:pluginVar var="mainClass" plugin="maven-java-plugin" property="maven.jar.mainclass" />
|
||||||
<j:if test="${!empty(mainclass)}">
|
<j:if test="${!empty(mainclass)}">
|
||||||
<ant:attribute name="Main-Class" value="${mainclass}"/>
|
<ant:attribute name="Main-Class" value="${mainclass}"/>
|
||||||
</j:if>
|
</j:if>
|
||||||
|
|||||||
@ -3,7 +3,8 @@
|
|||||||
<project
|
<project
|
||||||
xmlns:ant="jelly:ant"
|
xmlns:ant="jelly:ant"
|
||||||
xmlns:doc="doc"
|
xmlns:doc="doc"
|
||||||
xmlns:j="jelly:core">
|
xmlns:j="jelly:core"
|
||||||
|
xmlns:maven="jelly:maven">
|
||||||
|
|
||||||
<goal name="maven-junit-report-plugin:register">
|
<goal name="maven-junit-report-plugin:register">
|
||||||
<j:if test="${unitTestSourcesPresent == 'true'}">
|
<j:if test="${unitTestSourcesPresent == 'true'}">
|
||||||
@ -39,8 +40,7 @@
|
|||||||
<j:set var="maven.test.failure.ignore" scope="parent"
|
<j:set var="maven.test.failure.ignore" scope="parent"
|
||||||
value="${ignoreTestFailureOld}"/>
|
value="${ignoreTestFailureOld}"/>
|
||||||
|
|
||||||
<j:set var="testReportsDirectory"
|
<maven:pluginVar var="testReportsDirectory" plugin='maven-test-plugin' property='maven.test.reportsDirectory'/>
|
||||||
value="${pom.getPluginContext('maven-test-plugin').getVariable('maven.test.reportsDirectory')}"/>
|
|
||||||
|
|
||||||
<ant:mkdir dir="${testReportsDirectory}"/>
|
<ant:mkdir dir="${testReportsDirectory}"/>
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
xmlns:doc="doc"
|
xmlns:doc="doc"
|
||||||
xmlns:j="jelly:core"
|
xmlns:j="jelly:core"
|
||||||
xmlns:jxr="jxr"
|
xmlns:jxr="jxr"
|
||||||
|
xmlns:maven="jelly:maven"
|
||||||
xmlns:util="jelly:util">
|
xmlns:util="jelly:util">
|
||||||
|
|
||||||
<define:taglib uri="jxr">
|
<define:taglib uri="jxr">
|
||||||
@ -56,18 +57,12 @@
|
|||||||
|
|
||||||
<ant:echo>${maven.sourcesPresent}</ant:echo>
|
<ant:echo>${maven.sourcesPresent}</ant:echo>
|
||||||
|
|
||||||
<j:set var="javadocDestdir"
|
<maven:pluginVar var="javadocDestdir" plugin='maven-javadoc-plugin' property='maven.javadoc.destdir'/>
|
||||||
value="${pom.getPluginContext('maven-javadoc-plugin').getVariable('maven.javadoc.destdir')}"/>
|
|
||||||
|
|
||||||
<ant:property
|
<j:set var="copyright"
|
||||||
name="copyright"
|
value="Copyright &copy; ${year} ${pom.organization.name}. All Rights Reserved." />
|
||||||
value="Copyright &copy; ${year} ${pom.organization.name}. All Rights Reserved."
|
|
||||||
/>
|
|
||||||
|
|
||||||
<ant:property
|
<j:set var="title" value="${pom.name} ${pom.currentVersion} Reference" />
|
||||||
name="title"
|
|
||||||
value="${pom.name} ${pom.currentVersion} Reference"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<ant:copy file="${maven.jxr.stylesheet}"
|
<ant:copy file="${maven.jxr.stylesheet}"
|
||||||
tofile="${maven.jxr.destdir}/stylesheet.css"/>
|
tofile="${maven.jxr.destdir}/stylesheet.css"/>
|
||||||
|
|||||||
@ -4,10 +4,9 @@
|
|||||||
xmlns:j="jelly:core"
|
xmlns:j="jelly:core"
|
||||||
xmlns:define="jelly:define"
|
xmlns:define="jelly:define"
|
||||||
xmlns:linkcheck="linkcheck"
|
xmlns:linkcheck="linkcheck"
|
||||||
|
xmlns:maven="jelly:maven"
|
||||||
xmlns:doc="doc">
|
xmlns:doc="doc">
|
||||||
|
|
||||||
<property name="maven.linkcheck.cache" value="${pom.getPluginContext('maven-linkcheck-plugin').getVariable('maven.linkcheck.cache')}"/>
|
|
||||||
|
|
||||||
<goal name="maven-linkcheck-plugin:register">
|
<goal name="maven-linkcheck-plugin:register">
|
||||||
<doc:registerReport
|
<doc:registerReport
|
||||||
name="Link Check Report"
|
name="Link Check Report"
|
||||||
@ -42,8 +41,9 @@
|
|||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
<postGoal name="xdoc:jelly-transform">
|
<postGoal name="xdoc:jelly-transform">
|
||||||
<j:set var="reports" value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
|
<maven:pluginVar var="reports" plugin="maven-xdoc-plugin" property="reports" />
|
||||||
<j:set var="context" value="${pom.getPluginContext('maven-xdoc-plugin')}"/>
|
<!-- not sure why the following is being done
|
||||||
|
<j:set var="context" value="${pom.getPluginContext('maven-xdoc-plugin')}"/> -->
|
||||||
|
|
||||||
<j:set var="online">${maven.mode.online}</j:set>
|
<j:set var="online">${maven.mode.online}</j:set>
|
||||||
|
|
||||||
|
|||||||
@ -25,8 +25,7 @@
|
|||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
<goal name="site:run-reports" prereqs="xdoc:register-reports">
|
<goal name="site:run-reports" prereqs="xdoc:register-reports">
|
||||||
<j:set var="reports"
|
<maven:pluginVar var="reports" plugin="maven-xdoc-plugin" property="reports" />
|
||||||
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
|
|
||||||
|
|
||||||
<j:forEach var="report" items="${reports}">
|
<j:forEach var="report" items="${reports}">
|
||||||
<j:set var="reportName" value="${report.get('pluginName')}"/>
|
<j:set var="reportName" value="${report.get('pluginName')}"/>
|
||||||
|
|||||||
@ -260,9 +260,8 @@
|
|||||||
<j:forEach var="someProperty" items="${listOfProperties}">
|
<j:forEach var="someProperty" items="${listOfProperties}">
|
||||||
<sysproperty key="${someProperty}" value="${context.getVariable(someProperty)}"/>
|
<sysproperty key="${someProperty}" value="${context.getVariable(someProperty)}"/>
|
||||||
</j:forEach>
|
</j:forEach>
|
||||||
<j:set var="jvmargs"
|
<maven:pluginVar var="jvmargs" plugin="maven-test-plugin" property="maven.junit.jvmargs" />
|
||||||
value="${pom.getPluginContext('maven-test-plugin').getVariable('maven.junit.jvmargs')}"/>
|
<j:if test="${!empty(jvmArgs)}">
|
||||||
<j:if test="$">
|
|
||||||
<jvmarg line="${jvmargs}"/>
|
<jvmarg line="${jvmargs}"/>
|
||||||
</j:if>
|
</j:if>
|
||||||
<formatter type="xml"/>
|
<formatter type="xml"/>
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
xmlns:j="jelly:core"
|
xmlns:j="jelly:core"
|
||||||
xmlns:jsl="jelly:jsl"
|
xmlns:jsl="jelly:jsl"
|
||||||
xmlns:log="jelly:log"
|
xmlns:log="jelly:log"
|
||||||
|
xmlns:maven="jelly:maven"
|
||||||
xmlns:pom="pom"
|
xmlns:pom="pom"
|
||||||
xmlns:util="jelly:util"
|
xmlns:util="jelly:util"
|
||||||
xmlns:x="jelly:xml"
|
xmlns:x="jelly:xml"
|
||||||
@ -17,9 +18,7 @@
|
|||||||
<define:tag name="deregisterReport">
|
<define:tag name="deregisterReport">
|
||||||
<!-- @name : Report to deregister, must be same as name used to register -->
|
<!-- @name : Report to deregister, must be same as name used to register -->
|
||||||
|
|
||||||
<j:set
|
<maven:pluginVar var="reports" plugin="maven-xdoc-plugin" property="reports" />
|
||||||
var="reports"
|
|
||||||
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
|
|
||||||
|
|
||||||
<j:set var="removeRpt" value="null"/>
|
<j:set var="removeRpt" value="null"/>
|
||||||
<j:forEach var="rpt" items="${reports}">
|
<j:forEach var="rpt" items="${reports}">
|
||||||
@ -39,9 +38,7 @@
|
|||||||
@description text description of report
|
@description text description of report
|
||||||
@link the nav-bar link for this report
|
@link the nav-bar link for this report
|
||||||
-->
|
-->
|
||||||
<j:set
|
<maven:pluginVar var="reports" plugin="maven-xdoc-plugin" property="reports" />
|
||||||
var="reports"
|
|
||||||
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
|
|
||||||
|
|
||||||
<!-- check if the given name is in the list already -->
|
<!-- check if the given name is in the list already -->
|
||||||
<j:set var="add" value="true"/>
|
<j:set var="add" value="true"/>
|
||||||
@ -280,8 +277,7 @@
|
|||||||
<util:file var="docsSrcFile" name="${maven.docs.src}"/>
|
<util:file var="docsSrcFile" name="${maven.docs.src}"/>
|
||||||
|
|
||||||
<!-- parse the project nav. Someone jellier than me can remove the temp file requirement -->
|
<!-- parse the project nav. Someone jellier than me can remove the temp file requirement -->
|
||||||
<j:set var="reports"
|
<maven:pluginVar var="reports" plugin="maven-xdoc-plugin" property="reports" />
|
||||||
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
|
|
||||||
|
|
||||||
<util:file var="tempnav" name="${maven.build.dir}/project-nav.xml"/>
|
<util:file var="tempnav" name="${maven.build.dir}/project-nav.xml"/>
|
||||||
|
|
||||||
@ -364,9 +360,7 @@
|
|||||||
|
|
||||||
<!-- All the templates use $project for now. -->
|
<!-- All the templates use $project for now. -->
|
||||||
<j:set var="project" value="${pom}"/>
|
<j:set var="project" value="${pom}"/>
|
||||||
<j:set
|
<maven:pluginVar var="reports" plugin="maven-xdoc-plugin" property="reports" />
|
||||||
var="reports"
|
|
||||||
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
|
|
||||||
|
|
||||||
<!-- Does the user want the maven-generated docs on their site? -->
|
<!-- Does the user want the maven-generated docs on their site? -->
|
||||||
<j:set
|
<j:set
|
||||||
@ -640,11 +634,15 @@
|
|||||||
</goal>
|
</goal>
|
||||||
|
|
||||||
|
|
||||||
<!-- This is required as the linkchecker runs as a final pass over the generated
|
<!--
|
||||||
document tree -->
|
! This is required as the linkchecker runs as a final pass over the generated
|
||||||
|
! document tree.
|
||||||
|
! FIXME: Why isn't this in linkcheck?
|
||||||
|
!-->
|
||||||
<goal name="xdoc:performJSL"
|
<goal name="xdoc:performJSL"
|
||||||
description="Allows the LinkCheck plugin to xdoc a single directory">
|
description="Allows the LinkCheck plugin to xdoc a single directory">
|
||||||
<j:set var="maven.xdoc.src" value="${pom.getPluginContext('maven-linkcheck-plugin').getVariable('maven.xdoc.src')}"/>
|
|
||||||
|
<maven:pluginVar var="maven.xdoc.src" plugin="maven-linkcheck-plugin" property="maven.xdoc.src" />
|
||||||
<doc:performJSL
|
<doc:performJSL
|
||||||
srcdir="${maven.xdoc.src}"
|
srcdir="${maven.xdoc.src}"
|
||||||
destdir="${maven.docs.dest}"/>
|
destdir="${maven.docs.dest}"/>
|
||||||
@ -652,9 +650,7 @@
|
|||||||
|
|
||||||
<goal name="xdoc:dump-report-settings">
|
<goal name="xdoc:dump-report-settings">
|
||||||
<echo>Dumping report settings</echo>
|
<echo>Dumping report settings</echo>
|
||||||
<j:set
|
<maven:pluginVar var="reports" plugin="maven-xdoc-plugin" property="reports" />
|
||||||
var="reports"
|
|
||||||
value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('reports')}"/>
|
|
||||||
|
|
||||||
<j:forEach var="report" items="${reports}">
|
<j:forEach var="report" items="${reports}">
|
||||||
<echo>Report: ${report}</echo>
|
<echo>Report: ${report}</echo>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user