With <uptodate property="propname"> and <target unless="propname"/> you only 
handle one file.
You´ll do that pattern for optional things, e.g. testing or reports.

But if you want to catch multiple files at once the <depend> selector [1] is 
your friend.
* You create a fileset selecting all idl files which are newer than its h-files.
    <fileset dir="${idl.dir}" includes="**/*.idl">
        <depend


[1] http://ant.apache.org/manual/CoreTypes/selectors.html#dependselect
   

>-----Ursprüngliche Nachricht-----
>Von: Nicolas Vervelle [mailto:[EMAIL PROTECTED] 
>Gesendet: Montag, 1. August 2005 11:47
>An: Ant Users List
>Betreff: Re: Ant file dependency
>
>Hi,
>
>check <uptodate> to set a property, and use unless in the target ;)
>
>Hope this helps,
>Nicolas
>
>Alexey Kakunin wrote:
>
>> Hello all!
>>
>> I'm quite new in ant, actuallyI'm migrating from make.
>> Seems it is really great tool, but I have some (probably 
>very stupid) 
>> question.
>>
>> For example, I have a target for compiling something by using 
>> idl-compiler. To do it I should use exec task to make 
>SomeFile.h from 
>> SomeFile.idl. But I want to call this exec only in case the 
>> SomeFIle.idl was changed (has later timestamp comparing to 
>> SomeFile.h). In this case I have some sort of file 
>dependency  (not a 
>> target dependency) - file SomeFile.h depends from SomeFile.idl.
>>
>> Is it possible to implement this sort of dependency in ant?
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to