commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject svn commit: r1806165 - /commons/proper/jelly/branches/1.X/build.xml
Date Fri, 25 Aug 2017 12:34:01 GMT
Author: chtompki
Date: Fri Aug 25 12:34:01 2017
New Revision: 1806165

URL: http://svn.apache.org/viewvc?rev=1806165&view=rev
Log:
Adding build for jars: javadoc, tests, test-sources, and sources

Modified:
    commons/proper/jelly/branches/1.X/build.xml

Modified: commons/proper/jelly/branches/1.X/build.xml
URL: http://svn.apache.org/viewvc/commons/proper/jelly/branches/1.X/build.xml?rev=1806165&r1=1806164&r2=1806165&view=diff
==============================================================================
--- commons/proper/jelly/branches/1.X/build.xml (original)
+++ commons/proper/jelly/branches/1.X/build.xml Fri Aug 25 12:34:01 2017
@@ -130,7 +130,8 @@
     <delete dir="${distdir}">
     </delete>
   </target>
-  <target name="dist" description="o Create a distribution" depends="jar, javadoc">
+  <target name="dist" description="o Create a distribution" depends="jar, javadoc,
+  sources-jar, test-sources-jar, javadoc-jar, tests-jar">
     <mkdir dir="dist">
     </mkdir>
     <copy todir="dist">
@@ -231,6 +232,26 @@
       </classpath>
     </javadoc>
   </target>
+  <target name="javadoc-jar" description="o Generate javadoc-jar" depends="javadoc">
+    <jar destfile="${defaulttargetdir}/${final.name}-javadoc.jar">
+      <fileset dir="${distdir}/docs" includes="**/**"/>
+    </jar>
+  </target>
+  <target name="sources-jar" description="o Generate sources-jar" depends="compile">
+    <jar destfile="${defaulttargetdir}/${final.name}-sources.jar">
+      <fileset dir="${basedir}/src/java" includes="**/**"/>
+    </jar>
+  </target>
+  <target name="tests-jar" description="o Generate tests-jar" depends="compile-tests">
+    <jar destfile="${defaulttargetdir}/${final.name}-tests.jar">
+      <fileset dir="${defaulttargetdir}/test-classes" includes="**/**"/>
+    </jar>
+  </target>
+  <target name="test-sources-jar" description="o Generate test-sources-jar" depends="compile">
+    <jar destfile="${defaulttargetdir}/${final.name}-test-sources.jar">
+      <fileset dir="${basedir}/src/test" includes="**/**"/>
+    </jar>
+  </target>
   <target name="get-dep-servletapi.jar" description="o Download the dependency : servletapi.jar"
unless="servletapi.jar" depends="init,setProxy,noProxy,get-custom-dep-servletapi.jar">
     <mkdir dir="${libdir}/servletapi/jars/">
     </mkdir>



Mime
View raw message