commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r884734 - /commons/proper/dbcp/branches/TEST_DBCP_1_3_BRANCH/build.xml
Date Fri, 27 Nov 2009 01:11:32 GMT
Author: niallp
Date: Fri Nov 27 01:11:31 2009
New Revision: 884734

URL: http://svn.apache.org/viewvc?rev=884734&view=rev
Log:
Add ant step to comment out JDBC 4 methods

Modified:
    commons/proper/dbcp/branches/TEST_DBCP_1_3_BRANCH/build.xml

Modified: commons/proper/dbcp/branches/TEST_DBCP_1_3_BRANCH/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/branches/TEST_DBCP_1_3_BRANCH/build.xml?rev=884734&r1=884733&r2=884734&view=diff
==============================================================================
--- commons/proper/dbcp/branches/TEST_DBCP_1_3_BRANCH/build.xml (original)
+++ commons/proper/dbcp/branches/TEST_DBCP_1_3_BRANCH/build.xml Fri Nov 27 01:11:31 2009
@@ -157,6 +157,19 @@
       <property name="javac.source" value="1.5" />
    </target>
 
+   <target name="update-dbcp-13-branch">
+      <echo message="Update DBCP 1.3 Branch - Comment out the jdbc4 additional methods."/>
+      <property name="src.dir" value="${basedir}/src"/>
+      <property name="src.java.dir" value="${src.dir}/java"/>
+      <property name="src.test.dir" value="${src.dir}/test"/>
+
+      <replace dir="${src.java.dir}" token="/* JDBC_4_ANT_KEY_BEGIN */" value="/*"/>
+      <replace dir="${src.java.dir}" token="/* JDBC_4_ANT_KEY_END */" value="*/"/>
+
+      <replace dir="${src.test.dir}" token="/* JDBC_4_ANT_KEY_BEGIN */" value="/*"/>
+      <replace dir="${src.test.dir}" token="/* JDBC_4_ANT_KEY_END */" value="*/"/>
+   </target>
+
    <target name="prepare" depends="init,prepare-nojdbc4,prepare-jdbc4"/>
 
    <target name="javadoc" depends="prepare" description="generates javadocs">



Mime
View raw message