ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bala Subramanian" <>
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" />

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

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



D:\bala\latest\build.xml:93: Could not create task of type: junit. Common
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

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 .


View raw message