author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 18:51:38 +0200 | |
changeset 263 | 7e8e995065c5 |
parent 146 | afad3bdb7bce |
permissions | -rw-r--r-- |
jtulach@142 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
jtulach@263 | 2 |
<project name="Generic Constructor" default="run" basedir="."> |
jtulach@142 | 3 |
<target name="clean"> |
jtulach@142 | 4 |
<delete dir="build"/> |
jtulach@142 | 5 |
</target> |
jtulach@263 | 6 |
<target name="test"/> |
jtulach@142 | 7 |
|
jtulach@142 | 8 |
<target name="compile" depends="build"/> |
jtulach@142 | 9 |
<target name="build" depends="clean"> |
jtulach@142 | 10 |
<echo level="info" message="Compiles with 1.4"/> |
jtulach@142 | 11 |
<antcall target="-build-one"> |
jtulach@142 | 12 |
<param name="version" value="plain"/> |
jtulach@142 | 13 |
<param name="source" value="1.4"/> |
jtulach@142 | 14 |
</antcall> |
jtulach@146 | 15 |
<echo level="info" message="Compiles with 1.5, fails as there is now cast"/> |
jtulach@146 | 16 |
<antcall target="-build-one"> |
jtulach@146 | 17 |
<param name="version" value="generics"/> |
jtulach@146 | 18 |
<param name="source" value="1.5"/> |
jtulach@146 | 19 |
</antcall> |
jtulach@142 | 20 |
<echo level="info" message="Compiles with 1.5"/> |
jtulach@142 | 21 |
<antcall target="-build-one"> |
jtulach@146 | 22 |
<param name="version" value="factory"/> |
jtulach@142 | 23 |
<param name="source" value="1.5"/> |
jtulach@142 | 24 |
</antcall> |
jtulach@142 | 25 |
</target> |
jtulach@142 | 26 |
|
jtulach@142 | 27 |
<!-- support methods --> |
jtulach@142 | 28 |
|
jtulach@142 | 29 |
<target name="-build-one"> |
jtulach@142 | 30 |
<fail message="You need to specify version number" unless="version"/> |
jtulach@142 | 31 |
<fail message="You need to specify source number" unless="source"/> |
jtulach@142 | 32 |
|
jtulach@142 | 33 |
<property name="target" value="${version}"/> |
jtulach@142 | 34 |
<mkdir dir="build/${target}/classes"/> |
jtulach@142 | 35 |
<javac |
jtulach@142 | 36 |
srcdir="src-${version}" |
jtulach@142 | 37 |
destdir="build/${target}/classes" |
jtulach@142 | 38 |
source="${source}" target="${source}" |
jtulach@142 | 39 |
classpath="${cp}" |
jtulach@142 | 40 |
failonerror="false" |
jtulach@146 | 41 |
> |
jtulach@146 | 42 |
<compilerarg value="-Xlint:unchecked"/> |
jtulach@146 | 43 |
</javac> |
jtulach@142 | 44 |
</target> |
jtulach@142 | 45 |
</project> |