-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
77 lines (64 loc) · 2.59 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Inventory" basedir="." default="build.release">
<!-- TODO:
The eclipse.root property value must be the full path to where eclipse.exe resides
such as: C:\developement\eclipse
so uncomment the property statement below and provide the path to your eclipse
<property name="eclipse.root" value="path\to\eclipse\here"/>
-->
<!-- WORKSPACE SUGGESTION:
The eclipse launcher supports being supplied a workspace directory
via the -data parameter.
We recommend that you add another property to reference a temporary
workspace directory that does not house any projects.
Do this by uncommenting the following statement
and providing a valid directory path:
<property name="workspace.dir" value="path\to\temporary\workspace\here"/>
Then supply this to the eclipse launcher by adding the
following two lines BEFORE the -application parameter
<arg value="-data"/>
<arg value="${workspace.dir}"/>
-->
<!-- Headless VAD Export of Inventory
Generates vad in the \export folder -->
<target name="build.release">
<fail unless="eclipse.root">eclipse.root has not been set
</fail>
<!-- WORKSPACE SUGGESTION:
If you are using the -data parameter, you should make sure the temporary
workspace directory does not exist - often when this target fails, the
workspace is left in a state with open projects which will cause a
subsequent execution to fail.
To prevent this, uncomment the following statement:
<delete dir="${workspace.dir}"/>
-->
<path id="newest.equinox.launcher.path.id">
<first count="1">
<sort>
<fileset dir="${eclipse.root}/plugins" includes="**/org.eclipse.equinox.launcher_*.jar"/>
<reverse xmlns="antlib:org.apache.tools.ant.types.resources.comparators">
<date/>
</reverse>
</sort>
</first>
</path>
<property name="equinox.launcher.jar.location" refid="newest.equinox.launcher.path.id"/>
<!-- NOTE:
The exec os ant target invoked here is a basic VoiceApplication HeadlessBuild
HeadlessBuild does support encrypted builds as well simply by providing
<arg value="-encrypted"/>
before the closing exec statement
-->
<exec os="Windows 7,Windows XP,Windows Vista,Windows 2003,Linux"
executable="java" failonerror="true">
<arg value="-jar" />
<arg value="${equinox.launcher.jar.location}"/>
<!-- <arg value="-data"/>
<arg value="${workspace.dir}"/> -->
<arg value="-application" />
<arg value="com.vocollect.voiceartisan.tools.HeadlessBuild" />
<arg value="-project"/>
<arg value="D:\workspaces\vocollect\Inventory"/>
</exec>
</target>
</project>