You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by EJ Ciramella <ec...@upromise.com> on 2004/05/11 02:50:18 UTC

testing uptodate status...

We're using castor here to generate some source, what's the quickest way to test if the xsd file is newer than the generated source.

Is there an easy way to compare one source to many targets?  Currently we generate a "touch" file...

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


RE: testing uptodate status...

Posted by "Mani G. Iyer" <iy...@rcn.com>.
Use the <uptodate> task.  
For example:
<uptodate property="generate.required" srcfile="my.xsd"
targetfile="${some.generated.source}" />


HTH
Mani

-----Original Message-----
From: EJ Ciramella [mailto:eciramella@upromise.com] 
Sent: Monday, May 10, 2004 8:50 PM
To: Ant Users List
Subject: testing uptodate status...

We're using castor here to generate some source, what's the quickest way
to test if the xsd file is newer than the generated source.

Is there an easy way to compare one source to many targets?  Currently
we generate a "touch" file...

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




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