ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clifton Craig" <...@icsaward.com>
Subject Re: Performance gain with subant task?
Date Tue, 25 Nov 2003 16:34:27 GMT
Ok, so I never considered writing a selector. (Actually I did but I thought
it was more complex than that.) Not a bad idea. Thanks.

Clifton C. Craig
Intelligent Computer Systems
A division of Global Beverage Group
ccc@icsaward.com
----- Original Message ----- 
From: <Jan.Materne@rzf.fin-nrw.de>
To: <user@ant.apache.org>
Sent: Tuesday, November 25, 2003 11:10 AM
Subject: RE: Performance gain with subant task?


> > I have a question regarding the new subant task in version
> > 1.6. Is subant
> > significantly faster than using foreach from ant-contrib? I
> > have a rather
> > lengthy build process that I'm looking to make faster. Right now I use
> > foreach to iterate over ever entry in a dirset and either run
> > a javac in the
> > folder or run a build file if it is found. Due to the structure of our
> > project it was necessary but difficult to filter out folders
> > in a dirset
> > where they included a build.xml file. So now performance
>
> Difficult? Writing a Selector is very easy ...
>
> public boolean isSelected(File basedir, String filename, File file) {
>     File buildfile = new File(file, "build.xml");
>     return file.isDirectory() && buildfile.exists();
> }
>
>
> Jan
>
>
>
> > suffers because of
> > the overhead of foreach where a straight javac over a fileset
> > would be much
> > faster. I'm looking for any suggestions at all that would
> > help performance.
> > For example would anyone know how to exclude folders that include a
> > build.xml in a dirset? That would be half of my battle.
> >
> > Clifton C. Craig
> > Intelligent Computer Systems
> > A division of Global Beverage Group
> > ccc@icsaward.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
>


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


Mime
View raw message