forked from IBMStreams/streamsx.topology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common-build.xml
64 lines (55 loc) · 2.49 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
<project name="streamsx.topology.common">
<description>
Common definitions for streamsx.topology
</description>
<property name="streamsx.topology.version" value="1.5"/>
<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"/>
<!-- 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"/>
<!-- Use the full class path as scalac doesn't seem to always pick
up jars theough 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}/httpcomponents-client-4.3.6/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="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>
<target name="checkJava8">
<condition property="isJava8">
<or>
<equals arg1="${ant.java.version}" arg2="1.8"/>
<equals arg1="${ant.java.version}" arg2="1.9"/>
</or>
</condition>
<condition property="disableJavadocLint" value="-Xdoclint:none" else="">
<or>
<equals arg1="${isJava8}" arg2="true"/>
</or>
</condition>
</target>
</project>