commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1102961 - /commons/proper/dbcp/trunk/build.xml
Date Sat, 14 May 2011 06:03:14 GMT
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>



Mime
View raw message