Here is the snippet from build.xml
<path id="tests_run.path">
<pathelement
location="${build.home}/dbms_testcases/dbm_junit.jar"/>
<pathelement location="${jdbms.home}/jar/junit.jar"/>
....
</path>
<target name="run-test"
depends="prepare-run-test,compile-tests,ensure-test-name">
<echo message="Running TestCase ${test}. Report will be generated
at build/dbms_testcases/testReport/index.html"/>
<classpath refid="${tests_run.path}"/>
<echo level="info" message="Classpath = ${CLASSPATH}"/>
<junit haltonfailure="no" fork="yes" printsummary="withOutAndErr">
....
</junit>
This same thing worked when I had junit 3.8.1
Thanks for your response
Shobhana
-----Original Message-----
From: Anderson, Rob (Global Trade) [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 27, 2007 5:08 PM
To: Ant Users List
Subject: RE: Junit4 ant 1.6.2
Please post the related portion of your build.xml.
-Rob A
> -----Original Message-----
> From: Kirtane, Shobhana Vijay [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 27, 2007 3:36 PM
> To: [email protected]
> Subject: Junit4 ant 1.6.2
>
> Hi all,
>
> When I include junit.jar(junit4.4) in classpath in this way
> : EXPORT CLASSPATH = /....:junit.jar , my test cases work fine.No
> problem here
>
> When I set the junit.jar in classpath in build.xml it fails out Could
> not create task or type of type: classpath.
> Ant could not find the task or a class this task relies upon
>
> The output from ant -diagnostics :
>
> ant -diagnostics
> ------- Ant diagnostics report ------- Apache Ant version 1.6.2
> compiled on August 5 2004
>
> -------------------------------------------
> Implementation Version (JDK1.2+ only)
> -------------------------------------------
> core tasks : null
> optional tasks : 1.6.2
> ---
> -------------------------------------------
> ANT_HOME/lib jar listing
> -------------------------------------------
> ......
> junit.jar (164046 bytes)
> ant-junit.jar (92792 bytes)
>
> -------------------------------------------
> Tasks availability
> -------------------------------------------
> jdepend : Missing dependency jdepend.xmlui.JDepend junit :
> Missing dependency junit.framework.Test
>
> java.runtime.version : 1.5.0_10-b03
>
> ant.home: /local/weblogic922/weblogic92/server (Using the ant which
> comes with weblogic 9.2.2)
>
>
> Any suggestions to overcome this issue ?
>
> Thanks
> Shobhana
>
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]