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

minor build file additions

parent 3b2726c0
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project name="Worker" default="build-all" basedir="."> <project name="Worker" default="build-all" basedir=".">
<property name="src.dir" value="src"/>
<property name="common-monitoring.dir" value="../common-monitoring"/> <property name="common-monitoring.dir" value="../common-monitoring"/>
<property name="src.dir" value="src"/>
<property name="build.dir" value="build"/> <property name="build.dir" value="build"/>
<property name="jar.dir" value="dist"/> <property name="jar.dir" value="dist"/>
...@@ -38,16 +39,17 @@ ...@@ -38,16 +39,17 @@
</jar> </jar>
</target> </target>
<target name="compile"> <target name="compile" depends="copy-from-common">
<mkdir dir="${build.dir}"/> <javac srcdir="${src.dir}" destdir="${build.dir}" classpathref="classpath" includeantruntime="false" />
</target>
<target name="copy-from-common">
<ant antfile="${common-monitoring.dir}/build.xml" dir="${common-monitoring.dir}" /> <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" debug="true"/>
</target> </target>
<path id="classpath"> <path id="classpath">
...@@ -85,6 +87,9 @@ ...@@ -85,6 +87,9 @@
<path id="testclasspath"> <path id="testclasspath">
<pathelement path="${build.dir}" /> <pathelement path="${build.dir}" />
<fileset dir="lib" includes="*.jar" /> <fileset dir=".">
<include name="build/*.jar"/>
<include name="lib/*.jar"/>
</fileset>
</path> </path>
</project> </project>
\ No newline at end of file
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