This repository was archived by the owner on Jan 5, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathspreadsheet.xml
More file actions
275 lines (235 loc) · 10.9 KB
/
Copy pathspreadsheet.xml
File metadata and controls
275 lines (235 loc) · 10.9 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<project name="spreadsheet" default="build.spreadsheet" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.spreadsheet}"/>
<import file="${build_dir}/core.xml"/>
<!-- ===================================================================== -->
<!-- Build GData Spreadsheet library. -->
<!-- ===================================================================== -->
<property name="gdata-spreadsheet.jar"
value="${build.jars}/gdata-spreadsheet-${spreadsheet.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build the GData Spreadsheet samples. -->
<!-- ===================================================================== -->
<!-- samples build Properties -->
<property name="sample.spreadsheet.basedir" value="${build}/sample/spreadsheet"/>
<property name="sample.spreadsheet.src.home" value="${sample.spreadsheet.basedir}"/>
<property name="sample.spreadsheet.build.classes" value="${sample.spreadsheet.basedir}/classes"/>
<property name="sample.spreadsheet.build.lib" value="${sample.spreadsheet.basedir}/lib"/>
<property name="sample.spreadsheet.celldemo.jar"
value="${sample.spreadsheet.build.lib}/CellDemo.jar"/>
<property name="sample.spreadsheet.celldemo.main"
value="sample.spreadsheet.cell.CellDemo"/>
<property name="sample.spreadsheet.listdemo.jar"
value="${sample.spreadsheet.build.lib}/ListDemo.jar"/>
<property name="sample.spreadsheet.listdemo.main"
value="sample.spreadsheet.list.ListDemo"/>
<property name="sample.spreadsheet.recorddemo.jar"
value="${sample.spreadsheet.build.lib}/RecordDemo.jar"/>
<property name="sample.spreadsheet.recorddemo.main"
value="sample.spreadsheet.record.RecordDemo"/>
<property name="sample.spreadsheet.worksheetdemo.jar"
value="${sample.spreadsheet.build.lib}/WorksheetDemo.jar"/>
<property name="sample.spreadsheet.worksheetdemo.main"
value="sample.spreadsheet.worksheet.WorksheetDemo"/>
<property name="sample.spreadsheet.tabledemo.jar"
value="${sample.spreadsheet.build.lib}/TableDemo.jar"/>
<property name="sample.spreadsheet.tabledemo.main"
value="sample.spreadsheet.table.TableDemo"/>
<property name="sample.spreadsheet.guidemo.jar"
value="${sample.spreadsheet.build.lib}/GUIDemo.jar"/>
<property name="sample.spreadsheet.guidemo.main"
value="sample.spreadsheet.gui.SpreadsheetApiDemo"/>
<property name="sample.spreadsheet.indexclient.jar"
value="${sample.spreadsheet.build.lib}/IndexClient.jar"/>
<property name="sample.spreadsheet.indexclient.main"
value="sample.spreadsheet.IndexClient"/>
<property name="sample.spreadsheet.importclient.jar"
value="${sample.spreadsheet.build.lib}/ImportClient.jar"/>
<property name="sample.spreadsheet.importclient.main"
value="sample.spreadsheet.ImportClient"/>
<!-- dependency check -->
<target name="sample.spreadsheet.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="spreadsheet"/>
<param name="template.service.version" value="${spreadsheet.spec.version}"/>
</antcall>
</target>
<!-- samples dependencies -->
<path id="sample.spreadsheet.compile.classpath">
<path refid="build.service.core.classpath"/>
<pathelement location="${gdata-spreadsheet.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<!-- samples build -->
<target name="sample.spreadsheet.build"
depends="sample.spreadsheet.dependencies,core.sample.core.util.build"
description="Create binary distribution">
<!-- Compile Java classes as necessary -->
<mkdir dir="${sample.spreadsheet.build.classes}"/>
<javac srcdir="${sample.spreadsheet.src.home}"
destdir="${sample.spreadsheet.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.spreadsheet.compile.classpath"/>
</javac>
<!-- Create dist directory -->
<mkdir dir="${sample.spreadsheet.build.lib}"/>
<!-- Create CellDemo JAR file -->
<jar jarfile="${sample.spreadsheet.celldemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.celldemo.main}"/>
</manifest>
</jar>
<!-- Create ListDemo JAR file -->
<jar jarfile="${sample.spreadsheet.listdemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.listdemo.main}"/>
</manifest>
</jar>
<!-- Create RecordDemo JAR file -->
<jar jarfile="${sample.spreadsheet.recorddemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.recorddemo.main}"/>
</manifest>
</jar>
<!-- Create WorksheetDemo JAR file -->
<jar jarfile="${sample.spreadsheet.worksheetdemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.worksheetdemo.main}"/>
</manifest>
</jar>
<!-- Create TableDemo JAR file -->
<jar jarfile="${sample.spreadsheet.tabledemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.tabledemo.main}"/>
</manifest>
</jar>
<!-- Create GUIDemo JAR file -->
<jar jarfile="${sample.spreadsheet.guidemo.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.guidemo.main}"/>
</manifest>
</jar>
<!-- Create IndexClient JAR file -->
<jar jarfile="${sample.spreadsheet.indexclient.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.indexclient.main}"/>
</manifest>
</jar>
<!-- Create ImportClient JAR file -->
<jar jarfile="${sample.spreadsheet.importclient.jar}"
basedir="${sample.spreadsheet.build.classes}">
<manifest>
<attribute name="Main-Class"
value="${sample.spreadsheet.importclient.main}"/>
</manifest>
</jar>
</target>
<target name="sample.spreadsheet.clean"
description="Delete old build and dist directories">
<delete dir="${sample.spreadsheet.build.classes}"/>
</target>
<!-- samples run -->
<target name="sample.spreadsheet.celldemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet CellDemo sample">
<java fork="true" classname="${sample.spreadsheet.celldemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.celldemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.listdemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet ListDemo sample">
<java fork="true" classname="${sample.spreadsheet.listdemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.listdemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.recorddemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet Record Demo sample">
<java fork="true" classname="${sample.spreadsheet.recorddemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.recorddemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.worksheetdemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet WorksheetDemo sample">
<java fork="true" classname="${sample.spreadsheet.worksheetdemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.worksheetdemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.tabledemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet Table Demo sample">
<java fork="true" classname="${sample.spreadsheet.tabledemo.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.tabledemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.guidemo.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet GUIDemo sample">
<java fork="true" classname="${sample.spreadsheet.guidemo.main}">
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.guidemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.indexclient.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet IndexClient sample">
<java fork="true" classname="${sample.spreadsheet.indexclient.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password} --author --worksheets --headers"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.celldemo.jar}"/>
</classpath>
</java>
</target>
<target name="sample.spreadsheet.importclient.run"
depends="sample.spreadsheet.build"
description="Runs the Spreadsheet ImportClient sample">
<java fork="true" classname="${sample.spreadsheet.importclient.main}">
<arg line="-u ${sample.credentials.username} -p ${sample.credentials.password} --filename ${sample.spreadsheet.importclient.filename} --spreadsheet ${sample.spreadsheet.importclient.spreadsheet} --worksheet ${sample.spreadsheet.importclient.worksheet} --delimiter ,"/>
<classpath>
<path refid="sample.spreadsheet.compile.classpath"/>
<path location="${sample.spreadsheet.celldemo.jar}"/>
</classpath>
</java>
</target>
</project>