ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Levy-Lambert" <anto...@antbuild.com>
Subject Re: problem getting junit task to find classes
Date Tue, 29 Jul 2003 21:08:19 GMT
try to add a fork="true" attribute for your junit class.
Also, if problems persist, run ant -verbose or ant -debug to find out more.
You can send us the output of ant -verbose to have a look at.
Cheers,
Antoine
----- Original Message -----
From: "James Black" <jblack@ieee.org>
To: "'Ant Users List'" <user@ant.apache.org>
Sent: Tuesday, July 29, 2003 10:18 PM
Subject: re: problem getting junit task to find classes


> 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
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message