Re: Running parallel targets in Ant loop

2009-11-11 Thread Harry_
Yes it is working with attribute parallel="true"... :)_ Thanks a ton Peter... :) Peter Reilly-2 wrote: > > You could use the "parallel" attribute -> > http://ant-contrib.sourceforge.net/tasks/tasks/for.html > > WARNING:: although I wrote the task, I have never used the parallel > attribute, s

Re: Running parallel targets in Ant loop

2009-11-11 Thread Harry_
Thanks for replying... But using within for loop (see how I used it below) is not serving my purpose... It is firing antcall's sequentially... I want to run multiple instances of target "run-test" with different values for id param

RE: Running parallel targets in Ant loop

2009-11-11 Thread Wray, Nathan
Harry, put the parallel inside the sequential. They aren't a pair where you would choose one or the other. The sequential task has hooks that let the loop structure set the variable for you. Inside sequential, you can access idx as @{idx} rather than the more usual ${idx}

Re: Need help!! Ant find duplicate files

2009-11-11 Thread Scot P. Floess
For scripting I like beanshell myself :) On Wed, 11 Nov 2009, 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 t

Re: Running parallel targets in Ant loop

2009-11-11 Thread Peter Reilly
You could use the "parallel" attribute -> http://ant-contrib.sourceforge.net/tasks/tasks/for.html WARNING:: although I wrote the task, I have never used the parallel attribute, since most of ant is not parallel safe. Peter > > you can use task > > > Harry_ wrote: >> >> Hi, >> >> I need to run m

Re: Need help!! Ant find duplicate files

2009-11-11 Thread Adam Leggett (UPCO)
Ok, if your preference is javascript you could try the optional scriptdef task instead: http://ant.apache.org/manual/OptionalTasks/scriptdef.html The above page provides an example of how to iterate through filesets which should give you a good start. Thanks Adam On Wed, 2009-11-11 at 02:28 -0

Re: Need help!! Ant find duplicate files

2009-11-11 Thread cvsusr
I really need to learn scripting and do it.. Can I used java script?? I will give a try.. Is it so that i need to write java script and call it using groovy task?? Adam Leggett (UPCO) wrote: > > If you are comfortable with scripting using syntax akin to Java, i'd > suggest you use the groovy

Re: Need help!! Ant find duplicate files

2009-11-11 Thread Greg Roodt
Adam's suggestion of a script is probably going to be the simplest solution. Another option may be to take a look at the Checksum task and generate MD5 hashes for the files, then compare the MD5 hash values for each file, if the values are equal, then you know you have a duplicate. You could then

Re: Need help!! Ant find duplicate files

2009-11-11 Thread Adam Leggett (UPCO)
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

Need help!! Ant find duplicate files

2009-11-11 Thread cvsusr
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 an

Re: Running parallel targets in Ant loop

2009-11-11 Thread cvsusr
you can use task.. Harry_ wrote: > > Hi, > > I need to run multiple target in Ant's loop. How can I achieve this. I am > able to make antcall in sequential way as described below. > > > > > > >