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

fetching jar instead of own build from common-monitoring

parent 84d696e6
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<project name="Worker" default="build-all-worker" basedir=".">
<property name="src-common.dir" value="../common-monitoring/src"/>
<project name="Worker" default="build-all" basedir=".">
<property name="src.dir" value="src"/>
<property name="common-monitoring.dir" value="../common-monitoring"/>
<property name="build.dir" value="build"/>
<property name="jar.dir" value="dist"/>
......@@ -11,7 +10,7 @@
<!-- MAIN JOBS -->
<target name="build-all-worker" depends="clean,jar" description="Compiles and packages the Worker Jar">
<target name="build-all" depends="clean,jar" description="Compiles and packages the Worker Jar">
</target>
<target name="clean" description="Removes artifacts from previous builds">
......@@ -28,23 +27,32 @@
<attribute name="Class-Path" value="."/>
<attribute name="Can-Redefine-Classes" value="true"/>
</manifest>
<fileset dir="${build.dir}"/>
<fileset dir="${build.dir}">
<exclude name="*common*.jar"/>
</fileset>
<fileset dir="lib">
<include name="*.LICENSE"/>
<include name="*LICENSE*"/>
</fileset>
<zipfileset excludes="META-INF/*.SF" src="lib/disruptor-3.2.0.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${build.dir}/explorviz-common.jar"/>
</jar>
</target>
<target name="compile">
<mkdir dir="${build.dir}"/>
<javac srcdir="${src-common.dir}" destdir="${build.dir}" classpathref="classpath" debug="true"/>
<ant antfile="${common-monitoring.dir}/build.xml" dir="${common-monitoring.dir}" />
<copy todir="${build.dir}">
<fileset dir="${common-monitoring.dir}/dist"/>
</copy>
<javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" debug="true"/>
</target>
<path id="classpath">
<fileset dir=".">
<include name="build/*.jar"/>
<include name="lib/*.jar"/>
</fileset>
</path>
......
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