ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pellier Marc <arc...@onssapl.fgov.be>
Subject RE: Problem with junit task
Date Fri, 25 Apr 2003 06:42:24 GMT
Try to put th junit.jar in the same folder of ant.jar and optional.jar

And I think it is not necessary to reference junit.jar and optional.jar in
your project.classpath id

-----Original Message-----
From: Wendy Smoak [mailto:Wendy.Smoak@asu.edu]
Sent: vendredi 25 avril 2003 2:11
To: 'Ant Users List'
Subject: Problem with junit task



I recently moved to ant 1.5.3-1 and my junit task has stopped working.  I
have junit 3.8.1.

I have read the docs for the task:
http://ant.apache.org/manual/OptionalTasks/junit.html

I have the two files on my classpath:

<property name="junit" value="c:\java\junit3.8.1" />
<property name="ant"  value="c:\jakarta\apache-ant-1.5.3-1"/>

   <path id="project.classpath">
      <pathelement location="${junit}\junit.jar"/>
      <pathelement location="${ant}\lib\optional.jar"/>
   </path>

And my target:

   <target name="test" depends="compile-test">
     <junit showoutput="true">
       <test name="edu.asu.vpia.dao.TestUniDataContactDAO"/>
       <formatter type="plain"/>
       <classpath refid="project.classpath"/>
     </junit>
   </target>

It used to work, and I don't think I've changed anything.  Does anyone see
what I've missed?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

Mime
View raw message