author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 18:51:38 +0200 | |
changeset 263 | 7e8e995065c5 |
parent 141 | 9ae8488379e0 |
permissions | -rw-r--r-- |
jtulach@136 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
jtulach@136 | 2 |
<project name="incompatibilities" default="run" basedir="."> |
jtulach@136 | 3 |
<target name="clean"> |
jtulach@136 | 4 |
<delete dir="build"/> |
jtulach@136 | 5 |
</target> |
jtulach@263 | 6 |
<target name="test"/> |
jtulach@136 | 7 |
|
jtulach@136 | 8 |
<target name="compile" depends="build"/> |
jtulach@136 | 9 |
<target name="build" depends="clean"> |
jtulach@136 | 10 |
<echo level="info" message="Compiles correctly with JDK 1.5, and also 1.3, but that is hard to demonstrate"/> |
jtulach@136 | 11 |
<antcall target="-build-one"> |
jtulach@136 | 12 |
<param name="version" value="io"/> |
jtulach@136 | 13 |
<param name="source" value="1.5"/> |
jtulach@136 | 14 |
</antcall> |
jtulach@136 | 15 |
<echo level="info" message="Does not compile in 1.4 mode"/> |
jtulach@136 | 16 |
<antcall target="-build-one"> |
jtulach@136 | 17 |
<param name="version" value="io"/> |
jtulach@136 | 18 |
<param name="source" value="1.4"/> |
jtulach@136 | 19 |
</antcall> |
jtulach@136 | 20 |
</target> |
jtulach@136 | 21 |
|
jtulach@136 | 22 |
<!-- support methods --> |
jtulach@136 | 23 |
|
jtulach@136 | 24 |
<target name="-build-one"> |
jtulach@136 | 25 |
<fail message="You need to specify version number" unless="version"/> |
jtulach@136 | 26 |
<fail message="You need to specify source number" unless="source"/> |
jtulach@136 | 27 |
|
jtulach@136 | 28 |
<property name="target" value="${source}"/> |
jtulach@136 | 29 |
<mkdir dir="build/${target}/classes"/> |
jtulach@136 | 30 |
<javac |
jtulach@136 | 31 |
srcdir="src-io" |
jtulach@136 | 32 |
destdir="build/${target}/classes" |
jtulach@136 | 33 |
source="${source}" target="${source}" |
jtulach@136 | 34 |
classpath="${cp}" |
jtulach@141 | 35 |
failonerror="false" |
jtulach@136 | 36 |
/> |
jtulach@136 | 37 |
</target> |
jtulach@136 | 38 |
</project> |