On Wed, Dec 10, 2003 at 02:28:23PM +0100, Jeremias Maerki wrote: > junit.jar is sufficient. The jar should be placed in %ANT_HOME%/lib. Use > JUnit 3.8.1 or later to be sure. > > The JUnit task is included in Ant's optional.jar but only works if > junit.jar is present in %ANT_HOME%/lib. > > Actually, I don't understand why the JUnit suport is recognized but the > test cases don't work.
junit-3.8.1.jar is the lib subdirectory of the checked out distribution. The build script declares this directory to be ANT_HOME. When I put the junit jar file there, the JUnit support was recognized. The build script does not add the junit jar file to the LOCALCLASSPATH. But when I did that it made no difference. Ant's failure message mentions optional.jar. I do not have that because it does not come with the checkout. Could that be the cause? I run Sun's java version "1.4.2_01" on linux. > On 10.12.2003 12:44:08 Chris Bowditch wrote: > > Whats the name of the jar containing the junit ant task definition then? > > > > Ive added the junit.jar, there is also a test.jar and a src.jar in my > > junit directory (no lib sub dir though!) > > > > The junit.present condition in the build.xml file doesnt let you procced > > without the junit.jar. However, I'm not sure if junit.jar contains the > > ant task definition. > > Jeremias Maerki Regards, Simon -- Simon Pepping email: [EMAIL PROTECTED] home page: http://www.leverkruid.nl --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]