ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Wood <kw...@i2.com>
Subject Re: Platform independend classpath in build.xml?
Date Fri, 26 May 2000 16:45:13 GMT
path.separator is a pre-defined property that has
";" or ":" depending on what OS you're running.

Here is what I did:

 <property name="S" value="${path.separator}" />  
 <property name="classpath"
value="${JCORELIB}${S}${classes}${S}${LIBROOT}/appframe.jar${S}${LIBROOT}/font.jar"
/>

I used "S" becuase I didn't want path.separator over and over and
over...

Lars Martin wrote:
> 
> Hi all,
> 
> how do I set a platform independend classpath in build.xml?
> 
> Something like
> 
>   <property name="classpath" value="${build.dir};${jar.dir}/..."/>
> 
>   <javac srcdir="${src.dir}"
>        destdir="${build.dir}"
>        classpath="${classpath}"/>
> 
> works under Windows but not under Unix. Changing ";" to ":" in the classpath
> property works under Unix but not under Windows? What did I wrong? Did i miss
> something?
> 
> Lars
> --
> ________________________________________________________________
> Lars Martin                         mailto:lars@softwarebuero.de
> softwarebuero m&b (SMB)              http://www.softwarebuero.de

--

Mime
View raw message