Re: ant-junit and ANT_HOME help

2006-03-29 Thread MikeG
Jeremy Huiskamp wrote: Hi, junit.jar is in the classpath but removing it (once the test classes are built) doesn't help, I get the exact same error. Why are you removing it? It needs to be on the classpath during compile and while you run the tests. How is junit supposed to run if

Re: ant-junit and ANT_HOME help

2006-03-28 Thread Jacob Grydholt Jensen
... > > > > > Are you trying to confuse us by showing outcommented jar-files? It would be easier to help if you posted the smallest example that does not work. And have you tried to run ant with the '-v' option and checked that the classpath is set as you expect? Finally, I th

Re: ant-junit and ANT_HOME help

2006-03-28 Thread Jeremy Huiskamp
On 28-Mar-06, at 6:35 AM, MikeG wrote: Hi, junit.jar is in the classpath but removing it (once the test classes are built) doesn't help, I get the exact same error. Why are you removing it? It needs to be on the classpath during compile and while you run the tests. How is junit supposed

Re: ant-junit and ANT_HOME help

2006-03-28 Thread MikeG
btw, I fixed the refid error on line 20 and the problem still persists with all classpath combinations: MikeG wrote: Hi, junit.jar is in the classpath but removing it (once the test classes are built) doesn't help, I get the exact same error. I can make it work using the tag to lanuch j

Re: ant-junit and ANT_HOME help

2006-03-28 Thread MikeG
Hi, junit.jar is in the classpath but removing it (once the test classes are built) doesn't help, I get the exact same error. I can make it work using the tag to lanuch junit but this isn't so flexible. The error and the example ant file that produces it is below. build/classes/hello contain

Re: ant-junit and ANT_HOME help

2006-03-27 Thread Jeremy Huiskamp
Please report the specific error printed out. Also, do you have junit.jar on your classpath as well? Jeremy On 27-Mar-06, at 5:29 PM, MikeG wrote: Hi, can anyone help me to get junit to work with ant? Ant and JUnit both work on their own but Ant doesn't recognise the tag. According to t

ant-junit and ANT_HOME help

2006-03-27 Thread MikeG
Hi, can anyone help me to get junit to work with ant? Ant and JUnit both work on their own but Ant doesn't recognise the tag. According to the ant faq the fix for this is to set ANT_PATH such that $ANT_PATH/lib contains ant-junit.jar but on my system ant-junit.jar is in /usr/local/lib/java/