ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <>
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/" />
  <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"/>
  <target name="doit">
    <foreach list="1,2,3,4,5,6,7,8,9,10" param="name" target="doit2"/>
  <target name="doit2"/>

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 


View raw message