-
Notifications
You must be signed in to change notification settings - Fork 43
/
common-build.xml
76 lines (64 loc) · 2.94 KB
/
common-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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<project name="streamsx.topology.common"
xmlns:if="ant:if"
xmlns:unless="ant:unless">
<description>
Common definitions for streamsx.topology
</description>
<dirname property="streamsx.topology" file="${ant.file.streamsx.topology.common}"/>
<property environment="env"/>
<fail unless="env.STREAMS_INSTALL" message="STREAMS_INSTALL not set."/>
<property name="streams.install" value="${env.STREAMS_INSTALL}"/>
<property name="tk.name" value="com.ibm.streamsx.topology"/>
<property name="tk" location="${streamsx.topology}/${tk.name}"/>
<property name="tk.opt" location="${tk}/opt"/>
<property name="tk.lib" location="${tk}/lib"/>
<property name="tk.doc" location="${tk}/doc"/>
<!-- derive property streamsx.topology.version from info.xml of the toolkit -->
<xmlproperty file="${tk}/info.xml" prefix="tkinfo" keepRoot="no"/>
<script language="javascript">
a = project.getProperty('tkinfo.identity.version').split('.')
project.setProperty('streamsx.topology.version', a[0] + '.' + a[1]);
</script>
<!-- Default to the junit in $HOME/.ant/lib -->
<!-- Can be overridden with the -Djunit.jar=some_path when building -->
<fileset id="junit.path" dir="${user.home}/.ant/lib" includes="junit-*.jar" erroronmissingdir="no"/>
<pathconvert property="junit.jar" refid="junit.path"/>
<property name="ant.build.javac.source" value="8"/>
<property name="ant.build.javac.target" value="8"/>
<property name="topology.test.root" location="${streamsx.topology}/test"/>
<property name="topology.test.python" value="python3"/>
<exec unless:blank="${topology.test.python}" executable="${topology.test.python}-config"
outputproperty="topology.test.python.prefix">
<arg value="--prefix"/>
</exec>
<!-- Use the full class path as scalac doesn't seem to always pick
up jars though the manifest, even if -usemanifestcp is set -->
<path id="streams.classpath">
<pathelement location="${streams.install}/lib/com.ibm.streams.operator.samples.jar" />
<pathelement location="${streams.install}/lib/com.ibm.streams.operator.jar" />
<pathelement location="${streams.install}/ext/lib/JSON4J.jar" />
</path>
<path id="httpclient.classpath">
<fileset dir="${tk.opt}/client/httpcomponents-client-4.5.13/lib">
<include name="*.jar" />
</fileset>
</path>
<path id="gson.classpath">
<pathelement location="${tk.opt}/gson-2.3.1/gson-2.3.1.jar" />
</path>
<path id="jaxb.classpath">
<fileset dir="${tk.opt}/jaxb">
<include name="*.jar"/>
</fileset>
</path>
<path id="compress.classpath">
<pathelement location="${tk.opt}/client/apache-commons/commons-compress-1.19.jar"/>
</path>
<path id="tk.classpath">
<pathelement location="${tk.opt}/apache-mina-2.0.2/dist/mina-core-2.0.2.jar" />
<path refid="gson.classpath" />
<path refid="httpclient.classpath" />
<path refid="compress.classpath" />
<path refid="jaxb.classpath"/>
</path>
</project>