Newer
Older
<project name="MooBench" default="build-all" basedir=".">
<target name="build-all" depends="clean,init,compile,jar" />
<target name="build-kieker" depends="clean,init,compile-kieker,jar" />
<target name="build-inspectit" depends="clean,init,compile-inspectit,jar" />
<target name="build-spassmeter" depends="clean,init,compile-spassmeter,jar" />
<target name="build-kieker-ci" depends="clean,init,compile-kieker,jar,jar-kieker-ci" />
<target name="init" depends="">
<mkdir dir="build" />
<mkdir dir="dist" />
</target>
<target name="compile" depends="init">
<path id="compile-classpath">
<fileset dir="lib/">
<include name="commons-cli-*.jar" />
<javac source="1.6" target="1.6" destDir="build" debug="true" classpathref="compile-classpath" includeAntRuntime="false">
<src path="src" />
</javac>
<copy todir="build/META-INF">
<fileset dir="src/META-INF" />
</copy>
</target>
<target name="compile-kieker" depends="compile">
<path id="compile-classpath">
<fileset dir="frameworks/Kieker/lib/">
<javac source="1.6" target="1.6" destDir="build" debug="true" classpathref="compile-classpath" includeAntRuntime="false">
<src path="frameworks/Kieker/src" />
</javac>
<fileset dir="frameworks/Kieker/src/META-INF" />
<path>
<path refid="compile-classpath"/>
</path>
<copy file="frameworks/Kieker/bin/benchmark.sh" todir="dist" />
<target name="compile-inspectit" depends="compile">
<copy todir="dist">
<exclude name="**/*.launch"/>
</fileset>
</copy>
</target>
<target name="compile-spassmeter" depends="compile">
<copy todir="dist">
<fileset dir="frameworks/SPASSmeter/">
<exclude name="**/*.launch"/>
<manifestclasspath property="jar.classpath" jarfile="dist/MooBench.jar">
</fileset>
</classpath>
</manifestclasspath>
<fileset dir="build" />
<fileset dir="." includes="LICENSE README" />
<manifest>
<attribute name="Main-Class" value="mooBench.benchmark.Benchmark" />
<attribute name="Class-Path" value="${jar.classpath}" />
</manifest>
<zipfileset src="lib/commons-cli-1.2.jar" />
<copy todir="dist/r">
<fileset dir="bin/r" />
</copy>
<target name="jar-kieker-ci" depends="jar">
<copy file="frameworks/Kieker/bin/benchmark-ci.sh" todir="dist" />
<mkdir dir="dist/MooBench" />
<move todir="dist/MooBench">
<fileset dir="dist">
<exclude name="MooBench"/>
</fileset>
</move>
<delete file="dist/MooBench/lib/kieker-1.11-SNAPSHOT_aspectj.jar" />
<copy file="continuous-integration/executeRemoteMicroBenchmark.sh" todir="dist" />
</target>
<target name="clean">
<delete dir="build" />
<delete dir="dist" />
</target>
</project>