-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
39 lines (31 loc) · 1.31 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<project default="jars" basedir=".">
<presetdef name="javac">
<javac includeantruntime="false" />
</presetdef>
<property environment="env"/>
<fail unless="env.APAMA_LIBRARY_VERSION" message="Please run the bin/apama_env script before attempting to build this sample."/>
<property name="apama-home-jar-dir" location="${env.APAMA_HOME}/lib"/>
<property name="output-dir" location="${user.dir}"/>
<mkdir dir="${output-dir}"/>
<!-- Compile target compiles all java files in the current directory -->
<!-- with the classpath set to the jar files in the apama-src obj location -->
<target name="compile">
<javac srcdir="." destdir="${output-dir}" debug="true" classpath="${apama-home-jar-dir}/ap-correlator-extension-api.jar">
<classpath>
<fileset dir="." includes="*.java">
</fileset>
</classpath>
</javac>
</target>
<!-- Make the jar for the complex plugin sample -->
<target name="complexjar" depends="compile">
<jar jarfile="${output-dir}/complex_plugin.jar">
<zipfileset dir="${output-dir}" includes="ComplexPlugin.xml" fullpath="META-INF/jmon-jar.xml"/>
<fileset dir="${output-dir}" includes="Complex*.class"/>
</jar>
</target>
<!-- Meta (and default) target for all jars -->
<target name="jars" depends="complexjar">
</target>
</project>