Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 67 lines (53 sloc) 2.075 kb
0203c34 psykasso Ant Build file addition. Removed not needed files. UI changes.
authored
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <project name="EvolTrio" default="run" basedir=".">
3 <description>Musing Generation using Evolutionary Algorithms</description>
4
5 <property file="build.properties" />
6 <path id="classpath">
7 <fileset dir="${lib.dir}" includes="*.jar" />
8 </path>
9
10 <!-- Initialization -->
11 <target name="init" description="Prepare needed directories.">
12 <mkdir dir="${build.dir}" />
13 <mkdir dir="${dist.dir}" />
14 </target>
15
16 <!-- Cleanup -->
17 <target name="clean" description="Remove all files created by the build/test process.">
18 <delete dir="${build.dir}" />
19 <delete dir="${dist.dir}" />
20 </target>
21
22 <!-- Compile application -->
23 <target name="compile">
24
25 <copy todir="./${build.dir}/gr/evoltrio/ui/icons">
26 <fileset dir="./icons" />
27 </copy>
28
29 <copy file="./${src.dir}/gr/evoltrio/ui/EvolTrioUI.bxml" tofile="./${build.dir}/gr/evoltrio/ui/EvolTrioUI.bxml" />
30
31 <copy todir="./${dist.dir}/lib">
32 <fileset dir="./lib" />
33 </copy>
34
35 <mkdir dir="${build.dir}" />
36 <javac srcdir="${src.dir}" destdir="${build.dir}" debug="yes" includeantruntime="false">
37 <classpath refid="classpath" />
38 </javac>
39 </target>
40
41 <!-- Java Archive -->
42 <target name="jar" depends="compile">
43 <delete dir="${dist.dir}" />
44 <mkdir dir="${dist.dir}" />
45 <mkdir dir="${dist.dir}/lib" />
46
47 <copy todir="./${dist.dir}/lib">
48 <fileset dir="./lib" />
49 </copy>
50
51 <jar destfile="${dist.dir}/${app.name}-${app.version}.jar" basedir="${build.dir}">
52 <manifest>
53 <attribute name="Class-Path" value="lib/jgap.jar lib/jfugue-4.0.3.jar lib/commons-cli-1.2.jar lib/jcommon-1.0.16.jar lib/jfreechart-1.0.13.jar lib/pivot-charts-2.0.jar lib/pivot-core-2.0.jar lib/pivot-jfree-2.0.jar lib/pivot-wtk-2.0.jar lib/pivot-wtk-terra-2.0.jar lib/svgSalamander-tiny.jar" />
54 <attribute name="Main-Class" value="${main.class}" />
55 </manifest>
56 </jar>
57 </target>
58
59 <!-- Run application -->
60 <target name="run" depends="jar">
61
62 <java jar="${dist.dir}/${app.name}-${app.version}.jar" fork="true">
63 <classpath refid="classpath" />
64 </java>
65
66 </target>
67 </project>
Something went wrong with that request. Please try again.