ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bala Subramanian" <ba...@lucid.co.in>
Subject Regarding Junit Program
Date Thu, 22 Feb 2001 04:36:39 GMT
junitreport styledir parameter doesn't get index.html or stylesheet.cssHi
martin ,
   I need help from u very urgently .I have downloaded the optional.jar
   I know how to write the junit code.

  Snippet code
  -------------------

<target name="JunitTest">
<junit fork="yes" printsummary="yes" haltonfailure="yes">
<formatter type="plain"/>
<test name="com.sun.SimpleTest" outfile="result" />
</junit>
</target>

   In the command prompt , i have given the ant JunitTest .But iam getting
error
   message as  follows :-

D:\bala\latest>ant JunitTest
Buildfile: build.xml

JunitTest:

BUILD FAILED

D:\bala\latest\build.xml:93: Could not create task of type: junit. Common
solut
ons are to use taskdef to declare your task, or, if this is an optional
task, t
 put the optional.jar in the lib directory of your ant installation
(ANT_HOME).

Total time: 0 seconds


          But i kept the optional.jar in the ANT_HOME/lib directory. I dont
why it is unable to
  find the optional.jar .Please help me .It is very urgent to me .


Greetings
bala





Mime
View raw message