ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Handling multiple JDK versions with ant
Date Wed, 27 Feb 2002 15:26:57 GMT
On Wed, 27 Feb 2002, Ken Kachnowich <khkachn@madweed.ncsc.mil> wrote:

> I want to be able to add some code that makes use of new 1.4
> features and compile with 1.4 for the 1.4 systems.

Take a look at Ant's own build file.

It defines properties jdk1.2+, jdk1.3+ and jdk1.4+ using <available>
looking for classes that have been added in these JDKs respectively.

In <javac> you'll find 

<exclude name="class/that/requires/1/4/jdk.java" unless="jdk1.4+" />

Stefan

--
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