Make the pool impl compile for JDK 1.5 by swapping out the enum keyword.
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Nov 2006 17:02:55 +0000 (17:02 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Nov 2006 17:02:55 +0000 (17:02 +0000)
Another fix is to simply put source="1.4" for the dbcp javac target.
Let me know if you prefer one over the other.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@477747 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index abdf65b..cbb3c30 100644 (file)
--- a/build.xml
+++ b/build.xml
       <replacefilter token="org.apache.commons"
             value="org.apache.tomcat.dbcp" />
     </replace>
+    <replace dir="${tomcat-dbcp.home}/src/java/org/apache/commons/pool/impl" >
+      <replacefilter token="enum"
+            value="enumeration" />
+    </replace>
+
     <mkdir dir="${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp" />
     <move todir="${tomcat-dbcp.home}/src/java/org/apache/tomcat/dbcp">
       <fileset dir="${tomcat-dbcp.home}/src/java/org/apache/commons" />