Re: Scanning Resource Collections Several Times

2009-08-21 Thread Dominique Devienne
On Fri, Aug 21, 2009 at 9:46 AM, Dale Anson wrote: > Part of the problem is the way delete is > implemented in Java itself, that is, a non-empty directory cannot be deleted > with java.io.File.delete(), so the delete task is required to traverse the > tree and delete files from the bottom up. Well

Re: Scanning Resource Collections Several Times

2009-08-21 Thread Archie Cobbs
On Fri, Aug 21, 2009 at 9:46 AM, Dale Anson wrote: > Does your change improve performance of the delete task at all? I recently > replaced many of the calls to delete in our build files with an exec call to > rm, since profiling showed the delete task was responsible for over 50% of > the total

Re: Scanning Resource Collections Several Times

2009-08-21 Thread Stefan Bodewig
On 2009-08-21, Dale Anson wrote: > Does your change improve performance of the delete task at all? Potentially, although the change is more about correctness (in the presence of a modified selector) than speed. If you use inside on code earlier than today's the task will delete files it is no

Re: Scanning Resource Collections Several Times

2009-08-21 Thread Dale Anson
Hi Stefan, Does your change improve performance of the delete task at all? I recently replaced many of the calls to delete in our build files with an exec call to rm, since profiling showed the delete task was responsible for over 50% of the total time of the build. Part of the problem is th

Re: Scanning Resource Collections Several Times

2009-08-21 Thread Stefan Bodewig
On 2009-08-21, Matt Benson wrote: > --- On Fri, 8/21/09, Stefan Bodewig wrote: >> I'd like to modify Resources to >> (1) lazily initialize size() - Delete never asks for it, for >> example. > Sounds good. >> (2) Cache the remaining iteration results when initializing size > The only

Re: Replace target's problem

2009-08-21 Thread Blaine Simpson
Khushwinder wrote: > Hello All, > > ... > > > > casesensitive="true"> > > > .js > > > > > But it is also replacing the jsp file with build number because the > replacetoken value is like .js. > I want that it should only replace .js

Re: Scanning Resource Collections Several Times

2009-08-21 Thread Matt Benson
--- On Fri, 8/21/09, Stefan Bodewig wrote: > From: Stefan Bodewig > Subject: Scanning Resource Collections Several Times > To: dev@ant.apache.org > Date: Friday, August 21, 2009, 3:20 AM > Hi, > > I just closed a bug > > in delete > t

Re: Scanning Resource Collections Several Times

2009-08-21 Thread Stefan Bodewig
On 2009-08-21, Stefan Bodewig wrote: > I'd like to modify Resources to > (1) lazily initialize size() - Delete never asks for it, for > example. > (2) Cache the remaining iteration results when initializing size http://svn.apache.org/viewvc?rev=806471&view=rev > Does anybody s

Scanning Resource Collections Several Times

2009-08-21 Thread Stefan Bodewig
Hi, I just closed a bug in delete that really points to a deeper problem. Delete was scanning the same fileset three times. Once by innocently calling getDirectoryScanner (and discarding the results if includeEmptyDirs and removeNotFollo

Replace target's problem

2009-08-21 Thread Khushwinder
Hello All, For improving speed of my website i am using the following http://developer.yahoo.com/performance/rules.html#expires For implementing this solution i need to do the two things using ant: 1) Renaming all the static contents(css,js,img) files each time i make a build. 2)Replacing th