Here is a fragment of my build file....
<path id="project.class.path">
<pathelement location="classes"/>
<pathelement location="ThirdParty/classes"/>
<pathelement
location="ThirdParty/junit/junit3.5/junit.jar"/>
<pathelement
location="ThirdParty/openxml/openxml-1.2.jar"/>
<pathelement
location="ThirdParty/jdom/jdom-b6/build/jdom.jar"/>
<pathelement
location="ThirdParty/jdom/jdom-b6/lib/xerces.jar"/>
<pathelement
location="ThirdParty/javamail/javamail-1.2/mailapi.jar"/>
<pathelement
location="ThirdParty/instantdb/idb3_26/classes/idb.jar"/>
<pathelement
location="ThirdParty/instantdb/idb3_26/classes/jta-spec1_0_1.jar"/>
<pathelement location="${ant}/lib/optional.jar"/>
<pathelement location="${ant}/lib/ant.jar"/>
<pathelement location="${tomcat.home}/lib/servlet.jar"
/>
<pathelement location="${tomcat.home}/lib/jasper.jar" />
<pathelement location="${tomcat.home}/lib/parser.jar" />
<pathelement location="${tomcat.home}/lib/jaxp.jar" />
<pathelement location="${tomcat.home}/lib/webserver.jar"
/>
</path>
<target name="test" depends="compile">
<java className="UnitTestSuite" fork="yes">
<arg value="@src" />
<arg value="/db+" />
<classpath>
<pathelement location="classes" />
<pathelement location="/tmp/classes" />
<path refid="project.class.path"/>
</classpath>
</java>
</target>
And here, is some of the output from my test target:
[java] Forking java -classpath
/home/dcorbin/ChoiceTrust/CMS/classes:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/classes:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/junit/junit3.5/junit.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/openxml/openxml-1.2.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/jdom/jdom-b6/build/jdom.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/jdom/jdom-b6/lib/xerces.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/javamail/javamail-1.2/mailapi.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/tomcat/jakarta-tomcat-3.2.1/lib/servlet.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/tomcat/jakarta-tomcat-3.2.1/lib/jasper.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/tomcat/jakarta-tomcat-3.2.1/lib/parser.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/tomcat/jakarta-tomcat-3.2.1/lib/jaxp.jar:/home/dcorbin/ChoiceTrust/CMS/ThirdParty/tomcat/jakarta-tomcat-3.2.1/lib/webserver.jar
UnitTestSuite @src /db+
The problem is, that some of the classpath elements have "disappeared",
notably the instantdb paths.
Why? How can I resolve this?
Thanks.