diff options
author | cvs2svn <[email protected]> | 2004-07-09 06:50:56 +0000 |
---|---|---|
committer | cvs2svn <[email protected]> | 2004-07-09 06:50:56 +0000 |
commit | ee5ff056b53618da3146f37b0e5b7395203d7b44 (patch) | |
tree | a9d434fc462417bb981b1565fd64cea5e7c82c15 /build.xml | |
parent | 4ac2d590b2c18728ee636c391882619bc2a642b8 (diff) | |
parent | 4f13ea26c4f47e54e66926f0700cf631e7bb3352 (diff) |
This commit was manufactured by cvs2svn to create tag 'hannover'.hannover
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 104 |
1 files changed, 22 insertions, 82 deletions
@@ -1,67 +1,46 @@ <!-- Buildfile --> -<project name="jake2" default="dist" basedir="."> +<project name="jake2" default="jar" basedir="."> - <taskdef name="proguard" classname="proguard.ant.ProGuardTask"> - <classpath> - <pathelement location="lib/proguard/proguard.jar"/> - </classpath> - </taskdef> - <!-- properties --> <property name="src" location="src"/> - <property name="test" location="test"/> <property name="build" location="build"/> <property name="dist" location="dist"/> <!-- different classpaths --> <path id="build.class.path"> - <pathelement location="lib/jogl/linux/jogl.jar"/> - <pathelement location="lib/joal/linux/joal.jar"/> + <pathelement location="lib/jogl/jogl.jar"/> + </path> + + <path id="test.class.path"> + <pathelement path="${build}"/> + </path> + + <path id="source.path"> + <pathelement location="src"/> </path> <!-- initialize directories --> <target name="init"> <mkdir dir="${build}"/> - <mkdir dir="${dist}/lib"/> + <mkdir dir="${dist}"/> </target> <!-- compile --> <target name="compile" depends="init"> <javac destdir="${build}" optimize="on" debug="off" source="1.4"> <src path="${src}"/> - <include name="jake2/**"/> + <include name="jake2/Jake2.java"/> <classpath refid="build.class.path"/> </javac> </target> <!-- copy libs --> <target name="copylibs"> - <copy todir="${dist}/lib/linux"> - <fileset dir="lib/jogl/linux"> - <include name="*"/> - </fileset> - <fileset dir="lib/joal/linux"> - <include name="*"/> - </fileset> - </copy> - <copy todir="${dist}/lib/windows"> - <fileset dir="lib/jogl/windows"> - <include name="*"/> - </fileset> - <fileset dir="lib/joal/windows"> - <include name="*"/> - </fileset> - </copy> <copy todir="${dist}"> - <fileset dir="scripts"> - <include name="Jake2.*"/> + <fileset dir="lib"> + <include name="/jogl/jogl.jar"/> </fileset> </copy> - <chmod perm="755"> - <fileset dir="${dist}"> - <include name="*.sh"/> - </fileset> - </chmod> </target> <!-- copy resources --> @@ -75,22 +54,11 @@ <!-- jar --> <target name="jar" depends="compile,copyres"> - <jar destfile="${dist}/lib/jake.jar" basedir="${build}"> + <jar destfile="${dist}/jake2.jar" basedir="${build}"> <include name="jake2/**"/> </jar> - <proguard printseeds="on" printusage="off" outjar="${dist}/lib/jake2.jar" - defaultpackage="" overloadaggressively="off"> - <injar name="${dist}/lib/jake.jar"/> - <libraryjar name="lib/jogl/linux/jogl.jar"/> - <libraryjar name="lib/joal/linux/joal.jar"/> - <libraryjar name="${java.home}/lib/rt.jar"/> - <keep access="public" name="jake2.Jake2"> - <method name="main(java.lang.String[])"/> - </keep> - </proguard> - <delete file="${dist}/lib/jake.jar"/> </target> - + <!-- everything --> <target name="all" depends="bindist,srcdist"> </target> @@ -102,45 +70,21 @@ <!-- binary distribution --> <target name="bindist" depends="dist"> <tar destfile="jake2.tar.gz" compression="gzip"> - <tarfileset dir="${dist}" prefix="Jake2" mode="755"> - <include name="*.sh"/> - </tarfileset> - <tarfileset dir="${dist}" prefix="Jake2"> - <include name="**"/> - <exclude name="*.sh"/> + <tarfileset dir="."> + <include name="dist/**"/> </tarfileset> </tar> - <zip destfile="jake2.zip"> - <zipfileset dir="${dist}" prefix="Jake2"> - <include name="**"/> - </zipfileset> - </zip> </target> <!-- source distribution --> <target name="srcdist" > <tar destfile="jake2-src.tar.gz" compression="gzip"> - <tarfileset dir="." prefix="Jake2" mode="755"> - <include name="scripts/*.*"/> - <include name="build.sh"/> - </tarfileset> - <tarfileset dir="." prefix="Jake2"> - <include name="src/jake2/**"/> + <tarfileset dir="." prefix="jake2"> + <include name="src/**"/> <include name="lib/**"/> <include name="build.xml"/> - <include name="build.bat"/> </tarfileset> </tar> - <zip destfile="jake2-src.zip"> - <zipfileset dir="." prefix="Jake2"> - <include name="src/jake2/**"/> - <include name="scripts/*.*"/> - <include name="lib/**"/> - <include name="build.xml"/> - <include name="build.sh"/> - <include name="build.bat"/> - </zipfileset> - </zip> </target> <!-- clean --> @@ -152,11 +96,7 @@ <!-- distclean --> <target name="distclean" depends="clean"> <delete dir="${dist}"/> - <delete> - <fileset dir="."> - <include name="*.tar.gz"/> - <include name="*.zip"/> - </fileset> - </delete> + <delete file="jake2.tar.gz"/> + <delete file="jake2-src.tar.gz"/> </target> </project>
\ No newline at end of file |