ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
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-----
From: Meinolf.Schulte-Doeinghaus@Bertelsmann.de
[mailto:Meinolf.Schulte-Doeinghaus@Bertelsmann.de] 
Sent: Friday, December 06, 2002 3:34 AM
To: ant-user@jakarta.apache.org
Subject: AW: AW: a question about pass parameter to java

Aha,
good to know, thanks.

-----Urspr√ľngliche Nachricht-----
Von: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Gesendet am: Freitag, 6. Dezember 2002 10:32
An: Ant Users List
Betreff: Re: AW: a question about pass parameter to java

Meinolf.Schulte-Doeinghaus@Bertelsmann.de 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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message