I have spent time working on this issue, and am confused.
I am using ant -1.5.3, and jdk1.4.2 under Solaris 8.
What I see is:
Executing '/usr/j2sdk1/4/2/jre/bin/java' with arguments
'-Xmx400M'
'-classpath'
'...' lots of jar files, as I need them for the tests.
I get a class not found error, and the class is one of the 30 or so
jar files that are included in the classpath.jar I don't understand why
this is failing to work, and any ideas would be helpful.
I am including the snippet where it fails:
- <#> <junit dir="testdir/classes" filtertrace="false"
haltonerror="false" haltonfailure="false" includeantruntime="false"
newenvironment="true" errorProperty="test.failed"
failureProperty="test.failed" fork="true" maxmemory="400M"
showoutput="true" printsummary="yes">
<formatter type="brief" usefile="false" />
<formatter type="xml" />
- <#> <classpath>
- <#> <fileset dir="/usr/java/jre/lib/ext">
<include name="*.zip" />
</fileset>
- <#> <fileset dir="/home/jblack/.netbeans/3.4/modules">
<include name="*.jar" />
</fileset>
- <#> <fileset dir="/home/jblack/.netbeans/3.4/modules/ext">
<include name="*.jar" />
</fileset>
- <#> <fileset dir="/home/jblack/src/java/BB6_jars">
<include name="*.jar" />
</fileset>
- <#> <fileset dir="/home/jblack/src/java/jsf_jars">
<include name="*.jar" />
</fileset>
- <#> <fileset dir="/home/jblack/src/java/axislibs">
<include name="*.jar" />
</fileset>
- <#> <fileset dir="/home/jblack/src/java/testdist">
<include name="*.jar" />
</fileset>
</classpath>
- <#> <batchtest todir="${test.data.dir}">
- <#> <fileset dir="${test.classes.dir}">
<include name="edu/**/jsf/**/*Test.class" />
</fileset>
</batchtest>
</junit>
Thank you.
--
"We do not lose our identity in our relations with others; in part, at least, we achieve our
identity by those relations." Tony Blair, 1993
|