ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <co...@cortexebusiness.com.au>
Subject Re: New launcher
Date Wed, 18 Jul 2001 10:18:29 GMT
From: "Stefan Bodewig" <bodewig@apache.org>
>
> I noticed that the version using Launcher seems to be incredibly slow
> - 53 seconds compared to 24 for plain Ant when running ZipTest in
> JDK 1.1, full testsuite 82 seconds compared to 46 where
> ExecuteWatchdogTest accounts for about 20 seconds in JDK 1.2, other
> figures are similar (with JDK 1.4 being the slowest by far).

I have committed some improvements to the classloader. Can you retry and
see what is the performance differential? On NT, it is now only marginally
slower.

>
> Removing the xml libs as well as JUnit from the lib dir and putting
> them into the CLASSPATH (with my patch applied):
>
>     [junit] Testsuite: org.apache.tools.ant.ZipTest
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit]
>     [junit] Caused an ERROR
>     [junit] org.apache.tools.ant.ZipTest
>     [junit] java.lang.ClassNotFoundException:
org.apache.tools.ant.ZipTest
>     [junit] at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.ja
va, Compiled Code)
>
> or whatever testcase I try - seems it doesn't use the user specified
> classpath any longer.  I'll dig a little deeper.
>

I didn't have these problems. I'll try to look into building on my Linux
box. Of course, I can't compile the unit tests unless I make this change

Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-ant/build.xml,v
retrieving revision 1.160
diff -u -w -r1.160 build.xml
--- build.xml   2001/07/12 07:09:08     1.160
+++ build.xml   2001/07/18 10:05:53
@@ -58,6 +58,7 @@
   <path id="tests-classpath">
     <pathelement location="${build.classes}" />
     <pathelement location="${build.tests}" />
+    <pathelement location="lib/optional/junit.jar" />
     <path refid="classpath" />
   </path>


Also, I can't compile many Ant classes using the launcher as they require
the XML classes, and some classes from tools.jar and these are no longer in
the standard classpath. It would probably be good to make the compile
classpath in the Ant build.xml file explicit.

Conor






Mime
View raw message