Have you tried "testNG", it may load all these jar files once, for all the test 
cases. and it can be executed through ant and lots of other features. 

-cji 

-----Original Message-----
From: Kevin Cline [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 17, 2006 3:16 PM
To: user@ant.apache.org
Subject: path performance
Importance: Low


I am working on a complex project with a LOT of JARs on the classpath.
Currently we are using this path element:

     <path id ="classpath.unit_test">
        <pathelement path="${test.config.dir}"/>
        <pathelement path="${config.dir}"/>
        <pathelement path="${config.xml.dir}"/>
        <pathelement path="${classes.dir}"/>
        <!-- add all files in lib.dir to path -->
        <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
                <include name="**/*.zip"/>
        </fileset>
    </path>

This path is used in this junit element:
   <target name="test" >
                <junit >
                        <classpath refid="classpath.unit_test"/>
                        <test name="test1"/>
                        <test name="test2"/>
                        ...

Timing indicates that ant is spending 30 seconds per test to walk the lib
tree building the classpath.  Does anyone have a solution to this problem?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to