Specify javac source and target versions. Default both to 1.3. Folks

can override with 'ant -Djavac.source=XXX'.  Patch from Brion
Vibber.  Bug #34544.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@162067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doug Cutting 2005-04-20 20:48:16 +00:00
parent 1f53ece799
commit e9dccfdbf1
1 changed files with 16 additions and 4 deletions

View File

@ -19,8 +19,12 @@
<property name="version" value="1.9-rc1-dev"/>
<property name="year" value="2000-${current.year}"/>
<property name="final.name" value="${name}-${version}"/>
<property name="javac.deprecation" value="on"/>
<property name="javac.debug" value="on"/>
<property name="javac.source" value="1.3"/>
<property name="javac.target" value="1.3"/>
<property name="project.name" value="site"/> <!-- todo: is this used by anakia or something else? -->
<property name="javadoc.link" value="http://java.sun.com/j2se/1.4/docs/api/"/>
<property name="build.encoding" value="utf-8"/>
@ -157,7 +161,9 @@
includes="org/**/*.java"
destdir="${build.dir}/classes/java"
deprecation="${javac.deprecation}"
debug="${javac.debug}">
debug="${javac.debug}"
source="${javac.source}"
target="${javac.target}">
<classpath refid="classpath"/>
</javac>
@ -234,7 +240,9 @@
srcdir="src/demo"
includes="**/*.java"
destdir="${build.dir}/classes/demo"
debug="${javac.debug}">
debug="${javac.debug}"
source="${javac.source}"
target="${javac.target}">
<classpath refid="demo.classpath"/>
</javac>
</target>
@ -257,7 +265,9 @@
srcdir="src/test-deprecated"
includes="**/*.java"
destdir="${build.dir}/classes/test-deprecated"
debug="true">
debug="true"
source="${javac.source}"
target="${javac.target}">
<classpath refid="test-deprecated.classpath"/>
</javac>
</target>
@ -306,7 +316,9 @@
srcdir="src/test"
includes="**/*.java"
destdir="${build.dir}/classes/test"
debug="true">
debug="true"
source="${javac.source}"
target="${javac.target}">
<classpath refid="test.classpath"/>
</javac>
</target>