ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Ant 1.7 release
Date Thu, 01 Jun 2006 14:36:11 GMT
>Not sure if we can build Ant 1.7 under JDK 1.5 also all in one 
>go and still produce jars which can run under 1.2.

Should be possible (but I would do a test after the build...)

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html
-target version 
Generate class files that will work on VMs with the specified version.
The default is to generate class files to be compatible with the JDK 5
VM. When the -source 1.4 or lower option is used, the default target is
1.4. The versions supported by javac are: cldc1.0  Generate class files
suitable for use on VMs in Connected Limited Device Configuration (CLDC)
version 1.0 and later. The compiler generates stack maps making the use
of the preverifier unnecessary.  
1.1  Generate class files that will run on VMs in JDK 1.1 and later.  
1.2  Generate class files that will run on VMs in JDK 1.2 and later, but
will not run on 1.1 VMs.  
1.3  Generate class files that will run on VMs in JDK 1.3 and later, but
will not run on 1.1 or 1.2 VMs.  
1.4  Generate class files that will run on VMs in JDK 1.4 and later, but
will not run on 1.1, 1.2 or 1.3 VMs.  
1.5  Generate class files that are compatible only with JDK 5 VMs.  
5 Synonym for 1.5  



So a  -target 1.2  should work the job - which is the default behaviour
in our buildfile (property javac.target).
Could only produce troubles if there is use of Java5 language stuff in
the JDK5-only classes (e.g. enum, generic).

Jan

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


Mime
View raw message