Commit 343cfb8d authored by Florian Fittkau's avatar Florian Fittkau

ant test job

parent b4fa8df5
/bin
/build
/dist
/reports
/xtend-gen
Thumbs.db
\ No newline at end of file
......@@ -5,84 +5,107 @@
<property name="src-common.dir" value="../common-monitoring/src"/>
<property name="build.dir" value="build"/>
<property name="jar.dir" value="dist"/>
<property name="lib.dir" value="lib"/>
<property name="classes.java" value="classes/java"/>
<property name="reports.dir" value="reports"/>
<path id="classpath">
<fileset dir=".">
<include name="${lib.dir}/*.jar"/>
</fileset>
</path>
<path id="classpath-test">
<pathelement location="${build.dir}/${classes.java}" />
<fileset dir=".">
<include name="${lib.dir}/*.jar"/>
</fileset>
</path>
<property name="test.reports" value="reports"/>
<property name="test.src" value="test"/>
<target name="build-all-system-monitoring" depends="clean,compile,system-monitoring-jar" description="Compiles and packages the Jar">
</target>
<!-- MAIN JOBS -->
<target name="build-all-monitoring" depends="clean,compile,monitoring-jar" description="Compiles and packages the Jar">
</target>
<target name="clean" description="Removes artifacts from previous builds">
<delete dir="${build.dir}" includeemptydirs="true" />
<delete dir="${jar.dir}" includeemptydirs="true" />
<delete dir="${reports.dir}" includeemptydirs="true" />
</target>
<target name="compile">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.dir}/${classes.java}"/>
<javac srcdir="${src-common.dir}" destdir="${build.dir}/${classes.java}" classpathref="classpath" debug="true"/>
<javac srcdir="${src.dir}" destdir="${build.dir}/${classes.java}" classpathref="classpath" debug="true"/>
<javac srcdir="${src-common.dir}" destdir="${build.dir}" classpathref="classpath" debug="true"/>
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" debug="true"/>
</target>
<target name="system-monitoring-jar" depends="compile">
<path id="classpath">
<fileset dir=".">
<include name="lib/*.jar"/>
</fileset>
</path>
<target name="monitoring-jar">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/explorviz-system-monitoring.jar">
<jar destfile="${jar.dir}/explorviz-monitoring.jar">
<manifest>
<attribute name="Main-Class" value="explorviz.live_trace_processing.system_mon.SystemMonitor"/>
<attribute name="Class-Path" value="."/>
<attribute name="Premain-Class" value="org.aspectj.weaver.loadtime.Agent"/>
<attribute name="Can-Redefine-Classes" value="true"/>
</manifest>
<fileset dir="${build.dir}/${classes.java}" />
<fileset dir="${lib.dir}">
<fileset dir="${build.dir}/${classes.java}"/>
<fileset dir="lib">
<include name="*.LICENSE"/>
</fileset>
<zipfileset excludes="META-INF/*.SF" src="${lib.dir}/disruptor-3.2.0.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/disruptor-3.2.0.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/aspectjweaver-1.7.4.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/knowledge-api-5.2.0.M2.jar"/>
</jar>
<mkdir dir="${jar.dir}/META-INF"/>
<copy tofile="${jar.dir}/META-INF/explorviz.live_trace_processing.properties">
<file name="src/META-INF/system-monitoring.properties"/>
<copy todir="${jar.dir}/META-INF">
<fileset dir="src/META-INF" includes="**"/>
</copy>
</target>
<target name="monitoring-jar" depends="compile">
<target name="build-all-system-monitoring" depends="clean,compile,system-monitoring-jar" description="Compiles and packages the System Monitoring Jar">
</target>
<target name="system-monitoring-jar" depends="compile">
<mkdir dir="${jar.dir}"/>
<jar destfile="${jar.dir}/explorviz-monitoring.jar">
<jar destfile="${jar.dir}/explorviz-system-monitoring.jar">
<manifest>
<attribute name="Main-Class" value="explorviz.live_trace_processing.system_mon.SystemMonitor"/>
<attribute name="Class-Path" value="."/>
<attribute name="Premain-Class" value="org.aspectj.weaver.loadtime.Agent"/>
<attribute name="Can-Redefine-Classes" value="true"/>
</manifest>
<fileset dir="${build.dir}/${classes.java}"/>
<fileset dir="${lib.dir}">
<fileset dir="${build.dir}/${classes.java}" />
<fileset dir="lib">
<include name="*.LICENSE"/>
</fileset>
<zipfileset excludes="META-INF/*.SF" src="${lib.dir}/disruptor-3.2.0.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${lib.dir}/aspectjweaver-1.7.4.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${lib.dir}/knowledge-api-5.2.0.M2.jar"/>
<zipfileset excludes="META-INF/*.SF" src="lib/disruptor-3.2.0.jar"/>
</jar>
<mkdir dir="${jar.dir}/META-INF"/>
<copy todir="${jar.dir}/META-INF">
<fileset dir="src/META-INF" includes="**"/>
<copy tofile="${jar.dir}/META-INF/explorviz.live_trace_processing.properties">
<file name="src/META-INF/system-monitoring.properties"/>
</copy>
</target>
<!-- TEST JOBS -->
<target name="test" depends="clean,compile-tests" description="JUnit-Tests">
<mkdir dir="${test.reports}" />
<junit printsummary="yes" fork="yes" haltonfailure="no">
<classpath>
<path refid="testclasspath"/>
</classpath>
<formatter type="xml" />
<batchtest todir="${test.reports}">
<fileset dir="${test.src}">
<include name="**/*Test.java" />
</fileset>
</batchtest>
</junit>
</target>
<target name="compile-tests" depends="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="${test.src}" destdir="${build.dir}" includeantruntime="false">
<classpath>
<path refid="testclasspath"/>
</classpath>
</javac>
</target>
<path id="testclasspath">
<pathelement path="${build.dir}" />
<fileset dir="lib" includes="*.jar" />
</path>
</project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment