ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Move only modified files
Date Tue, 09 Dec 2003 08:01:35 GMT
Ant 1.6 contains a <modified> selector [1] which selects files
only if there _content_ changed.


Jan

[1] http://ant.apache.org/manual-1.6beta/CoreTypes/selectors.html#modified


> -----Original Message-----
> From: Anderson, Kajsa [mailto:Kajsa.Anderson@thomson.com]
> Sent: Monday, December 08, 2003 5:44 PM
> To: 'Ant Users List'
> Cc: 'John.Butorac@Regions.com'
> Subject: RE: Move only modified files
> 
> 
> Take a look at the <depend> selector in the manual (under 
> Concepts & Types)
> - I think you should be able to use this to create a fileset 
> that can be
> <copy>ed to your staging directory.
> 
> HTH
> 
> Kajsa Anderson
> 
> -----Original Message-----
> From:  [mailto:John.Butorac@Regions.com]
> Sent: Monday, December 08, 2003 10:11 AM
> To: user@ant.apache.org
> Subject: Move only modified files
> 
> 
> This seems like a basic question, but I haven't been able to 
> find it in 
> the user list search...
> 
> When we do a build, we want to only include files that have 
> changed when 
> compared to a target.  The reason for doing this is keeping 
> the size of 
> the buildfile manageable, reduce time when doing a deployment in a 
> production environment, and reduce the number of times we 
> have reboot our 
> app server.
> 
> An example:
> ANT compares the source files versus target files, and the 
> changed files 
> are copied to a staging directory.
> 
> 
> Thanks-
> John
> 
> ---------------------------------------------------------------------
> 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