-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
101 lines (84 loc) · 3.58 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0"?>
<!--
build.xml
(c) Copyright, Real-Time Innovations, 2012. All rights reserved.
No duplications, whole or partial, manual or electronic, may be made
without express written permission. Any such copies, or
revisions thereof, must display this notice unaltered.
This code contains trade secrets of Real-Time Innovations, Inc.
This ant file was automatically generated by rtiddsgen.
To build, type:
ant
To run subscriber, type:
ant VehicleSubscriber
To run publisher, type:
ant VehiclePublisher
Note: This ant file is only meant to build our example applications and
may require alterations to build on your system.
-->
<project name="Vehicle Example" default="compile" basedir=".">
<!-- Set properties -->
<property environment="env"/>
<!-- Ant Properties are immutable. If NDDSHOME is already set this is a NOOP -->
<property name="env.NDDSHOME" value="/Applications/rti_connext_dds-5.3.0"/>
<!-- Set Build Path -->
<path id="build.classpath.release">
<fileset dir="${env.NDDSHOME}/lib/java" includes="**/nddsjava.jar" />
</path>
<path id="build.classpath.debug">
<fileset dir="${env.NDDSHOME}/lib/java" includes="**/nddsjavad.jar" />
</path>
<!-- Deletes the existing build -->
<target name="clean">
<delete>
<fileset dir="." includes="**/*.class" />
</delete>
</target>
<!-- Build examples -->
<target name="compile">
<javac srcdir="." destdir="." includeantruntime="false" classpathref="build.classpath.release" />
<jar destfile="VehicleExample.jar"
basedir="."
includes="**/*.class">
</jar>
</target>
<target name="compile-debug">
<javac srcdir="." destdir="." includeantruntime="false" classpathref="build.classpath.debug" debug="on"/>
<jar destfile="VehicleExample-debug.jar"
basedir="."
includes="**/*.class">
</jar>
</target>
<!-- Run release subscriber -->
<target name="VehicleSubscriber" depends="compile">
<java fork="true" failonerror="yes" classpathref="build.classpath.release" classpath="VehicleExample.jar" classname="VehicleSubscriber">
<env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH};${env.NDDSHOME}/lib/x64Darwin15clang7.0"/>
<arg value="0" description="Domain"/>
<arg value="0" description="Max loop count"/>
</java>
</target>
<!-- Run release publisher -->
<target name="VehiclePublisher" depends="compile">
<java fork="true" failonerror="yes" classpathref="build.classpath.release" classpath="VehicleExample.jar" classname="VehiclePublisher">
<env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH};${env.NDDSHOME}/lib/x64Darwin15clang7.0"/>
<arg value="0" description="Domain"/>
<arg value="0" description="Max loop count"/>
</java>
</target>
<!-- Run debug subscriber -->
<target name="VehicleSubscriber-debug" depends="compile-debug">
<java fork="true" failonerror="yes" classpathref="build.classpath.debug" classpath="VehicleExample-debug.jar" classname="VehicleSubscriber">
<env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH};${env.NDDSHOME}/lib/x64Darwin15clang7.0"/>
<arg value="0" description="Domain"/>
<arg value="0" description="Max loop count"/>
</java>
</target>
<!-- Run debug publisher -->
<target name="VehiclePublisher-debug" depends="compile-debug">
<java fork="true" failonerror="yes" classpathref="build.classpath.debug" classpath="VehicleExample-debug.jar" classname="VehiclePublisher">
<env key="DYLD_LIBRARY_PATH" path="${env.DYLD_LIBRARY_PATH};${env.NDDSHOME}/lib/x64Darwin15clang7.0"/>
<arg value="0" description="Domain"/>
<arg value="0" description="Max loop count"/>
</java>
</target>
</project>