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 Thu, 15 Jan 2004 17:33:39 GMT
Antoine Lévy-Lambert wrote:

> Hi Peter,
>
> can we improve the new classloader so that the work of inspecting the 
> jars does not happen each time an <antcall/> is done ?

Yes by keeping a static map of file->manifest class path.

With the following:
<project default="call-all">
  <taskdef resource="net/sf/antcontrib/antcontrib.properties" />
  <taskdef resource="cpptasks.tasks"/>
  <typedef resource="cpptasks.types"/>
  <target name="call-all">
    <foreach list="1,2,3,4,5,6,7,8,9,10" param="name" target="doit"/>
    <echo>Done</echo>
  </target>
  <target name="doit">
    <foreach list="1,2,3,4,5,6,7,8,9,10" param="name" target="doit2"/>
  </target>
  <target name="doit2"/>
</project>

and the included patch, the time is reduced from 6 seconds to 3 seconds 
- not
a great improvement considering that there is 100 ant-calls, but it is a 
improvement!

Peter

Mime
View raw message