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 05:01:04 UTC
cvs commit: xml-rpc build.properties build.xml
jvanzyl 01/11/14 20:01:04
Modified: . build.properties build.xml
Log:
- adding some properties and targets to create tar.gz and zip
files for distribution.
the rc1 is ready to go, just waiting for some more perm changes.
Revision Changes Path
1.2 +2 -1 xml-rpc/build.properties
Index: build.properties
===================================================================
RCS file: /home/cvs/xml-rpc/build.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.properties 2001/11/11 20:32:46 1.1
+++ build.properties 2001/11/15 04:01:04 1.2
@@ -7,7 +7,7 @@
# -------------------------------------------------------------------
name = XmlRpc
-version = 1.0
+version = 1.0rc1
project = xmlrpc
build.dir = ./bin
src.dir = ./src
@@ -21,6 +21,7 @@
debug = off
optimize = on
deprecation = off
+final.name = ${project}-${version}
# You must set these values here, or in your
# ${user.home}/build.properties file in order
1.2 +56 -0 xml-rpc/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-rpc/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- build.xml 2001/11/11 20:32:46 1.1
+++ build.xml 2001/11/15 04:01:04 1.2
@@ -185,6 +185,8 @@
<target name="clean">
<delete dir="${build.dir}"/>
+ <delete file="${final.name}.tar.gz"/>
+ <delete file="${final.name}.zip"/>
</target>
<!-- ================================================================== -->
@@ -268,6 +270,60 @@
<include name="${project}-applet.jar"/>
</fileset>
</copy>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- D I S T R I B U T I O N S -->
+ <!-- ================================================================== -->
+
+ <!-- =================================================================== -->
+ <!-- S E L F C O N T A I N E D A P P -->
+ <!-- =================================================================== -->
+ <!-- This is the start of automating the build of a set of novice -->
+ <!-- apps that will allow people to get up and running quickly with -->
+ <!-- Turbine and the TDK. -->
+ <!-- =================================================================== -->
+
+ <target
+ name="dist"
+ depends="jar">
+
+ <property name="distDir" value="${build.dir}/${final.name}"/>
+
+ <mkdir dir="${distDir}"/>
+
+ <copy todir="${distDir}" file="build.properties"/>
+ <copy todir="${distDir}" file="build.xml"/>
+
+ <!-- Copy Jars -->
+ <copy todir="${distDir}">
+ <fileset dir="${build.dir}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </copy>
+
+ <!-- Copy Source -->
+ <copy todir="${distDir}/src">
+ <fileset dir="${src.dir}">
+ <include name="**/*.java"/>
+ </fileset>
+ </copy>
+
+ <tar longfile="gnu" tarfile="${final.name}.tar">
+ <tarfileset dir="${build.dir}">
+ <include name="${final.name}/**"/>
+ </tarfileset>
+ </tar>
+
+ <gzip zipfile="${final.name}.tar.gz" src="${final.name}.tar"/>
+ <delete file="${final.name}.tar"/>
+
+ <zip zipfile="${final.name}.zip">
+ <zipfileset dir="${build.dir}">
+ <include name="${final.name}/**"/>
+ </zipfileset>
+ </zip>
+
</target>
</project>