When I try to use ant to run a junit test (with the optional.jar in my
ANT_HOME/lib directory and junit.jar in my classpath, this script:


� � <target name="unit.test">
� � � � <junit haltonfailure="yes">
� � � � � � <classpath refid="project.class.path.ref"/>
� � � � � � <test
name="test.com.ams.icsg.acq.security.SecurityAndConnectivityTest"
haltonfailure="yes" outfile="result" >
� � � � � � � � <formatter type="xml" />
� � � � � � </test>
� � � � </junit>
� � </target>


generates this error:
Buildfile: build.xml

unit.test:
BUILD FAILED

Could not create task of type: junit. Common solutions are to use taskdef to
declare your task, or, if this is an optional task, to put the optional.jar in
the lib directory of your ant installation (ANT_HOME).

Total time: 1 second

I've looked through all the documentation on the optional junit task, and can't
seem to see the errors of my ways. �The optional jar is definitely getting into
the classpath:
localcp =
D:\JDK1.3.1\lib\tools.jar;D:\jakarta-ant-1.5alpha\lib\optional.jar;D:\jakarta-ant-1.5alpha\lib\jaxp.jar;D:\jakarta-ant-1.5alpha\lib\crimson.jar;D:\jakarta-ant-1.5alpha\lib\ant.jar;d:\sybase\jConnect-5_5\classes\jconn2.jar;d:\pd50dev\lib\deploy\crypto-all.jar;d:\pd50dev\lib\deploy\log4j.jar;d:\pd50dev\lib\deploy\concurrent.jar;d:\pd50dev\lib\deploy\jakarta-regexp-1.2.jar;d:\pd50dev\lib\deploy\event-api.jar


Any help would be appreciated. �Thanks.

-----------------------------------------------------
Michael Stopper
Senior Principal / SPS Technical Architect
American Management Systems, Inc.
4114 Legato Road
Fairfax, Virginia �22033
703.227.6646 Office
703.227.4696 FAX
mailto:[EMAIL PROTECTED]


Reply via email to