From: Brett L. <wak...@us...> - 2009-11-08 01:37:55
|
Update of /cvsroot/rails/18xx In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv29536 Added Files: build.xml Log Message: Add build.xml. Bump version to 1.0.7-rc1 --- NEW FILE: build.xml --- <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- WARNING: Eclipse auto-generated file. Any modifications will be overwritten. To include a user specific buildfile here, simply create one in the same directory with the processing instruction <?eclipse.ant.import?> as the first entry and export the buildfile again. --> <project basedir="." default="build" name="18xx"> <property environment="env"/> <property name="debuglevel" value="source,lines,vars"/> <property name="target" value="1.6"/> <property name="source" value="1.6"/> <path id="18xx.classpath"> <pathelement location="classes"/> <pathelement location="lib/log4j-1.2/log4j-1.2.14.jar"/> <pathelement location="lib/batik-1.6/batik-rasterizer.jar"/> <pathelement location="lib/batik-1.6/batik.jar"/> </path> <target depends="clean" name="init"> <mkdir dir="classes"/> <copy includeemptydirs="false" todir="classes"> <fileset dir="."> <exclude name="**/*.launch"/> <exclude name="**/*.java"/> </fileset> </copy> </target> <target name="clean"> <delete dir="classes"/> </target> <target depends="clean" name="cleanall"/> <target depends="build-subprojects,build-project,build-jar" name="build"/> <target name="build-subprojects"/> <target depends="init" name="build-project"> <echo message="${ant.project.name}: ${ant.file}"/> <javac debug="true" debuglevel="${debuglevel}" destdir="classes" source="${source}" target="${target}"> <src path="."/> <classpath refid="18xx.classpath"/> </javac> </target> <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> <copy todir="${ant.library.dir}"> <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> </copy> <unzip dest="${ant.library.dir}"> <patternset includes="jdtCompilerAdapter.jar"/> <fileset dir="${ECLIPSE_HOME}/plugins" includes="org.eclipse.jdt.core_*.jar"/> </unzip> </target> <target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> <antcall target="build"/> </target> <target name="build-jar"> <jar destfile="rails-1.0.7-rc1.jar" basedir="classes" duplicate="preserve"> <manifest> <attribute name="Main-Class" value="rails.util.RunGame" /> <attribute name="Class-Path" value="./my.properties ./LocalisedText.properties ./lib/log4j-1.2/log4j-1.2.14.jar ./lib/batik-1.6/lib/batik-transcoder.jar ./lib/batik-1.6/batik.jar ./lib/batik-1.6/lib/batik-util.jar ./lib/batik-1.6/lib/batik-script.jar ./lib/batik-1.6/lib/batik-bridge.jar ./lib/batik-1.6/lib/batik-ext.jar ./lib/batik-1.6/lib/batik-awt-util.jar ./lib/batik-1.6/lib/batik-dom.jar ./lib/batik-1.6/lib/batik-gvt.jar" /> </manifest> </jar> </target> <target name="RunGame"> <java classname="rails.util.RunGame" failonerror="true" fork="yes"> <classpath refid="18xx.classpath"/> </java> </target> </project> |