You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2003/11/10 02:53:01 UTC
cvs commit: maven-plugins/castor plugin.jelly
dion 2003/11/09 17:53:01
Modified: castor plugin.jelly
Log:
A few updates and comments about context usage
Revision Changes Path
1.4 +6 -6 maven-plugins/castor/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven-plugins/castor/plugin.jelly,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- plugin.jelly 27 May 2003 13:39:55 -0000 1.3
+++ plugin.jelly 10 Nov 2003 01:53:01 -0000 1.4
@@ -26,18 +26,18 @@
<j:set var="fileVar" value="${schema}.filename"/>
<j:set var="uptodateVar" value="${schema}.uptodate"/>
<ant:basename property="${fileVar}" file="${schema}"/>
- <j:set var="filename" value="${pom.getContext().getVariable(fileVar)}"/>
- <j:set var="context"
- value="${pom.getPluginContext('maven-castor-plugin')}"/>
- <j:set var="log" value="${context.getVariable('maven.castor.tstamp')}"/>
- <j:set var="gen" value="${context.getVariable('maven.castor.dest')}"/>
+ <!-- wtf? shouldn't this be plugin.context? -->
+ <j:set var="filename" value="${pom.context.getVariable(fileVar)}"/>
+ <j:set var="log" value="${maven.castor.tstamp}"/>
+ <j:set var="gen" value="${maven.castor.dest}"/>
<ant:uptodate property="${uptodateVar}" targetfile="${log}/${filename}">
<ant:srcfiles dir="${basedir}" includes="${schema}"/>
</ant:uptodate>
+ <!-- wtf? shouldn't this be plugin.context? -->
<j:set var="uptodate"
- value="${pom.getContext().getVariable(uptodateVar)}"/>
+ value="${pom.context.getVariable(uptodateVar)}"/>
<j:if test="${uptodate == null}">
<ant:echo message="Generating sources for ${schema}"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org