summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-05-15 23:08:33 +0000
committerPaul Buetow <paul@buetow.org>2008-05-15 23:08:33 +0000
commitd4c1ddcc90c1e2e8660598fc36b3772d2bff6816 (patch)
tree28a0afc255e42f92adbca0d102e785301bc43a58 /build.xml
parent61599471a5978c1521b9c89c044ac2ce9a88c398 (diff)
1 Moved the stuff to trunk!
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml52
1 files changed, 52 insertions, 0 deletions
diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..a15226d
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,52 @@
+<project name="Verteilte Systeme" default="dist" basedir=".">
+ <description>This is the distributed systems simulation/learning environment!</description>
+
+ <!-- set global properties for this build -->
+ <property name="sources" location="sources" />
+ <property name="dist" location="dist" />
+ <property name="classes" location="classes" />
+ <!-- <property name="contrib" location="contrib" /> -->
+
+ <target name="init">
+ <tstamp />
+ <mkdir dir="${classes}" />
+ </target>
+
+ <target name="compile" depends="init" description="compile the source" >
+ <javac srcdir="${sources}" destdir="${classes}">
+ <compilerarg value="-Xlint:deprecation" />
+ </javac>
+ </target>
+
+ <target name="dist" depends="compile" description="generate the distribution" >
+ <delete file="MANIFEST.MF" />
+
+ <manifest file="MANIFEST.MF">
+ <attribute name="Built-By" value="Paul C. Buetow" />
+ <attribute name="Main-Class" value="simulator/VSMain" />
+ </manifest>
+
+ <mkdir dir="${dist}/lib" />
+ <jar jarfile="${dist}/lib/VS-Sim-${DSTAMP}.jar" basedir="${classes}" manifest="MANIFEST.MF" />
+ <copy file="${dist}/lib/VS-Sim-${DSTAMP}.jar" tofile="${dist}/lib/VS-Sim-Latest.jar" />
+ </target>
+
+ <target name="clean" description="clean up" >
+ <!-- Delete the ${classes} and ${dist} directory trees -->
+ <delete dir="${classes}" />
+ <delete dir="${dist}" />
+ <delete file="MANIFEST.MF" />
+ </target>
+
+ <target name="rundist" depends="dist">
+ <java jar="${dist}/lib/VS-Sim-Latest.jar" fork="true" />
+ </target>
+
+ <target name="run" depends="compile">
+ <java dir="${classes}" classname="simulator.VSMain" fork="true" />
+ </target>
+
+ <target name="testdist" depends="dist,rundist" />
+
+ <target name="test" depends="compile,run" />
+</project>