A few updates and comments about context usage

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114288 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-11-10 01:53:01 +00:00
1 parent 66317529e6
commit 9a1d69cca4
1 file changed
+6 -6
+6 -6
View File
@@ -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}"/>