Created
November 14, 2012 13:51
-
-
Save MitMaro/4072210 to your computer and use it in GitHub Desktop.
Ant Build File Tempate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<project name="Clue" default="main" basedir="."> | |
<property name="src.dir" location="src" /> | |
<property name="build.dir" location="build" /> | |
<property name="dist.jar" location="clue.jar" /> | |
<property name="libs.dir" location="jars" /> | |
<target name="clean"> | |
<delete dir="${build.dir}" /> | |
<delete dir="${dist.jar}" /> | |
</target> | |
<target name="makedir"> | |
<mkdir dir="${build.dir}" /> | |
</target> | |
<target name="compile" depends="clean, makedir"> | |
<javac | |
includeantruntime="false" | |
classpath=".:lib/google-gson-2.2.2/gson-2.2.2.jar" | |
srcdir="${src.dir}" | |
destdir="${build.dir}" | |
target="1.6" | |
debug="true" | |
/> | |
<copy todir="build/resources/"> | |
<fileset dir="resources/"/> | |
</copy> | |
</target> | |
<target name="jar" depends="compile"> | |
<jar destfile="${dist.jar}" basedir="${build.dir}"> | |
<manifest> | |
<attribute name="Main-Class" value="clue.Clue" /> | |
<attribute name="Class-Path" value="lib/google-gson-2.2.2/gson-2.2.2.jar" /> | |
</manifest> | |
</jar> | |
</target> | |
<target name="main" depends="compile, jar"> | |
<description>Main target</description> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment