Switch to using maven:pluginVar instead of pom.getPluginContext().getVariable()

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-11-10 01:56:13 +00:00
1 parent 73e48106bb
commit 8c2b45c4d2
1 file changed
+9 -4
@@ -2,8 +2,9 @@
<jsl:stylesheet select="$doc"
xmlns:jsl="jelly:jsl"
xmlns:x="jelly:xml"
xmlns:j="jelly:core"
xmlns:maven="jelly:maven"
xmlns:x="jelly:xml"
xmlns="dummy" trim="false">
<jsl:template match="cruisecontrol" trim="false">
<jsl:copy>
@@ -13,12 +14,16 @@
<currentbuildstatusbootstrapper file="${maven.cruisecontrol.logs.dir}/currentbuildstatus.txt"/>
</bootstrappers>
<modificationset>
<j:if test="${pom.getPluginContext('maven-scm-plugin').getVariable('maven.scm.method') == 'cvs'}">
<cvs cvsroot="${pom.getPluginContext('maven-scm-plugin').getVariable('maven.scm.cvs.root')}" localWorkingCopy="${maven.cruisecontrol.checkout.dir}/${pom.getPluginContext('maven-scm-plugin').getVariable('maven.scm.cvs.module')}" />
<!-- FIXME: Shouldn't this use the second element of pom.repository.connection -->
<maven:pluginVar var="method" plugin='maven-scm-plugin' property='maven.scm.method' />
<maven:pluginVar var="module" plugin='maven-scm-plugin' property='maven.scm.cvs.module' />
<j:if test="${method == 'cvs'}">
<maven:pluginVar var="root" plugin='maven-scm-plugin' property='maven.scm.cvs.root' />
<cvs cvsroot="${root}" localWorkingCopy="${maven.cruisecontrol.checkout.dir}/${module}" />
</j:if>
</modificationset>
<schedule interval="${maven.cruisecontrol.schedule.interval}">
<maven mavenscript="${maven.home}/bin/maven" goal="${maven.cruisecontrol.goals}" projectfile="${maven.cruisecontrol.checkout.dir}/${pom.getPluginContext('maven-scm-plugin').getVariable('maven.scm.cvs.module')}/project.xml"/>
<maven mavenscript="${maven.home}/bin/maven" goal="${maven.cruisecontrol.goals}" projectfile="${maven.cruisecontrol.checkout.dir}/${module}/project.xml"/>
</schedule>
<publishers>
<currentbuildstatuspublisher file="${maven.cruisecontrol.logs.dir}/currentbuildstatus.txt"/>