]> source.dussan.org Git - poi.git/commitdiff
- Added the "source" and "target" options to the javac targets in order to place...
authorRainer Klute <klute@apache.org>
Wed, 13 Jul 2005 20:52:10 +0000 (20:52 +0000)
committerRainer Klute <klute@apache.org>
Wed, 13 Jul 2005 20:52:10 +0000 (20:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353750 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 6a708966a4518d3e8d26ffd68516c710c3654094..b8b65b4e9d497470175552c9bcbd61447570181e 100644 (file)
--- a/build.xml
+++ b/build.xml
   <property name="examples.jar3.url" value="${repository}/commons-lang/jars/commons-lang-1.0-b1.jar"/>
   <property name="examples.testokfile" location="build/examples-testokfile.txt"/>
 
-    <property name="junit.jar1.dir" location="${main.lib}/junit-3.8.1.jar"/>
-    <property name="junit.jar1.url" value="${repository}/junit/jars/junit-3.8.1.jar"/>
-    <property name="build.site" location="build/tmp/site/build/site"/>
-    <property name="build.site.src" location="build/tmp/site"/>
-    <property name="junit.report.dir" location="${build.site}/junit"/>
-    <property name="jdepend.report.dir" location="${build.site}/jdepend"/>
-    <property name="jdepend.report.out.dir" location="${build.site.src}/src/documentation/content/jdepend"/>
-    <property name="apidocs.report.dir" location="${build.site}/apidocs"/>
-    <property name="changelog.file" location="${build.site}/changelog.html"/>
-    <property name="dist.dir" location="build/dist"/>
-    <property name="jar.name" value="poi"/>
-    <property name="version.id" value="3.0-alpha1"/>
-    <property name="halt.on.test.failure" value="true"/>
+  <property name="junit.jar1.dir" location="${main.lib}/junit-3.8.1.jar"/>
+  <property name="junit.jar1.url" value="${repository}/junit/jars/junit-3.8.1.jar"/>
+  <property name="build.site" location="build/tmp/site/build/site"/>
+  <property name="build.site.src" location="build/tmp/site"/>
+  <property name="junit.report.dir" location="${build.site}/junit"/>
+  <property name="jdepend.report.dir" location="${build.site}/jdepend"/>
+  <property name="jdepend.report.out.dir" location="${build.site.src}/src/documentation/content/jdepend"/>
+  <property name="apidocs.report.dir" location="${build.site}/apidocs"/>
+  <property name="changelog.file" location="${build.site}/changelog.html"/>
+  <property name="dist.dir" location="build/dist"/>
+  <property name="jar.name" value="poi"/>
+  <property name="version.id" value="3.0-alpha1"/>
+  <property name="halt.on.test.failure" value="true"/>
+  <property name="jdk.version.source" value="1.3"
+    description="JDK version of source code"/>
+  <property name="jdk.version.class" value="1.3"
+    description="JDK version of generated class files"/>  
 
     <path id="main.classpath">
         <pathelement location="${main.jar1.dir}"/>
     <copy todir="${main.output.dir}">
       <fileset dir="${main.resource1.dir}"/>
     </copy>
-    <javac srcdir="${main.src}" destdir="${main.output.dir}" debug="on"
-      fork="yes" includeAntRuntime="no" failonerror="true">
+    <javac target="${jdk.version.class}" source="${jdk.version.source}"
+      failonerror="true" destdir="${main.output.dir}" debug="on" fork="yes"
+      srcdir="${main.src}">
       <classpath refid="main.classpath"/>
     </javac>
-    <javac srcdir="${main.src.test}" destdir="${main.output.test.dir}"
-      debug="on" fork="yes" includeAntRuntime="no" failonerror="true">
+    <javac target="${jdk.version.class}" source="${jdk.version.source}"
+      failonerror="true" destdir="${main.output.test.dir}" debug="on"
+      fork="yes" srcdir="${main.src.test}">
       <classpath>
         <path refid="main.classpath"/>
         <pathelement location="${main.output.dir}"/>
   </target>
 
   <target name="compile-scratchpad" depends="init">
-    <javac srcdir="${scratchpad.src}" destdir="${scratchpad.output.dir}"
-      debug="on" fork="yes" includeAntRuntime="no" failonerror="true">
+    <javac target="${jdk.version.class}" source="${jdk.version.source}"
+      failonerror="true" destdir="${scratchpad.output.dir}" debug="on"
+      fork="yes" srcdir="${scratchpad.src}">
       <classpath refid="scratchpad.classpath"/>
     </javac>
-    <javac srcdir="${scratchpad.src.test}"
-      destdir="${scratchpad.output.test.dir}" debug="on" fork="yes"
-      includeAntRuntime="no" failonerror="true">
+    <javac target="${jdk.version.class}" source="${jdk.version.source}"
+      failonerror="true" destdir="${scratchpad.output.test.dir}" debug="on"
+      fork="yes" srcdir="${scratchpad.src.test}">
       <classpath>
         <path refid="scratchpad.classpath"/>
         <pathelement location="${scratchpad.output.dir}"/>
   </target>
 
   <target name="compile-contrib" depends="init">
-    <javac srcdir="${contrib.src}" destdir="${contrib.output.dir}"
-      debug="on" fork="yes" includeAntRuntime="no" failonerror="true">
+    <javac target="${jdk.version.class}" source="${jdk.version.source}"
+      failonerror="true" destdir="${contrib.output.dir}" debug="on" fork="yes"
+      srcdir="${contrib.src}">
       <classpath refid="contrib.classpath"/>
     </javac>
-    <javac srcdir="${contrib.src.test}"
-      destdir="${contrib.output.test.dir}" debug="on" fork="yes"
-      includeAntRuntime="no" failonerror="true">
+    <javac target="${jdk.version.class}" source="${jdk.version.source}"
+      failonerror="true" destdir="${contrib.output.test.dir}" debug="on"
+      fork="yes" srcdir="${contrib.src.test}">
       <classpath>
         <path refid="contrib.classpath"/>
         <pathelement location="${contrib.output.dir}"/>
   </target>
 
   <target name="compile-examples" depends="init">
-    <javac srcdir="${examples.src}" destdir="${examples.output.dir}"
-      debug="on">
+    <javac target="${jdk.version.class}" source="${jdk.version.source}"
+      destdir="${examples.output.dir}" debug="on" srcdir="${examples.src}">
       <classpath refid="examples.classpath"/>
     </javac>
   </target>