I found it ..

It was a problem with ant's handeling of spaces in folder names.

I had installed ant in c:\Program Files\jakarta-ant-1.5.1\ and even
though the jars existed there, they were being removed from the
classpath by the ant classpath loader:

    [junit] Running com.opensymphony.webwork.config.ConfigurationTest
dropping D:\workspace\os.webwork\src\etc\test from path as it doesn't
exist
dropping C:\Program%20Files\jakarta-ant-1.5.1\lib\junit-3.8.1.jar from
path as it doesn't exist
dropping C:\Program%20Files\jakarta-ant-1.5.1\lib\ant.jar from path as
it doesn't exist

I think it is something to do with the %20 in the folder name.
Something that the ANT people need to sort out.

Since moving ant into c:\java\jakarta-ant-1.5.1\ it works like a treat.

Thanks for your help.







-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Jason Carreira
Sent: Monday, 1 September 2003 2:24 PM
To: [EMAIL PROTECTED]
Subject: RE: [OS-webwork] Testing Xwork


Make sure you don't have an old version of Junit cluttering up your
classpath anywhere (especially in ant_home/lib), even sitting next to
the new one...

> -----Original Message-----
> From: Cameron Braid [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 01, 2003 12:13 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Testing Xwork
> 
> 
> Don't you keep a copy of emails in your folders ?  ;)
> 
> 
> >     -----Original Message-----
> >     From: Cameron Braid [mailto:[EMAIL PROTECTED]
> >     Sent: Wednesday, August 27, 2003 4:33 AM
> >     To: [EMAIL PROTECTED]
> >     Subject: [OS-webwork] Testing Xwork
> >
> >
> >     I can't seem to get the xwork ant test target to run :(
> >
> >     I have placed
> >
> >         junit-3.8.1.jar in ANT_HOME\lib
> >         clover-1.2.jar in ANT_HOME\lib
> >
> >     then I run ant test to receive this :
> >
> >     D:\workspace\os.xwork>ant test
> >     Buildfile: build.xml
> >
> >     format:
> >        [jalopy] Jalopy Java Source Code Formatter 1.0b10
> >        [jalopy] Format 131 source files
> >        [jalopy] 129 source files formatted
> >
> >     java:
> >
> >     test:
> >         [junit] Running com.opensymphony.xwork.ActionContextTest
> >         [junit] java.lang.NoClassDefFoundError:
> >org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner
> >         [junit] Exception in thread "main"
> >
> >     BUILD FAILED
> >     file:D:/workspace/os.xwork/build.xml:77: Test
> >com.opensymphony.xwork.ActionContextTest failed
> >
> >     Total time: 6 seconds
> >     D:\workspace\os.xwork>
> >
> >
> >     I have also tried adding junit and ant optional top my
> classpath.
> >
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Jason Carreira
> Sent: Monday, 1 September 2003 2:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Testing Xwork
> 
> 
> What's the error?
> 
> > -----Original Message-----
> > From: Cameron Braid [mailto:[EMAIL PROTECTED]
> > Sent: Sunday, August 31, 2003 11:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: [OS-webwork] Testing Xwork
> > 
> > 
> > My previous post :
> > 
> > >   I can't seem to get the xwork ant test target to run :(
> > >
> > >   I have placed
> > >
> > >       junit-3.8.1.jar in ANT_HOME\lib
> > >       clover-1.2.jar in ANT_HOME\lib
> > >
> > ...
> > >
> > >
> > >   I have also tried adding junit and ant optional top my
> > classpath.
> > 
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> On Behalf Of
> > Tracy Snell
> > Sent: Monday, 1 September 2003 1:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [OS-webwork] Testing Xwork
> > 
> > 
> > On 8/31/03 10:19 PM, "Cameron Braid" <[EMAIL PROTECTED]> wrote:
> > 
> > > Can you guys please help me with setting up the test process.
> > > 
> > > I normally run tests within Eclipse, though I seem to be having 
> > > classpath problems.
> > > 
> > > Therefore, I am trying to get the ant test target to work
> - without
> > > any success.
> > 
> > What's the error you're getting? Also, try putting a copy of the
> > junit.jar file in ${ANT_HOME}/lib.
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Opensymphony-webwork mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to