ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Turner <...@kbturner.co.uk>
Subject Re: Problem with OUTOFDATE (ant-contrib) task
Date Thu, 10 Apr 2008 14:18:25 GMT

Well, in the face of the deafening silence from all you gurus, I've come up
with a solution to the problem:

<for list="${BPELModuleList}" param="ModuleName">
   <sequential>
      <outofdate property="@{ModuleName}OutOfDateResult">
         <sourcefiles>
            <fileset dir="${bpelrootdir}@{ModuleName}" />
         </sourcefiles>
         <mapper type="regexp" dir="${bpelrootdir}@{ModuleName}/"
from="^(.*)\.(.*)"
to="${bpelrootdir}..\\trips-bpel-previous\\@{ModuleName}\\\1.\2" />
         <sequential>
            <echo message="Building @{ModuleName}" />
         </sequential>
      </outofdate>
      <if>
         <ispropertytrue property="@{ModuleName}OutOfDateResult" />
         <then />
         <else>
            <echo message="Not building @{ModuleName}" />
         </else>
      </if>
   </sequential>
</for>

The crucial bit is the regexp mapper, which does give me the right answers. 
However, regular expressions are - to me at any rate - are a bit cryptic,
and I'd far prefer a solution using the identity mapper.  So, can anybody
tell me whether there is such a solution?  Using an identity wrapper, how
does one specify the target location?

-- 
View this message in context: http://www.nabble.com/Problem-with-OUTOFDATE-%28ant-contrib%29-task-tp16537429p16608822.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message