-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.xml
More file actions
191 lines (127 loc) · 4.35 KB
/
Copy pathbuild.xml
File metadata and controls
191 lines (127 loc) · 4.35 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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<?xml version="1.0" encoding="UTF-8"?>
<project
name="KioskActivity"
default="" >
<property
name="config-target-dir-path-value"
value="res/values" />
<property
name="config-target-dir-path-value-drawable"
value="res" />
<target name="-change-package" >
<echo>
Build packedge: ${config.target.package}
</echo>
<property
name="match.end"
value=""" />
<property
name="matchPackedge.start"
value="package=\"" />
<property
name="matchImportPackedge.start"
value="import " />
<property
name="matchImportPackadge.end"
value=".R;" />
<replaceregexp
file="AndroidManifest.xml"
match="${matchPackedge.start}[^"]*${match.end}"
replace="${matchPackedge.start}${config.target.package}${match.end}" />
<replaceregexp
byline="true"
match="${matchImportPackedge.start}[^"]*${matchImportPackadge.end}"
replace="${matchImportPackedge.start}${config.target.package}${matchImportPackadge.end}" >
<fileset dir="src" >
<include name="**/*.java" />
</fileset>
</replaceregexp>
</target>
<target name="-switch-config" >
<echo>
Configuration file: ${config.filename}
</echo>
<property
name="config-target-path"
value="${config-target-dir-path-value}" />
<copy
encoding="utf-8"
overwrite="true"
todir="${config-target-path}" >
<fileset dir="${config.target.values}" >
<include name="**" />
</fileset>
</copy>
<copy
encoding="utf-8"
overwrite="true"
todir="${config-target-dir-path-value-drawable}" >
<fileset dir="${config.imageFolder}" >
<include name="**" />
</fileset>
</copy>
</target>
<target name="release-air" >
<echo>
Selected release-air configuration
</echo>
<antcall target="-switch-config" >
<param
name="config.target.values"
value="target/air_le_mag/values" />
<param
name="config.imageFolder"
value="target/air_le_mag/images/" />
</antcall>
<antcall target="-change-package" >
<param
name="config.target.package"
value="padcms.application11" />
</antcall>
</target>
<target name="release-dccv" >
<echo>
Selected release-dccv configuration
</echo>
<antcall target="-switch-config" >
<param
name="config.target.values"
value="target/dccv/values" />
<param
name="config.imageFolder"
value="target/dccv/images" />
</antcall>
<antcall target="-change-package" >
<param
name="config.target.package"
value="padcms.application12" />
</antcall>
</target>
<target name="release-rue" >
<echo>
Selected release-rue configuration
</echo>
<antcall target="-switch-config" >
<param
name="config.target.values"
value="target/rue/values" />
<param
name="config.imageFolder"
value="target/rue/images/" />
</antcall>
<antcall target="-change-package" >
<param
name="config.target.package"
value="padcms.application10" />
</antcall>
</target>
<property file="local.properties" />
<loadproperties srcFile="project.properties" />
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
unless="sdk.dir" />
<import
file="custom_rules.xml"
optional="true" />
<import file="${sdk.dir}/tools/ant/build.xml" />
</project>