From: Holger Z. <hz...@us...> - 2004-10-19 09:04:25
|
Update of /cvsroot/jake2/jake2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv498 Added Files: Tag: jogl-11 build_patch.xml Log Message: build file for the patch --- NEW FILE: build_patch.xml --- <!-- Buildfile --> <project name="jake2-patch" default="usage" basedir="."> <taskdef name="proguard" classname="proguard.ant.ProGuardTask"> <classpath> <pathelement location="lib/proguard/proguard.jar"/> </classpath> </taskdef> <!-- properties --> <property name="version" value="cvs"/> <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/jogl.jar"/> <pathelement location="lib/joal/linux/joal.jar"/> <pathelement location="${dist}/lib/jake2.jar"/> </path> <!-- usage --> <target name="usage"> <echo message="command line arguments for build.sh or build.bat"/> <echo message=""/> <echo message="bindist build only binary distribution"/> <echo message="srcdist build only source distribution"/> <echo message="all build source and binary distribution"/> <echo message="clean delete classfiles keep jake2*.tar.gz and jake2*.zip"/> <echo message="distclean delete all generated files"/> <echo message="jar build only dist/lib/jake2.jar"/> <echo message=""/> </target> <!-- initialize directories --> <target name="init"> <mkdir dir="${build}"/> <mkdir dir="${dist}/lib"/> </target> <!-- compile --> <target name="compile" depends="init"> <javac destdir="${build}" optimize="on" debug="off" source="1.4"> <src path="${src}"/> <include name="jake2/render/JoglBase.java"/> <classpath refid="build.class.path"/> </javac> </target> <!-- jar --> <target name="jar" depends="compile,copyres"> <jar destfile="${dist}/lib/jake-patch.jar" basedir="${build}"> <include name="**"/> </jar> <proguard printseeds="on" printusage="off" outjar="${dist}/lib/jake2-patch.jar" defaultpackage="" overloadaggressively="off" applymapping="jake2.map"> <injar name="${dist}/lib/jake-patch.jar"/> <libraryjar name="lib/jogl/jogl.jar"/> <libraryjar name="lib/joal/linux/joal.jar"/> <libraryjar name="${java.home}/lib/rt.jar"/> </proguard> <delete file="${dist}/lib/jake-patch.jar"/> </target> <!-- webstart --> <target name="webstart" depends="jar"> <mkdir dir="webstart/lib"/> <copy todir="webstart/lib"> <fileset dir="${dist}/lib"> <include name="**/jake2-patch.jar"/> </fileset> </copy> <signjar keystore="${user.home}/bytonic" alias="hoz" storepass="${bytonic.pass}"> <fileset dir="webstart/lib"> <include name="**/jake2-patch.jar"/> </fileset> </signjar> </target> <!-- clean --> <target name="clean"> <delete dir="${build}"/> </target> <!-- distclean --> <target name="distclean" depends="clean"> <delete dir="${dist}"/> <delete dir="webstart/lib"/> <delete> <fileset dir="."> <include name="*.tar.gz"/> <include name="*.zip"/> </fileset> </delete> </target> </project> |