Skip to content
Snippets Groups Projects
build.xml 1.44 KiB
Newer Older
Jan Waller's avatar
Jan Waller committed
<?xml version="1.0" encoding="UTF-8"?>
<project name="KiekerOverheadEvaluation" default="build-all" basedir=".">
	<property file="build.properties" />

	<target name="build-all" depends="clean,init,compile,jar" />

	<target name="init" depends="">
		<mkdir dir="build" />
		<mkdir dir="dist" />
		<mkdir dir="tmp" />
	</target>

	<target name="compile" depends="init">
		<path id="compile-classpath">
			<fileset dir="lib/">
				<include name="commons-cli-*.jar" />
				<include name="kieker-*.jar" />
			</fileset>
		</path>
		<javac source="1.5" target="1.5" destDir="build" debug="true" classpathref="compile-classpath" srcdir="src" includeAntRuntime="false" />
		<copy todir="build/META-INF">
			<fileset dir="src/META-INF" />
		</copy>
	</target>

	<target name="jar" depends="compile">
		<manifestclasspath property="jar.classpath" jarfile="dist/OverheadEvaluationMicrobenchmark.jar">
			<classpath>
				<fileset dir="lib/">
					<include name="**/*.jar" />
				</fileset>
			</classpath>
		</manifestclasspath>
		<jar destfile="dist/OverheadEvaluationMicrobenchmark.jar">
			<fileset dir="build" />
			<fileset dir="." includes="LICENSE README" />
			<manifest>
				<attribute name="Main-Class" value="kieker.evaluation.benchmark.Benchmark" />
				<attribute name="Class-Path" value="${jar.classpath}" />
			</manifest>
		</jar>
	</target>

	<target name="clean">
		<!--<delete dir="tmp"/>-->
		<delete dir="build" />
		<delete dir="dist" />
	</target>

</project>