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: Ant file diff question
Date Tue, 15 Jul 2003 13:58:45 GMT
On http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20474 I wrote a new
selector
which can help.

The selector stores (default values) a MD5 based value for every files
content and
selects it only if that value differs from one stored in a properties file.
So your
scenario should be able to realize with


<!-- Move all modified files -->
<move todir="bak">
    <fileset ...>
         <cache/>
    </fileset>
</move>

<!-- delete the unmodified files -->
<delete dir="from"/>

<!-- invoke wsdl2java -->
<java .../>


I havenĀ“t tried that in this scenario (maybe tomorrow :-)


Jeff Turner suggested renaming that selector to <modified/>. And 
I will do that, so the final version on CVS HEAD will be slightly
different from that version in BugZilla.
(It has to pass the new checkstyle also :-)


Jan





> -----Original Message-----
> From: rwg [mailto:R.W.Gooding@soton.ac.uk]
> Sent: Tuesday, July 15, 2003 3:47 PM
> To: user@ant.apache.org
> Subject: Ant file diff question
> 
> 
> Hi
> 
> I'm using WSDL2Java to generate lots of files - before I run 
> it I use <move>
> to backup all the files - then
> 
> I would like to remove all those 'BAK files' that are 
> identical to the newly
> generated files.
> 
> How can I do this please ?
> 
> Rich G
> 
> 
> 
>  
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message