ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Leggett (UPCO)" <adam.legg...@upco.co.uk>
Subject Re: Need help!! Ant find duplicate files
Date Wed, 11 Nov 2009 10:18:52 GMT
If you are comfortable with scripting using syntax akin to Java, i'd
suggest you use the groovy ant task to do something like this

http://groovy.codehaus.org/The+groovy+Ant+Task


Thanks

Adam

On Wed, 2009-11-11 at 02:13 -0800, cvsusr wrote:
> Is there any Ant experts who can provide a solutions for this scenario...  ??
> 
> Thanks in advance..
> 
> 
> 
> 
> cvsusr wrote:
> > 
> > Hi
> > 
> > In my ant build,
> > 
> > I need to find duplicate files under set of dirs and if found, copy it to
> > the temp directory.
> > 
> > say in my current dir i have chk/src/a.txt and chk/src2/a.txt and
> > chk/src2/b.txt
> > 
> > the task should find a.txt under src and src2 and copy it to chk/test dir
> > with folder names
> > 
> > Can this  be done in any way..
> > 
> > Thanks 
> > 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message