ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Vervelle <nicolas.verve...@steria.com>
Subject Re: AW: Copiing newer files to a directory [was: using file names]
Date Wed, 13 Apr 2005 12:18:56 GMT
Maybe <outofdate> instead of  <uptodate> would work.
It's also a task from ant-contrib, it's a enhanced version of <uptodate>

Huditsch Roman wrote:

>Hi,
>
>Actually, I am already trying to go this way, but I am struggling with the <update>
comparison since the names of my source files vary from my target files....
>(please see my former post)....
>Thanks for the help!
>
>wbr,
>Roman
> 
>
>  
>
>>-----Urspr√ľngliche Nachricht-----
>>Von: Nicolas Vervelle [mailto:nicolas.vervelle@steria.com] 
>>Gesendet: Mittwoch, 13. April 2005 14:10
>>An: Ant Users List
>>Betreff: Re: Copiing newer files to a directory [was: using 
>>file names]
>>
>>Hi,
>>
>>Maybe you could try using tasks from ant-contrib project at 
>>sourceforge.
>>I was thinking of something like:
>><for param="file">
>>   <fileset dir="source" includes="*"/>
>>   <if>
>>      <uptodate .... />
>>      <else>
>>         <copy .../>
>>       </else>
>>   </if>
>></for>
>>
>>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....
>>>
>>> 
>>>
>>> 
>>>
>>>      
>>>
>>
>>---------------------------------------------------------------------
>>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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message