You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2007/12/21 01:16:11 UTC

svn commit: r606070 - /commons/proper/pool/branches/1_4_RELEASE_BRANCH/build.xml

Author: psteitz
Date: Thu Dec 20 16:16:10 2007
New Revision: 606070

URL: http://svn.apache.org/viewvc?rev=606070&view=rev
Log:
Change Ant build.xml to include source and target JDK versions
in the manifest

JIRA: POOL-115
Reported and patched by Sebastian Bazley

Modified:
    commons/proper/pool/branches/1_4_RELEASE_BRANCH/build.xml

Modified: commons/proper/pool/branches/1_4_RELEASE_BRANCH/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/pool/branches/1_4_RELEASE_BRANCH/build.xml?rev=606070&r1=606069&r2=606070&view=diff
==============================================================================
--- commons/proper/pool/branches/1_4_RELEASE_BRANCH/build.xml (original)
+++ commons/proper/pool/branches/1_4_RELEASE_BRANCH/build.xml Thu Dec 20 16:16:10 2007
@@ -63,6 +63,8 @@
       <property name="javac.optimize" value="false"/>
       <property name="javac.debug" value="true"/>
       <property name="javac.deprecation" value="true"/>
+      <property name="javac.target.version" value="1.3"/>
+      <property name="javac.src.version" value="1.3"/>
    </target>
 
    <!-- ######################################################### -->
@@ -93,7 +95,7 @@
                nohelp="true"
                nonavbar="false"
                serialwarn="false"
-               source="1.4">
+               source="${javac.src.version}">
           <link href="http://java.sun.com/j2se/1.4.2/docs/api"/>
       </javadoc>
    </target>
@@ -108,7 +110,8 @@
              debug="${javac.debug}"
              deprecation="${javac.deprecation}"
              optimize="${javac.optimize}"
-             source="1.4"/>
+	         target="${javac.target.version}"
+             source="${javac.src.version}"/>
    </target>
    
    <target name="compile-test" depends="compile">
@@ -118,7 +121,8 @@
              debug="${javac.debug}"
              deprecation="${javac.deprecation}"
              optimize="${javac.optimize}"
-             source="1.4">
+	         target="${javac.target.version}"
+             source="${javac.src.version}">
         <classpath>
           <pathelement location="${build.classes.dir}" /> 
           <pathelement location="${build.test-classes.dir}" /> 
@@ -152,6 +156,8 @@
             <attribute name="Specification-Title" value="${title}"/>
             <attribute name="Implementation-Version" value="${version}"/>
             <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+            <attribute name="X-Compile-Source-JDK" value="${javac.src.version}"/>
+            <attribute name="X-Compile-Target-JDK" value="${javac.target.version}"/>
 
          </manifest>
       </jar>