ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Juergens <juerg...@promedico.com>
Subject Linux/Windows portability
Date Mon, 10 May 2004 13:55:56 GMT
Hi,

I need a build.xml for both Windows and Linux. Currently, I uses something 
like this:


<property name="mysqlwin" 
location="c:/jarbox/mysql-connector-java-3.0.11-stable-bin.jar"/>
<property name="mysqllin" 
location="/usr/share/jdbc-mysql/lib/mysql-connector-java-3.0.11-stable-bin.jar"/>

<property name="mysql" location="${mysqlwin}:${mysqllin}"/>

<target name="compileHeather" description="compile heather" >
 <javac srcdir="${src}:${generated}" destdir="${classes}" 
includes="heather/**" classpath="${mysql}" failonerror="on"/>
</target>

So, in ${mysql} are both Windows and Linux pathes - though only
one would be needed.

Any better way of doing this? 

The problem is that I have a lot of dependencies on external jar files and I 
want a simple way to put all those jars in a directory.

Thanks a lot,
Bernd

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message