ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shuangli_...@NAI.com
Subject RE: junit problem with ant 1.4.1
Date Tue, 11 Jun 2002 22:04:57 GMT
Thanks. I have ant.jar in ant\lib. Here is the list of file in ant\lib:
	ant.jar, crimson.jar, jaxp.jar, optional.jar

I print the %LOCALCLASSPATH% before 
"%_JAVACMD%" -classpath "%LOCALCLASSPATH%" -Dant.home="%ANT_HOME%"
%ANT_OPTS% org.apache.tools.ant.Main %ANT_CMD_LINE_ARGS%

here is the output
classpath:
C:\jdk131\lib\tools.jar;C:\jakarta-ant-1.4.1\bin\\..\lib\optional.jar;C:\jak
arta-ant-1.4.1\bin\\..\lib\jaxp.jar;C:\jakarta-ant-1.4.1\bin\\..\lib\crimson
.jar;C:\jakarta-ant-1.4.1\bin\\..\lib\ant.jar;

-----Original Message-----
From: Dominique Devienne [mailto:DDevienne@lgc.com]
Sent: Tuesday, June 11, 2002 2:53 PM
To: 'Ant Users List'
Subject: RE: junit problem with ant 1.4.1


Having junit.jar in ant\lib should fix it. There are other ways to fix it,
but that should get you going. --DD

-----Original Message-----
From: Shuangli_Cao@NAI.com [mailto:Shuangli_Cao@NAI.com] 
Sent: Tuesday, June 11, 2002 4:53 PM
To: ant-user@jakarta.apache.org
Subject: junit problem with ant 1.4.1


I got some problem with junit. I have optional.jar under ant\lib directory.
I am sure optional.jar is in the classpath.

Thanks in advance.

here is the junit task script
    <target name="junittest" depends="setup">
         <junit>
	      <test name="TestSlc" />
         </junit>
   </target>

Here is the error message:
junittest:
    [junit] Could not create task of type: junit Common solutions are adding
the
 task to defaults.properties and executing bin/bootstrap

BUILD FAILED

qatest.xml:96: 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).
        at
org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:153)

        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83)
        at org.apache.tools.ant.Task.perform(Task.java:216)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

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

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

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


Mime
View raw message