This repository was archived by the owner on Mar 31, 2026. It is now read-only.
forked from ib-ruby/ib-ruby
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
53 lines (44 loc) · 1.71 KB
/
Copy pathbuild.xml
File metadata and controls
53 lines (44 loc) · 1.71 KB
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
<?xml version="1.0"?>
<project name="APIExamples" basedir="." default="ex2">
<property name="library.name" value="api-examples"/>
<property name="source.dir" value="src"/>
<property name="build.dir" value="build"/>
<property name="lib.dir" value="lib"/>
<!-- runtime classpath -->
<path id="run.classpath">
<pathelement location="${lib.dir}/${library.name}.jar"/>
</path>
<!-- clean -->
<target name="clean">
<delete dir="${build.dir}"/>
<mkdir dir="${build.dir}"/>
</target>
<!-- make -->
<target name="make" depends="clean">
<javac deprecation='on'
source="1.5"
target="1.5"
debug='on'
srcdir="${source.dir}"
destdir="${build.dir}"
includes="**/*.java" />
<jar jarfile="${build.dir}/${library.name}.jar" compress="no">
<zipfileset dir="${build.dir}" excludes="*.jar" includes="com/ib/client/**/*.class"/>
</jar>
<move file="${build.dir}/${library.name}.jar" todir="${lib.dir}"/>
</target>
<target name="ex1" depends="make">
<java classname="com.ib.client.examples.Example1" fork="true">
<classpath refid="run.classpath"/>
<arg value="IBKR"/>
</java>
</target>
<target name="ex2" depends="make">
<java classname="com.ib.client.examples.Example2" fork="true">
<classpath refid="run.classpath"/>
<arg value="C"/>
<arg value="125"/>
<arg value="2"/>
</java>
</target>
</project>