Commit f2057fb6 authored by Danilo Ansaloni's avatar Danilo Ansaloni
Browse files

Minor fixes to be able to call targets in this ant file from other ant files.

parent f4034d4a
......@@ -8,6 +8,10 @@
<pathelement location="${bin}" />
</path>
<path id="bootpath">
<pathelement location="${extendedthread.path}" />
</path>
<!-- it automatically compiles all other necessary stuff :) -->
<target name="compile-tlvinserter">
<mkdir dir="${bin}" />
......@@ -30,7 +34,7 @@
<mkdir dir="${bin}" />
<javac srcdir="${src.dynbypass}" destdir="${bin}" debug="true" includeAntRuntime="false">
<classpath refid="buildpath" />
<compilerarg value="-Xbootclasspath/p:${extendedthread.path}" />
<compilerarg value="-Xbootclasspath/p:${toString:bootpath}" />
</javac>
<delete file="${extendedthread.path}" />
</target>
......@@ -183,47 +187,4 @@
</jar>
</target>
<!-- *** example instrumentaion package *** -->
<target name="check-example-name-property">
<condition property="example.name.set">
<isset property="example.name"/>
</condition>
</target>
<target name="check-example-manifest-property">
<condition property="example.manifest.set">
<isset property="example.manifest"/>
</condition>
</target>
<target name="report-missing-property-example-name" depends="check-example-name-property" unless="example.name.set">
<fail message="Property example.name is not set. Set it using -Dexample.name=value" />
</target>
<target name="report-missing-property-example-version" depends="check-example-manifest-property" unless="example.manifest.set">
<property name="example.manifest" value="MANIFEST.MF"/>
</target>
<property name="example.path" value="ch/usi/dag/disl/example/${example.name}"/>
<target name="package-example" depends="report-missing-property-example-name,report-missing-property-example-version,compile-example,prepare-all" description="create instrumentation package for specified example">
<mkdir dir="${build}"/>
<jar jarfile="${build}/${instr.jar.name}"
basedir="${bin}"
includes="${example.path}/**"
excludes="${example.path}/TargetClass*.class"
manifest="${src.example}/${example.name}/src/${example.path}/${example.manifest}">
</jar>
</target>
<target name="compile-example" depends="compile-disl,compile-dislre-dispatch">
<javac srcdir="${src.dislre.server}" includes="ch/usi/dag/dislreserver/remoteanalysis/** ch/usi/dag/dislreserver/netreference/** ch/usi/dag/dislreserver/classid/**" destdir="bin" debug="true" includeAntRuntime="false">
<classpath refid="buildpath" />
</javac>
<javac srcdir="${src.example}/${example.name}/src" destdir="bin" debug="true" includeAntRuntime="false">
<classpath refid="buildpath" />
</javac>
</target>
</project>
Supports Markdown
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