-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
92 lines (79 loc) · 2.21 KB
/
build.xml
File metadata and controls
92 lines (79 loc) · 2.21 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
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="kony" basedir="." default="main">
<target name="main" >
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="../ant-contrib-0.6.jar"/>
</classpath>
</taskdef>
<echo message="Started script..."/>
<property file="./build.properties"/>
<property file="../global.properties"/>
<property name="input.file" value="${basedir}/build.properties"/>
<property name="global.file" location="../global.properties"/>
<if>
<or>
<not>
<available file="${input.file}"/>
</not>
<not>
<available file="${global.file}"/>
</not>
</or>
<then>
<fail message="Either ${input.file}
or
${global.file}
doesn't exist"/>
</then>
</if>
<if>
<or>
<equals arg1="${project.name}" arg2=""/>
<equals arg1="${workspace.location}" arg2=""/>
</or>
<then>
<fail message="Either project name or workspace location is not given.
Please set 'project.name' property in ${input.file}
and
Please set 'workspace.location' property in ${global.file}"/>
</then>
<else>
<if>
<not>
<available file="${workspace.location}/${project.name}" type="dir"/>
</not>
<then>
<fail message="Project '${project.name}' doesn't exist in ${workspace.location}"/>
</then>
</if>
</else>
</if>
<if>
<equals arg1="${eclipse.equinox.path}" arg2=""/>
<then>
<fail message="Please set 'eclipse.equinox.path' property in ${global.file}"/>
</then>
<else>
<if>
<not>
<available file="${eclipse.equinox.path}"/>
</not>
<then>
<fail message="The path provided for 'eclipse.equinox.path' property in ${global.file} is not present.."/>
</then>
</if>
</else>
</if>
<echo message="WORKSPACE LOCATION: ${workspace.location}"/>
<exec dir="." executable="cmd" failonerror="true">
<arg value="/c"/>
<arg value="run.bat"/>
<arg value="${input.file}"/>
<arg value="${workspace.location}"/>
<arg value="${eclipse.equinox.path}"/>
<arg value="${global.file}"/>
</exec>
<echo message="Ending script..."/>
</target>
</project>