Skip to content
This repository
Newer
Older
100644 78 lines (69 sloc) 2.665 kb
8d4e6800 » michael.ogawa
2008-06-24 Java-ized src + ant build file
1 <?xml version="1.0"?>
2
3 <project name="code_swarm" default="all" basedir=".">
4
5 <target name="init" description="Sets build properties">
6 <echo>Running INIT</echo>
7 <property name="src" value="${basedir}/src" />
8 <property name="build" value="${basedir}/build" />
9 <property name="doc" value="${basedir}/doc" />
10 <property name="lib" value="${basedir}/lib" />
11 <property name="dist" value="${basedir}/dist" />
12 <property name="data" value="${basedir}/data" />
13 <tstamp/>
14 </target>
15
16 <target name="all" depends="jar" description="Builds JAR and Javadoc">
17 <echo>Building ALL</echo>
18 </target>
19
20 <target name="build" depends="init" description="Compiles">
21 <echo>Running BUILD</echo>
22 <mkdir dir="${build}" />
5d0452a4 » kraeusen
2008-08-07 Added the ability to fetch repository-logs at runtime.
23 <path id="library.classpath">
24 <pathelement path="lib/" />
25 <pathelement location="lib/core.jar" />
26 <pathelement location="lib/xml.jar" />
27 <pathelement location="lib/jogl.jar" />
28 <pathelement location="lib/opengl.jar" />
29 <pathelement location="lib/vecmath.jar" />
30 <pathelement location="lib/svnkit.jar" />
31 <pathelement location="lib/swing-layout-1.0.3.jar" />
32 </path>
6951bd6e » cburroughs
2008-09-27 show compiler warnings.
33 <javac destdir="${build}" srcdir="${src}" classpathref="library.classpath"
34 debug="true" deprecation="false">
de98a762 » mdippery
2008-10-08 Changed compiler arg from "-Xlint" to "-Xlint:unchecked".
35 <compilerarg value="-Xlint:unchecked"/>
6951bd6e » cburroughs
2008-09-27 show compiler warnings.
36 </javac>
8d4e6800 » michael.ogawa
2008-06-24 Java-ized src + ant build file
37 <copy file="${src}/particle.png" todir="${build}" />
38 </target>
39
40 <target name="doc" depends="init" description="Generates Javadoc documentation">
881c2980 » sebastien.rombauts
2008-07-06 Add documentation for "private" access members
41 <javadoc destdir="${doc}" access="private">
388d208d » sebastien.rombauts
2008-07-06 Correction for issue 22: "Javadoc not generated"
42 <fileset dir="${src}" includes="*.java"/>
43 </javadoc>
8d4e6800 » michael.ogawa
2008-06-24 Java-ized src + ant build file
44 </target>
45
46 <target name="jar" depends="build" description="Packs application into a JAR">
47 <echo>Running JAR</echo>
48 <mkdir dir="${dist}" />
49 <jar basedir="${build}" jarfile="${dist}/${ant.project.name}.jar">
50 <manifest>
51 <attribute name="Main-Class" value="code_swarm" />
52 </manifest>
53 </jar>
54 </target>
55
56 <target name="run" depends="jar" description="Runs the program">
57 <echo>Running code_swarm</echo>
5d0452a4 » kraeusen
2008-08-07 Added the ability to fetch repository-logs at runtime.
58 <java classname="MainView" fork="true">
ca129709 » sebastien.rombauts
2008-07-11 Java "OutOfMemory" Error with "ant run" - need to specify bigger heap…
59 <jvmarg value="-Xmx1000m" />
d0000fbd » arjenw
2008-06-28 Aparently processing already had OpenGL support, found that out while…
60 <arg value="data/sample.config"/>
8d4e6800 » michael.ogawa
2008-06-24 Java-ized src + ant build file
61 <classpath>
62 <fileset dir="${dist}">
63 <include name="${ant.project.name}.jar"/>
64 </fileset>
65 <fileset dir="${lib}">
66 <include name="**/*.jar"/>
67 </fileset>
68 </classpath>
69 </java>
70 </target>
71
72 <target name="clean" depends="init" description="Removed compiled files">
73 <echo>Running CLEAN</echo>
74 <delete dir="${build}" verbose="true"/>
f0701e05 » sebastien.rombauts
2008-07-05 correct clean command to delete the dist directory
75 <delete dir="${dist}" verbose="true"/>
8d4e6800 » michael.ogawa
2008-06-24 Java-ized src + ant build file
76 </target>
77
78 </project>
79
Something went wrong with that request. Please try again.