-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild-iph.xml
148 lines (116 loc) · 5.62 KB
/
build-iph.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" encoding="UTF-8"?>
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Copyright (c) 2009-@year@. The GUITAR group at the University of
Maryland. Names of owners of this group may be obtained by sending
an e-mail to atif@cs.umd.edu
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files
(the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute, sublicense, and/or sell copies of the Software,
and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<!--++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Purpose: Manage at tool level of guitar modules
Ant-Download: http://jakarta.apache.org/ant
Ant-Manual: http://jakarta.apache.org/ant/manual/index.html
GUITAR-Homepage: http://guitar.sourceforge.net
Precondition: 1. Ant should be installed.
2. JAVA_HOME environment variable contains the path
to JDK1.6 or higher
3. ANT_HOME environment variable contains the path
to ant 1.8.2 or higher
Language: XML
Compiler: Ant
Authors: Atif M Memon, atif@cs.umd.edu
Version: $Revision: 1$
$Date: 2011-07-02$
$Author: Bao N. Nguyen$
Version: $Revision: 1$
$Date: 2009-09-18$
$Author: Atif M Memon$
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
<project name="iph.tool" default="dist" basedir=".">
<import file="build-utils.xml" as="utils" />
<include file="${basedir}/build-core.xml" as="core" />
<!-- tool constants -->
<property name="iph.name" value="iph" />
<property name="irp.name" value="${iph.name}-ripper" />
<property name="irp-spec.modules" value="gui-ripper-core,gui-ripper-${iph.name}" />
<property name="irp.modules" value="gui-model-core,gui-model-${iph.name},${irp-spec.modules}" />
<property name="irl.name" value="${iph.name}-replayer" />
<property name="irl-spec.modules" value="gui-replayer-core,gui-replayer-${iph.name}" />
<property name="irl.modules" value="gui-model-core,gui-model-${iph.name},${irl-spec.modules}" />
<!-- ${iph.name}-guitar config -->
<property name="ig.name" value="${iph.name}-guitar" />
<property name="ig.modules" value="gui-model-core,gui-model-${iph.name},${irp-spec.modules},${irl-spec.modules},${s2g-spec.modules},${tg-spec.modules},${g2g-spec.modules},${a2e-spec.modules},testcase-generator-program-analysis" />
<!-- ${iph.name}-replayer -->
<target name="dist-rl" description="distribute ${iph.name}replayer tool">
<antcall target="dist-tool">
<param name="modules" value="${irl.modules}" />
<param name="platform" value="${iph.name}" />
</antcall>
</target>
<property name="tmp.dir" value="${global.dist.guitar.dir}.bak" />
<target name="backup-guitar" description="backup">
<move todir="${tmp.dir}" failonerror="false">
<fileset dir="${global.dist.guitar.dir}" />
</move>
</target>
<target name="pack-rl" depends="backup-guitar,dist-rl" description="pack ${iph.name}replayer tool">
<!-- package -->
<antcall target="pack-tool">
<param name="tool" value="${irl.name}" />
</antcall>
<!-- restore guitar -->
<delete dir="${global.dist.guitar.dir}" />
<move todir="${global.dist.guitar.dir}" failonerror="false">
<fileset dir="${tmp.dir}" />
</move>
</target>
<!-- ${iph.name}ripper -->
<target name="dist-rp" description="distribute ${iph.name}ripper tool">
<antcall target="dist-tool">
<param name="modules" value="${irp.modules}" />
<param name="platform" value="${iph.name}" />
</antcall>
</target>
<target name="pack-rp" depends="backup-guitar,dist-rp">
<!-- package -->
<antcall target="pack-tool">
<param name="tool" value="${irp.name}" />
</antcall>
<!-- restore guitar -->
<delete dir="${global.dist.guitar.dir}" />
<move todir="${global.dist.guitar.dir}" failonerror="false">
<fileset dir="${tmp.dir}" />
</move>
</target>
<!-- ${iph.name}guitar -->
<target name="dist" description="distribute iph-guitar tool">
<antcall target="dist-tool">
<param name="modules" value="${ig.modules}" />
<param name="platform" value="${iph.name}" />
</antcall>
</target>
<target name="pack" depends="backup-guitar, dist">
<antcall target="pack-tool">
<param name="tool" value="${ig.name}" />
</antcall>
<!-- restore guitar -->
<delete dir="${global.dist.guitar.dir}" />
<move todir="${global.dist.guitar.dir}" failonerror="false" >
<fileset dir="${tmp.dir}" />
</move>
</target>
</project>