Better yet, don't use path separators at all, and always use forward slash
file separators:

<pathelement path="${classpath}" />
<pathelement location="${deploy}/MyHello.jar" />
<pathelement location="${pathTo}/weblogic.jar" />

Ideally, ${classpath} would also be defined as a <path>, and just refid'd.

This ought to be a best practice IMHO. --DD

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 06, 2002 3:34 AM
To: [EMAIL PROTECTED]
Subject: AW: AW: a question about pass parameter to java

Aha,
good to know, thanks.

-----Ursprüngliche Nachricht-----
Von: Erik Hatcher [mailto:[EMAIL PROTECTED]]
Gesendet am: Freitag, 6. Dezember 2002 10:32
An: Ant Users List
Betreff: Re: AW: a question about pass parameter to java

[EMAIL PROTECTED] wrote:
> Hi,
> did you add the weblogic.jar to the classpath?
> Try           
> <pathelement
> path="${classpath};${deploy}/MyHello.jar;${pathTo}/weblogic.jar"/>
> 
> to be independent of the plattform you can use ${path.separator} instead
of
> ";"

No, no, no.... :)

Ant takes care of ;:/\ issues for you in paths.  Keep using the 
separators of your choice and it'll still work cross-platform.

        Erik

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

Reply via email to