Skip to content
Snippets Groups Projects
Commit 9725b549 authored by Florian Fittkau's avatar Florian Fittkau
Browse files

build

parent 6e511206
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<!-- MAIN JOBS --> <!-- MAIN JOBS -->
<target name="build-all" depends="clean,jar" description="Compiles and packages the Worker Jar"> <target name="build-all" depends="clean,jar,test" description="Compiles and packages the Worker Jar">
</target> </target>
<target name="clean" description="Removes artifacts from previous builds"> <target name="clean" description="Removes artifacts from previous builds">
...@@ -28,28 +28,25 @@ ...@@ -28,28 +28,25 @@
<attribute name="Class-Path" value="."/> <attribute name="Class-Path" value="."/>
<attribute name="Can-Redefine-Classes" value="true"/> <attribute name="Can-Redefine-Classes" value="true"/>
</manifest> </manifest>
<fileset dir="${build.dir}"> <fileset dir="${build.dir}" excludes="*common*.jar" />
<exclude name="*common*.jar"/> <fileset dir="lib" includes="*LICENSE*" />
</fileset>
<fileset dir="lib">
<include name="*LICENSE*"/>
</fileset>
<zipfileset excludes="META-INF/*.SF" src="lib/disruptor-3.2.0.jar"/> <zipfileset excludes="META-INF/*.SF" src="lib/disruptor-3.2.0.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${build.dir}/explorviz-common.jar"/> <zipfileset excludes="META-INF/*.SF" src="${build.dir}/explorviz-common.jar"/>
</jar> </jar>
</target> </target>
<target name="compile" depends="copy-from-common"> <target name="compile" depends="build-all-common">
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" includeantruntime="false" /> <mkdir dir="${build.dir}" />
</target>
<target name="copy-from-common">
<ant antfile="${common-monitoring.dir}/build.xml" dir="${common-monitoring.dir}" />
<mkdir dir="${build.dir}"/>
<copy todir="${build.dir}"> <copy todir="${build.dir}">
<fileset dir="${common-monitoring.dir}/dist"/> <fileset dir="${common-monitoring.dir}/dist"/>
</copy> </copy>
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" includeantruntime="false" />
</target>
<target name="build-all-common" unless="isJenkins">
<ant antfile="${common-monitoring.dir}/build.xml" dir="${common-monitoring.dir}" />
</target> </target>
<path id="classpath"> <path id="classpath">
...@@ -61,7 +58,7 @@ ...@@ -61,7 +58,7 @@
<!-- TEST JOBS --> <!-- TEST JOBS -->
<target name="test" depends="clean,compile-tests" description="JUnit-Tests"> <target name="test" depends="compile-tests" description="JUnit-Tests">
<mkdir dir="${test.reports}" /> <mkdir dir="${test.reports}" />
<junit printsummary="yes" fork="yes" haltonfailure="no"> <junit printsummary="yes" fork="yes" haltonfailure="no">
<classpath> <classpath>
...@@ -77,12 +74,7 @@ ...@@ -77,12 +74,7 @@
</target> </target>
<target name="compile-tests" depends="compile"> <target name="compile-tests" depends="compile">
<mkdir dir="${build.dir}"/> <javac srcdir="${test.src}" destdir="${build.dir}" classpathref="testclasspath" includeantruntime="false" />
<javac srcdir="${test.src}" destdir="${build.dir}" includeantruntime="false">
<classpath>
<path refid="testclasspath"/>
</classpath>
</javac>
</target> </target>
<path id="testclasspath"> <path id="testclasspath">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment