Oops - spoke too soon! [red-faced grin]

Without going into the embarressing details, my
previous assertion that setting 
includeantruntime="no" made everything work 
perfectly is not at all correct. Rather, ant
just prints out the following exception for 
each TestCase loaded:

    [junit] Exception in thread "main"
java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner

This doesn't change it I put junit.jar in the
$CLASSPATH or in $ANT_HOME/lib.

Currently if I set build.sysclasspath="ignore" the 
following still leads to the $CLASSPATH being 
searched:        
<junit printsummary="yes"
       haltonfailure="no"
       fork="yes">
...
</junit>

My current environment is a bit too complicated to 
be used to debug this issue so I'm going to take 
a while to set up a clean-room enviroment where I
can isolate the problem a little better.

--- ippi <[EMAIL PROTECTED]> wrote:

> Stefan, you're a Legend - the following works 
> perfectly (with ant 1.6.2):
> 
> <junit printsummary="yes"
>        haltonfailure="no"
>        fork="yes"
>        newenvironment="yes"
>        includeantruntime="no>
> ...
> </junit>
> 
> I was missing the includeantruntime="no". 
> 
> Thanks again.
> 
> 
> --- Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> 
> > On Fri, 21 Jan 2005, ippi <[EMAIL PROTECTED]>
> > wrote:
> > 
> > > Thanks for the reply. I had actually tried
> setting
> > > the build.sysclasspath but I quickly gave up on
> it
> > > when it failed to work for me. When I got your 
> > > message I did some more extensive testing and
> now
> > > I realise that the build.sysclasspath property
> > only 
> > > effects the <junit> tasks that don't fork a new
> > JVM.
> > 
> > I don't think this is true.  Which version of Ant
> > are you using?
> > At least if you set newenvironment at the same
> time,
> > your initial
> > CLASSPATH setting shouldn't be there.  Make sure
> > includeantruntime is
> > false as well.
> > 
> > Stefan
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> All your favorites on one personal page – Try My
> Yahoo!
> http://my.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to