1 | <?xml version="1.0"?> |
---|
2 | <project name="test" default="compile" basedir="."> |
---|
3 | |
---|
4 | <property name="src" value="src"/> |
---|
5 | <property name="bin" value="bin"/> |
---|
6 | <property name="lib" value="lib"/> |
---|
7 | <property name="dist" value="dist"/> |
---|
8 | <property name="antlib" value="antlib"/> |
---|
9 | <property name="nsis" value="nsis"/> |
---|
10 | <property name="cp" value="${lib}/com.yourkit.javaprofiler.controller_7.0.4.jar:${lib}/de.ugoe.cs.swe.trex.antlr_2.7.6.jar:${lib}/org.eclipse.core.resources_3.4.0.v20080604-1400.jar:${lib}/org.eclipse.core.runtime_3.4.0.v20080512.jar:${lib}/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar:${lib}/org.eclipse.osgi_3.4.0.v20080605-1900.jar:${lib}/stringtemplate.jar:${lib}/xstream-1.3.1.jar:${lib}/xpp3_min-1.1.4c.jar:${lib}/commons-cli-1.2.jar:${lib}/org.etsi.common.jar:${lib}/de.ugoe.cs.swe.trex.core_0.6.0.201003090301.jar"/> |
---|
11 | |
---|
12 | <taskdef name="nsis" classname="net.sf.nsisant.Task"> |
---|
13 | <classpath location="${antlib}/nsisant-1.2.jar"/> |
---|
14 | </taskdef> |
---|
15 | |
---|
16 | <target name="init"> |
---|
17 | <mkdir dir="${bin}"/> |
---|
18 | </target> |
---|
19 | |
---|
20 | <target name="compile" depends="init"> |
---|
21 | <javac srcdir="${src}" destdir="${bin}" classpath="${cp}"/> |
---|
22 | </target> |
---|
23 | |
---|
24 | <target name="clean" description="Removes previous build"> |
---|
25 | <delete includeEmptyDirs="true"> |
---|
26 | <fileset dir="${bin}"/> |
---|
27 | </delete> |
---|
28 | </target> |
---|
29 | |
---|
30 | <target name="make-dist" depends="compile" description="Creates an T3Q distribution directory"> |
---|
31 | <echo>Building T3Q Distribution in ${dist}...</echo> |
---|
32 | <delete includeEmptyDirs="true"> |
---|
33 | <fileset dir="${dist}"/> |
---|
34 | </delete> |
---|
35 | <jar destfile="${lib}/t3q.jar" basedir="${bin}/"/> |
---|
36 | <mkdir dir="${dist}"/> |
---|
37 | <mkdir dir="${dist}/lib"/> |
---|
38 | <copy file="t3q" tofile="${dist}/t3q"/> |
---|
39 | <copy file="t3q.bat" tofile="${dist}/t3q.bat"/> |
---|
40 | <copy todir="${dist}/lib"> |
---|
41 | <fileset dir="${lib}"/> |
---|
42 | </copy> |
---|
43 | </target> |
---|
44 | |
---|
45 | <target name="nsis" depends="make-dist" description="Creates an NSIS Installer from the dist directory"> |
---|
46 | <nsis script="${nsis}/t3q.nsi" verbosity="4" out="${nsis}/build.log" noconfig="yes"> |
---|
47 | <define name="VERSION" value="2.1"/> |
---|
48 | <scriptcmd cmd="AutoCloseWindow true"/> |
---|
49 | </nsis> |
---|
50 | </target> |
---|
51 | |
---|
52 | </project> |
---|