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:[EMAIL PROTECTED]
> Sent: Tuesday, July 15, 2003 3:47 PM
> To: [EMAIL PROTECTED]
> 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
>
>
>
>
>
>