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 2011/05/14 08:03:14 UTC

svn commit: r1102961 - /commons/proper/dbcp/trunk/build.xml

Author: psteitz
Date: Sat May 14 06:03:13 2011
New Revision: 1102961

URL: http://svn.apache.org/viewvc?rev=1102961&view=rev
Log:
Added target to jar the mock JDBC objects.

Modified:
    commons/proper/dbcp/trunk/build.xml

Modified: commons/proper/dbcp/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/build.xml?rev=1102961&r1=1102960&r2=1102961&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/build.xml (original)
+++ commons/proper/dbcp/trunk/build.xml Sat May 14 06:03:13 2011
@@ -227,5 +227,23 @@
    </target>
 
    <target name="dist" depends="build" description="gump target"/>
-   
+	
+   <target name="mock-jar" depends="compile-test" description="Bundles mock JDBC objects">
+      <mkdir dir="${dist.dir}"/>
+      <jar jarfile="${mock.jar}">
+         <fileset dir="${build.test-classes.dir}">
+            <include name="**/Tester*.class"/>
+         </fileset>
+         <metainf dir="${basedir}" includes="LICENSE.txt,NOTICE.txt"/>
+         <manifest>
+            <attribute name="Built-By" value="${user.name}"/>
+            <attribute name="Package" value="${package}"/>
+            <attribute name="Extension-Name" value="${name}-mocks"/>
+            <attribute name="Specification-Vendor" value="Apache Software Foundation"/>
+            <attribute name="Specification-Title" value="${title}"/>
+            <attribute name="Implementation-Version" value="${version}"/>
+            <attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
+         </manifest>
+      </jar>
+   </target>
 </project>