aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorEduardo Pedroni <e.pedroni91@gmail.com>2015-06-05 22:44:03 +0200
committerEduardo Pedroni <e.pedroni91@gmail.com>2015-06-05 22:44:03 +0200
commit5b3dc9b92cac06a635c26955dd3ec3c85666686b (patch)
tree14811b42893b2cdacfe86885075c891122e1a5f8 /build.xml
parent35cf143b2c691d63cf70da9a5ad3663f5a573aa3 (diff)
Organised project folder, tidied up build script and added automatic linux executable build
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml56
1 files changed, 0 insertions, 56 deletions
diff --git a/build.xml b/build.xml
deleted file mode 100644
index 9d581a4..0000000
--- a/build.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0"?>
-<project name="Cardbase" default="main" basedir=".">
-
- <property name="jar.name" value="cardbase" />
- <property name="src.dir" location="src" />
- <property name="build.dir" location="bin" />
- <property name="dist.dir" location="dist" />
- <property name="lib.dir" value="lib" />
- <property name="res.dir" value="res" />
- <property name="main-class" value="eu.equalparts.cardbase.standalone.CardbaseCLI" />
-
- <target name="init">
- <mkdir dir="${build.dir}" />
- </target>
-
- <!-- external libraries classpath, we don't need sources and javadoc -->
- <path id="classpath">
- <fileset dir="${basedir}/">
- <include name="${lib.dir}/*.jar" />
- <exclude name="${lib.dir}/*sources.jar"/>
- <exclude name="${lib.dir}/*javadoc.jar"/>
- </fileset>
- </path>
-
- <!-- To work with external libraries, need classpath to compile -->
- <target name="compile" depends="init" description="compile the source">
- <javac includeantruntime="false" srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" />
- </target>
-
- <!-- jar it, and declares the ext libraries in manifest.mf file -->
- <target name="jar" depends="compile" description="package, output to JAR">
-
- <mkdir dir="${dist.dir}" />
-
- <jar jarfile="${dist.dir}/${jar.name}.jar" basedir="${build.dir}">
-
- <zipgroupfileset dir="${lib.dir}" includes="*.jar" excludes="*sources.jar, *javadoc.jar" />
- <fileset dir="${res.dir}" includes="**" excludes="" />
-
- <manifest>
- <attribute name="Main-Class" value="${main-class}" />
- <attribute name="Class-Path" value="${classpath.name}" />
- </manifest>
- </jar>
- </target>
-
- <!-- Clean up temporary directories -->
- <target name="clean" description="clean up">
- <delete dir="${build.dir}" />
- <delete dir="${dist.dir}" />
- </target>
-
- <!-- Default, run this -->
- <target name="main" depends="clean, compile, jar" />
-
-</project> \ No newline at end of file