ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: Ant uptodate?
Date Mon, 10 Sep 2007 06:32:48 GMT
You can set a property if a file/directory does (not) exist using
<available> and <available> in combination with <condition>, <not>.

The "changed" files you maybe could check with <condition> and <isfileselected>
in combination with <date> selector or <modified> selector.


>-----Urspr√ľngliche Nachricht-----
>Von: Lionel van den Berg [] 
>Gesendet: Montag, 10. September 2007 00:46
>Betreff: Ant uptodate?
>Hi all,
>I sent two other emails but I don't think they went through.
>I've tried using the ant uptodate and dependset tasks but 
>haven't solved my
>problem. I've googled, tried heaps of solutions but still 
>can't do it, so
>here is the problem:
>Assume for each of the following we are in a base directory. I have:
>grammar/*.grammar files.
>>From a *.grammar file Sablecc will generate .java files (and some .dat
>files) in:
>When my Ant script is run, src/ may or may not exist.
>What I want to do is just set a property if either src/ does 
>not exist or
>any of the files in any of files in grammar/ have been 
>modified after any of
>the files in the subdirectories of src/.
>Can someone please help me? It seems that this should be fairly simple.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message