ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Levy-Lambert <anto...@gmx.de>
Subject Re: Find - is there parallel ant task?
Date Tue, 13 Sep 2005 15:27:38 GMT
Barak Yaish wrote:

>Hello,
> 
>I would like to find a set of files, which are newer than a certain file (or time stamp).
Is this possible to be done using ant?
> 
>Thanks,
> 
>Barak.
>
>  
>
What you want is possible using filesets, selectors, and the pathconvert
task.
Look at the Concepts and Types section of the manual.

What you want is roughly something like

<project name="test">
<fileset id="myfileset" dir="foo/bar">
    

 <date datetime="01/01/2001 12:00 AM" when="after"/>

</fileset>
<pathconvert targetsos="unix" refid="myfileset"
property="myfileset.asproperty"/>
<echo>myfileset is ${myfileset.asproperty}</echo>
</project>

Cheers,

Antoine

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


Mime
View raw message