magarena/build.xml

65 lines
2.1 KiB
XML
Raw Normal View History

2011-05-21 00:30:57 -07:00
<project name="Magarena" basedir="." default="jar">
<description>
ANT Build file for Magarena.
</description>
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
2013-01-05 22:13:41 -08:00
<property name="lib" value="release/lib" />
<path id="classpath">
<fileset dir="${lib}">
<include name="**/*.jar" />
</fileset>
</path>
<!-- deps - Download dependencies -->
<target name="deps" unless="skip.download">
<echo message="downloading groovy to ${lib}"/>
2013-03-11 23:29:41 -07:00
<get src="http://repo1.maven.org/maven2/org/codehaus/groovy/groovy-all/2.1.1/groovy-all-2.1.1.jar" dest="${lib}" skipexisting="true" />
2013-01-05 22:13:41 -08:00
</target>
2011-05-21 00:30:57 -07:00
<!-- init - Create temporary directory to build the program -->
<target name="init">
2013-01-05 22:13:41 -08:00
<mkdir dir="build"/>
<mkdir dir="${lib}"/>
2011-05-21 00:30:57 -07:00
</target>
<!-- clean - Remove temporary directory -->
<target name="clean">
<delete dir="build"/>
</target>
<!-- build - Compile sources and copy resources to build directory -->
2013-01-05 22:13:41 -08:00
<target depends="init,deps" name="build">
<javac includeantruntime="false" debug="true" debuglevel="${debuglevel}" destdir="build" source="${source}" target="${target}">
2011-06-18 20:03:18 -07:00
<src path="src"/>
<compilerarg value="-Xlint"/>
2013-01-05 22:13:41 -08:00
<classpath refid="classpath" />
2011-05-21 00:30:57 -07:00
</javac>
<copy includeemptydirs="false" todir="build">
<fileset dir="resources">
<exclude name="**/.svn"/>
</fileset>
</copy>
</target>
<!-- jar (default target) - Create .jar file -->
<target depends="build" name="jar">
<jar destfile="release/Magarena.jar" basedir="build" includes="**/*.*">
2011-05-21 00:30:57 -07:00
<manifest>
<attribute name="Main-Class" value="magic.MagicMain" />
<attribute name="SplashScreen-Image" value="magic/data/textures/logo.jpg" />
2013-03-12 05:31:34 -07:00
<attribute name="Class-Path" value="lib/groovy-all-2.1.1.jar" />
2011-05-21 00:30:57 -07:00
</manifest>
</jar>
</target>
<!-- javadoc - Generate Javadoc -->
<target name="javadoc">
<javadoc sourcepath="src" destdir="javadoc" />
</target>
</project>