lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r162067 - /lucene/java/trunk/build.xml
Date Wed, 20 Apr 2005 20:48:18 GMT
Author: cutting
Date: Wed Apr 20 13:48:16 2005
New Revision: 162067

URL: http://svn.apache.org/viewcvs?rev=162067&view=rev
Log:
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.

Modified:
    lucene/java/trunk/build.xml

Modified: lucene/java/trunk/build.xml
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/build.xml?rev=162067&r1=162066&r2=162067&view=diff
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Wed Apr 20 13:48:16 2005
@@ -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>



Mime
View raw message