From: <ega...@us...> - 2003-05-30 01:52:49
|
Update of /cvsroot/jrman/drafts In directory sc8-pr-cvs1:/tmp/cvs-serv20895 Modified Files: build.xml Added Files: build.properties Log Message: Added zip and targz targets. --- NEW FILE: build.properties --- dist = jrman-0_1 Index: build.xml =================================================================== RCS file: /cvsroot/jrman/drafts/build.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build.xml 30 May 2003 01:18:14 -0000 1.3 --- build.xml 30 May 2003 01:52:46 -0000 1.4 *************** *** 1,7 **** <project name="jrMan" default="compile" basedir="."> <!-- set global properties for this build --> <property name="src" location="src"/> <property name="build" location="build"/> - <property name="dist" location="dist"/> <property name="jrman" location="jrMan"/> <property name="models" location="sampleData"/> --- 1,7 ---- <project name="jrMan" default="compile" basedir="."> <!-- set global properties for this build --> + <property file="build.properties"/> <property name="src" location="src"/> <property name="build" location="build"/> <property name="jrman" location="jrMan"/> <property name="models" location="sampleData"/> *************** *** 14,17 **** --- 14,18 ---- <mkdir dir="${build}"/> <mkdir dir="${doc}"/> + <mkdir dir="${dist}"/> </target> *************** *** 33,37 **** <!-- Create the distribution directory --> - <mkdir dir="${dist}"/> <mkdir dir="${dist}/jar"/> --- 34,37 ---- *************** *** 49,58 **** <include name="license.txt"/> <include name="README.TXT"/> ! <include name="bin/jrMan.bat"/> ! <include name="bin/jrMan"/> </fileset> </copy> ! <chmod perm="+x" file="${dist}/bin/jrMan"/> <copy todir="${dist}/src" > --- 49,58 ---- <include name="license.txt"/> <include name="README.TXT"/> ! <include name="bin/jrman.bat"/> ! <include name="bin/jrman"/> </fileset> </copy> ! <chmod perm="+x" file="${dist}/bin/jrman"/> <copy todir="${dist}/src" > *************** *** 103,107 **** </target> ! --- 103,126 ---- </target> ! <target name="zip" depends="dist" ! description="creates zip file"> ! <zip zipfile="${dist}.zip" basedir="." includes="${dist}/**"/> ! </target> ! ! <target name="targz" depends="dist" ! description="creates targz file"> ! <tar tarfile="${dist}.tar"> ! <tarfileset dir="." mode="755"> ! <include name="${dist}/bin/jrman"/> ! </tarfileset> ! <tarfileset dir="." mode="755"> ! <include name="${dist}/**"/> ! <exclude name="${dist}/bin/jrman"/> ! </tarfileset> ! </tar> ! <gzip src="${dist}.tar" zipfile="${dist}.tar.gz"/> ! <delete file="${dist}.tar"/> ! </target> ! *************** *** 110,116 **** <!-- Delete the ${build} and ${dist} directory trees --> <delete dir="${build}"/> - <delete dir="${build.tests}"/> <delete dir="${dist}"/> ! <delete dir="${doc}"/> </target> </project> --- 129,135 ---- <!-- Delete the ${build} and ${dist} directory trees --> <delete dir="${build}"/> <delete dir="${dist}"/> ! <delete file="${dist}.zip"/> ! <delete file="${dist}.tar.gz"/> </target> </project> |