forked from IBMStreams/streamsx.topology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common-build.xml
56 lines (47 loc) · 2.09 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
<project name="streamsx.topology.common">
<description>
Common definitions for streamsx.topology
</description>
<property name="streamsx.topology.version" value="1.1"/>
<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="7"/>
<property name="ant.build.javac.target" value="7"/>
<property name="topology.test.root" location="${streamsx.topology}/test"/>
<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" />
</path>
<path id="httpclient.classpath">
<fileset dir="${tk.opt}/httpcomponents-client-4.3.6/lib">
<include name="*.jar" />
</fileset>
</path>
<path id="tk.classpath">
<pathelement location="${tk.opt}/apache-mina-2.0.2/dist/mina-core-2.0.2.jar" />
<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>