ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Huditsch Roman" <Roman.Hudit...@lexisnexis.at>
Subject AW: Copiing newer files to a directory [was: using file names]
Date Thu, 14 Apr 2005 08:27:19 GMT
Thanks a lot for all the helpful answers and suggestions!
You helped me a lot!

wbr,
Roman

> -----Urspr√ľngliche Nachricht-----
> Von: Antoine Levy-Lambert [mailto:antoine@gmx.de] 
> Gesendet: Donnerstag, 14. April 2005 07:09
> An: Ant Users List
> Betreff: Re: Copiing newer files to a directory [was: using 
> file names]
> 
> Hello Roman,
> 
> this would be the most simple solution using ant :
> 
> <!-- define the fileset with the newer files --> <fileset 
> dir="source" id="newerfiles">
>      <depend targetdir="result"/>
> </fileset>
> <copy todir="input" preservefiletimes="true">
>        <fileset refid="source"/>
> </copy>
> 
> Cheers,
> 
> Antoine
> 
> Huditsch Roman wrote:
> 
> >Hi,
> >
> >Thanks for the snippet!
> >I found out that <var name="nameOfProperty" unset="true"/> 
> you can reset a property. 
> >
> >What I want to do is quite simple (although unachievable for me):
> >
> >I would like to copy all files from a directory "source", 
> which are newer to those in "result", to an own directory "input".
> >So, source/a.xml needs to be compared to result/a.xml 
> source/b.xml to 
> >result/b.xml and so on....
> >
> >At the end, the "input" directory should just hold  the new files...
> >
> >I don't know how to do this....
> >
> >Thanks very much for any help....
> >
> >kind regards,
> >Roman
> >
> >  
> >
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message