ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Antwort: Re: Problem using <copy overwrite="false"> with filt erset
Date Mon, 14 Apr 2003 08:11:12 GMT
Can you <touch/> the target files before <copy>?


Jan Matèrne

> -----Ursprüngliche Nachricht-----
> Von: Anton_Grimm@mn.man.de [mailto:Anton_Grimm@mn.man.de]
> Gesendet am: Montag, 14. April 2003 09:33
> An: Ant Users List
> Betreff: Antwort: Re: Problem using <copy overwrite="false"> with
> filterset
> 
> 
> Sorry Stefan,
> 
>  I did not realize that the source files must not be newer!
> 
> Actually my target files are older than the source files, but
> they already exist and must not be overwritten. In my case
> it is generated but (maybe) touched source code.
> 
> Is there a simple way to achieve this.
> 
> Thanks in advance
> 
> Toni
> 
> ---------------------------------------------------------------
> Anton Grimm
> MAN Nutzfahrzeuge AG
> IDP - Software Produktionsumgebungen
> Dachauerstr.667
> D - 80995 München
> 
> Fon:       +49-89-1580-1054
> Fax:       +49-89-1580-911054
> mailto:    Anton_Grimm@mn.man.de
> Internet: http://www.man-trucks.com
> ---------------------------------------------------------------
> 
> 
> 
> 
>                                                               
>                                                               
>            
>                       Stefan Bodewig                          
>                                                               
>            
>                       <bodewig@apache.o        An:       
> user@ant.apache.org                                           
>                 
>                       rg>                      Kopie:         
>                                                               
>            
>                                                Thema:    Re: 
> Problem using <copy overwrite="false"> with filterset         
>             
>                       04/11/2003 05:22                        
>                                                               
>            
>                       PM                                      
>                                                               
>            
>                       Bitte antworten                         
>                                                               
>            
>                       an "Ant Users                           
>                                                               
>            
>                       List"                                   
>                                                               
>            
>                                                               
>                                                               
>            
>                                                               
>                                                               
>            
> 
> 
> 
> 
> On Fri, 11 Apr 2003, Anton Grimm <Anton_Grimm@mn.man.de> wrote:
> 
> > I was trying the following copy-task, but it does not work, i.e the
> > files are always copied even when they already exist.
> 
> overwrite="false" will only prevent your files from being overwritten
> if they not only exist but are actually newer than the sources.
> 
> Run 'ant -debug -logfile foo.log' and investigate your logfile.  It is
> going to include a list with "Adding baz as it is newer than
> /target/baz" that will give you a hint if there are any problems with
> your setup.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> 
> 
> 
> This message and any attachments are confidential and may be 
> privileged or otherwise protected from disclosure. 
> If you are not the intended recipient, please telephone or 
> email the sender and delete this message and any attachment 
> from your system. If you are not the intended recipient, you 
> must not copy this message or attachment or disclose the 
> contents to any other person.
> 
> 
> ---------------------------------------------------------------------
> 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