You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rpc-dev@xml.apache.org by jv...@apache.org on 2001/11/15 17:17:28 UTC
cvs commit: xml-rpc build.xml
jvanzyl 01/11/15 08:17:28
Modified: . build.xml
Log:
- updating the "dist" target to produce a binary and source distribution.
the source distribution includes the build system so that people
can attempt to debug easier.
Revision Changes Path
1.4 +60 -8 xml-rpc/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-rpc/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build.xml 2001/11/15 15:46:05 1.3
+++ build.xml 2001/11/15 16:17:28 1.4
@@ -278,15 +278,24 @@
<target
name="dist"
- depends="jar">
+ depends="jar,javadocs,docs">
<property name="distDir" value="${build.dir}/${final.name}"/>
- <mkdir dir="${distDir}"/>
+ <!-- B I N A R Y D I S T R I B U T I O N -->
- <copy todir="${distDir}" file="build.properties"/>
- <copy todir="${distDir}" file="build.xml"/>
+ <echo>
+ +-------------------------------------------------------+
+ | C R E A T I N G B I N A R Y D I S T R I B U T I O N |
+ +-------------------------------------------------------+
+ </echo>
+ <mkdir dir="${distDir}"/>
+
+ <!-- Copy README and LICENSE -->
+ <copy todir="${distDir}" file="README.txt"/>
+ <copy todir="${distDir}" file="LICENSE"/>
+
<!-- Copy Jars -->
<copy todir="${distDir}">
<fileset dir="${build.dir}">
@@ -294,13 +303,14 @@
</fileset>
</copy>
- <!-- Copy Source -->
- <copy todir="${distDir}/src">
- <fileset dir="${src.dir}">
- <include name="**/*.java"/>
+ <!-- Copy documentation -->
+ <copy todir="${distDir}/docs">
+ <fileset dir="${docs.dest}">
+ <include name="**"/>
</fileset>
</copy>
+ <!-- Create a tar.gz file -->
<tar longfile="gnu" tarfile="${final.name}.tar">
<tarfileset dir="${build.dir}">
<include name="${final.name}/**"/>
@@ -310,12 +320,54 @@
<gzip zipfile="${final.name}.tar.gz" src="${final.name}.tar"/>
<delete file="${final.name}.tar"/>
+ <!-- Create a zip file -->
<zip zipfile="${final.name}.zip">
<zipfileset dir="${build.dir}">
<include name="${final.name}/**"/>
</zipfileset>
</zip>
+
+ <!-- S O U R C E D I S T R I B U T I O N -->
+
+ <echo>
+ +-------------------------------------------------------+
+ | C R E A T I N G S O U R C E D I S T R I B U T I O N |
+ +-------------------------------------------------------+
+ </echo>
+
+ <delete>
+ <fileset dir="${distDir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </delete>
+
+ <copy todir="${distDir}" file="build.properties"/>
+ <copy todir="${distDir}" file="build.xml"/>
+
+ <!-- Copy Source -->
+ <copy todir="${distDir}/src">
+ <fileset dir="${src.dir}">
+ <include name="**/*.java"/>
+ </fileset>
+ </copy>
+
+ <!-- Create a tar.gz file -->
+ <tar longfile="gnu" tarfile="${final.name}-src.tar">
+ <tarfileset dir="${build.dir}">
+ <include name="${final.name}/**"/>
+ </tarfileset>
+ </tar>
+ <gzip zipfile="${final.name}-src.tar.gz" src="${final.name}-src.tar"/>
+ <delete file="${final.name}-src.tar"/>
+
+ <!-- Create a zip file -->
+ <zip zipfile="${final.name}-src.zip">
+ <zipfileset dir="${build.dir}">
+ <include name="${final.name}/**"/>
+ </zipfileset>
+ </zip>
+
</target>
</project>