Description: Allows the source and target version to be changed via a property.
Bug: http://bugs.debian.org/559323

--- a/build.xml	2010-02-12 19:41:31.842284948 +0100
+++ b/build.xml	2010-02-12 19:44:16.010284117 +0100
@@ -84,6 +84,12 @@
   <!-- Should Java compilations set the 'optimize' compiler option? -->
   <property name="compile.optimize"        value="true"/>
 
+  <!-- The java source version -->
+  <property name="compile.source"          value="1.5"/>
+
+  <!-- The java target version -->
+  <property name="compile.target"          value="1.5"/>
+
   <!-- Construct compile classpath -->
   <path id="compile.classpath">
     <pathelement location="${build.home}/classes"/>
@@ -170,6 +176,8 @@
   <target name="compile-only" >
     <javac  srcdir="${source.home}"
            destdir="${build.home}/classes"
+            source="${compile.source}"
+            target="${compile.target}"
              debug="${compile.debug}"
        deprecation="${compile.deprecation}"
           optimize="${compile.optimize}">
@@ -185,6 +193,8 @@
    description="Compile unit test cases">
     <javac  srcdir="${test.home}"
            destdir="${build.home}/tests"
+            source="${compile.source}"
+            target="${compile.target}"
              debug="${compile.debug}"
        deprecation="${compile.deprecation}"
           optimize="${compile.optimize}">
