ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: AW: a question about pass parameter to java
Date Fri, 06 Dec 2002 15:36:12 GMT
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-----
Sent: Friday, December 06, 2002 3:34 AM
Subject: AW: AW: a question about pass parameter to java

good to know, thanks.

-----Urspr√ľngliche Nachricht-----
Von: Erik Hatcher []
Gesendet am: Freitag, 6. Dezember 2002 10:32
An: Ant Users List
Betreff: Re: AW: a question about pass parameter to java 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
> ";"

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.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message