ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Black <jbl...@ieee.org>
Subject re: more on problem with classpath and junit
Date Wed, 30 Apr 2003 17:50:40 GMT
Hello,
  I have junit, nbjunit (I use some netbeans extensions) in $ANT_HOME/lib, and that seems
to work.

  Here is an example of an error I get:
    [junit] edu.usf.acomp.epic.persons.AbstractAffiliationTest
    [junit] java.lang.ClassNotFoundException:
edu.usf.acomp.epic.persons.Abstract

find . -name AbstractAffiliationTest.class
./classes/edu/usf/acomp/epic/persons/AbstractAffiliationTest.class
./testdir/classes/edu/usf/acomp/epic/persons/AbstractAffiliationTest.class

  <property name="home.dir" location="."/> 
<property name="test.classes.dir" location="${home.dir}/testdir/classes"/>

  <path id="test.jar">
    <pathelement location="${test.classes.dir}"/>
  </path>

        <junit dir="${test.classes.dir}"
               filtertrace="true"
               haltonerror="false"
               haltonfailure="false"
               includeantruntime="false"
               newenvironment="true"
               errorProperty="test.failed"
               failureProperty="test.failed"
               fork="true"
               maxmemory="400M"
               showoutput="true"
               printsummary="false">
            <classpath refid="test.jar">
            </classpath>
            <batchtest todir="${test.data.dir}">
              <fileset dir="${test.classes.dir}">
                <include name="edu/usf/acomp/graphics/**/*Test.class"/>
                <include name="edu/usf/acomp/axis/**/*Test.class"/>
                <include name="edu/usf/acomp/epic/**/*Test.class"/>
              </fileset>
            </batchtest>




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



Mime
View raw message