ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: New Launcher and JPackage RPMs
Date Fri, 16 Jan 2004 15:15:23 GMT
Antoine Lévy-Lambert wrote:

> I am +1 to get this into ant 1.6.1.

(in relation to static map of jarfile->manifest class path in
AntClassLoader2).

Ok I will commit that.

Another optimization I tried was a quick hack to DefBase to have a 
static field containing the default classloader, so it
gets set once.  This did speed up the typedef the second and subsequent 
times and reduced the
time for the test to 1.6 second (from 3 and thus below the 1.5.4 times 
(2 second) when using the crimson xml parser).
However it is a complete hack, and does not deal with non-default 
classpaths  like:
<typedef classpath="${antlib.jar}" 
resource="net/sf/antcontrib/antcontrib.properties"/>

Note that the problem is not so bad for the antlib: xml ns shortcut.

<project xmlns:ac="antlib:net.sf.antcontrib">
  <target name="compile-mains">
       <ac:foreach list="a,b,c,d,e,f,g,h,i" param="program" 
           target="compile"/>
   </target>
    <target name="compile">
       ..
   </target>
</project>

This will in ant 1.6.1 cause only one typedef of the ant-contrib tasks. 
(There
is a bug in 1.6.0 which causes the tasks to be loaded for each ant-call, 
this
is fixed in cvs).

Peter

Mime
View raw message