Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
<mapper > question for usage in <uptodate >

<mapper > question for usage in <uptodate >

2007-05-14       - By Jay Dickon Glanville
Reply:     1     2     3     4     5     6  

Hello again,

I have a situation where many java files are being created from a
single xml file.  I don't want this to be done if the java files are
up to date.

Therefore, I'm trying to use the <uptodate> task to generate a
property only if java file creation is necessary.  The problem I'm
having is that all the examples of the <uptodate> task and it's
<mapper> subtasks deal with the output being a single file.

How do I write a <mapper> to where the target is multiple files?

For example

 <uptodate property="dont.gen.java"
     srcfile="my-xml-file.xml">
   <mapper type="merge"
       to="a-whole-wack-of-java-files" />
 </uptodate>

So, what type of mapper do I need to map a single source file to
multiple target files?

--
Jay Dickon Glanville

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.