Thanks but no Windows 2000 copes with this ok (which is naughty really) -
but the env vars echo correctly.

-----Original Message-----
From: Anakreon Mejdi [mailto:amejdi@;ertonline.gr]
Sent: 24 October 2002 11:58
To: Ant Users List
Subject: Re: Problem with Junit


ANT_HOME=C:\Program Files\Ant\jakarta-ant-1.5
CLASSPATH=C:\IBM 
Connectors\classes;.;C:\sqllib\java\db2java.zip;C:\sqllib\java\runtime.zip;C
:\sqllib\bin;%JUNIT_HOME%\junit.jar;C:\Program 
Files\junit\junit3.8.1

Since the paths contain spaces they should be enclosed in quotes.
For example:ANT_HOME="C:\Program Files\Ant\jakarta-ant-1.5"

To be sure that the env Vars exist type echo %ANT_HOME% from a dos console

Simon Baker wrote:

> Actually the Junit.jar file exists within ${checkedout.dir}/lib, so it's
> already in the junit classpath - thanks anyway. I'll keep exploring.
> 
> -----Original Message-----
> From: Simon Baker [mailto:simon.baker@;clearmoney.com]
> Sent: 24 October 2002 11:53
> To: 'Ant Users List'
> Subject: RE: Problem with Junit
> 
> 
> Nope but before i do ... should i really need to do this since i have both
> optional.jar and junit.jar in ANT_HOME\lib?
> 
> -----Original Message-----
> From: Lynne Lawrence [mailto:lgl@;visuallink.com]
> Sent: 24 October 2002 11:50
> To: Ant Users List
> Subject: Re: Problem with Junit
> 
> 
> Have you tried adding the junit jar to the classpath element of your junit
> task?
> 
> Simon Baker wrote:
> 
> 
>>I am experiencing a 'silly' problem with Junit. Can anyone show me the
>>light?
>>
>>The Ant code is:
>>
>>                <junit printsummary="withOutAndErr" haltonfailure="yes">
>>                        <classpath>
>>                                <pathelement
>>path="${build.dir}/agent/classes"/>
>>                                <fileset dir="${checkedout.dir}/lib"
>>includes="*"/>
>>                        </classpath>
>>
>>                        <formatter type="plain" />
>>                        <batchtest fork="yes" todir="${base.dir}">
>>                        <fileset dir="${build.dir}/agent/classes"
>>includes="**/*$Test*.class" excludes="**/*$Test*$*"/>
>>                        </batchtest>
>>                </junit>
>>
>>    </target>
>>
>>The output is:
>>
>>test.agent:
>>    [junit] Running
>>com.clear.webstream.threaddispatcher.FileJanitor$TestFileJan
>>itor
>>    [junit] java.lang.NoClassDefFoundError:
>>org/apache/tools/ant/taskdefs/option
>>al/junit/JUnitTestRunner
>>    [junit] Exception in thread "main"
>>
>>BUILD FAILED
>>file:C:/Program Files/IBM/Application
>>Developer/workspace/xml/ant/webstream/buil
>>d.xml:665: Test
>>com.clear.webstream.threaddispatcher.FileJanitor$TestFileJanitor
>> failed
>>
>>My environment variables are set to the following:
>>
>>ANT_HOME=C:\Program Files\Ant\jakarta-ant-1.5
>>CLASSPATH=C:\IBM
>>
>>
>
Connectors\classes;.;C:\sqllib\java\db2java.zip;C:\sqllib\java\runtime.zip;C
> 
>>:\sqllib\bin;%JUNIT_HOME%\junit.jar
>>C:\Program Files\junit\junit3.8.1
>>
>>Simon Baker
>>Clear Money Ltd.
>>84-86 Regent Street
>>London
>>W1B 5RR
>>t: +44 (0)20 7025 6605
>>f: +44 (0)20 7025 6501
>>e: [EMAIL PROTECTED]
>>
>>Visit our web site at: <http://www.clear.co.uk>
>>
>>**********************************************************************
>>Confidentiality: this e-mail and any attachments may be confidential. If
>>
> you are not the intended recipient you should not read, copy, distribute,
> disclose or otherwise use the information in this e-mail and any
> attachments. Please reply to this e-mail highlighting the error and delete
> the e-mail and any attachments from your system.
> 
>>Security Warning: please note that this e-mail has been created in the
>>
> knowledge that Internet e-mail is not a 100% secure communications medium.
> We suggest that you consider this when e-mailing us.
> 
>>Viruses: although we have taken steps to ensure that this e-mail and
>>
> attachments are free from any virus we advise that in keeping with good
> computing practice the recipients should ensure that they are actually
virus
> free.
> 
>>Clear, Clear Money and the Clear logo are trade marks of Clear Money
>>
> Limited and they should not be used, nor should any part of the material
in
> this e-mail be copied, without our prior written permission. Clear Money
> Limited is a limited liability company incorporated in the UK. Registered
> Office: 84-86 Regent Street, London. W1B 5RR. Telephone: 020 7025 6500.
Fax:
> 020 7025 6501. Corporation No: 03873527. VAT No: 751 8550 22.
> 
>>**********************************************************************
>>
>>--
>>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
>>For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
>>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>


**********************************************************************
Confidentiality: this e-mail and any attachments may be confidential. If you are not 
the intended recipient you should not read, copy, distribute, disclose or otherwise 
use the information in this e-mail and any attachments. Please reply to this e-mail 
highlighting the error and delete the e-mail and any attachments from your system.

Security Warning: please note that this e-mail has been created in the knowledge that 
Internet e-mail is not a 100% secure communications medium. We suggest that you 
consider this when e-mailing us.

Viruses: although we have taken steps to ensure that this e-mail and attachments are 
free from any virus we advise that in keeping with good computing practice the 
recipients should ensure that they are actually virus free.

Clear, Clear Money and the Clear logo are trade marks of Clear Money Limited and they 
should not be used, nor should any part of the material in this e-mail be copied, 
without our prior written permission. Clear Money Limited is a limited liability 
company incorporated in the UK. Registered Office: 84-86 Regent Street, London. W1B 
5RR. Telephone: 020 7025 6500. Fax: 020 7025 6501. Corporation No: 03873527. VAT No: 
751 8550 22.
**********************************************************************

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>

Reply via email to