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 pathcore.xml
More file actions
225 lines (184 loc) · 8.54 KB
/
Copy pathcore.xml
File metadata and controls
225 lines (184 loc) · 8.54 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
<project name="core" default="build.core" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.core}"/>
<!-- ===================================================================== -->
<!-- Global targets -->
<!-- ===================================================================== -->
<!-- Root build path -->
<property name="build" value="${build_dir}/../"/>
<!-- Path for compiled files -->
<property name="build.jars" value="${build}/lib"/>
<!-- User properties -->
<property name="version.properties" value="${build}/version.properties"/>
<property name="build.properties" value="${build_dir}/build.properties"/>
<property file="${version.properties}"/>
<property file="${build.properties}"/>
<property name="gdata-core.jar"
value="${build.jars}/gdata-core-${client.spec.version}.jar"/>
<property name="gdata-client-meta.jar"
value="${build.jars}/gdata-client-meta-${client.spec.version}.jar"/>
<property name="gdata-client.jar"
value="${build.jars}/gdata-client-${client.spec.version}.jar"/>
<property name="gdata-media.jar"
value="${build.jars}/gdata-media-${media.spec.version}.jar"/>
<!-- path for third_party google dependencies -->
<path id="build.google-deps.classpath">
<pathelement location="${google-jsr305.jar}"/>
<pathelement location="${guava.jar}"/>
</path>
<!-- Dependency path for all services -->
<path id="build.service.core.classpath">
<path refid="build.google-deps.classpath"/>
<pathelement location="${gdata-client.jar}"/>
</path>
<!-- Dependency path for all media enabled services -->
<path id="build.service.media.classpath">
<path refid="build.google-deps.classpath"/>
<pathelement location="${mail.jar}"/>
<pathelement location="${activation.jar}"/>
<pathelement location="${gdata-media.jar}"/>
</path>
<!-- Template to check if Service libs are available
Params:
@param template.service.name name of the service
@param template.service.version specificaiton version for the service
-->
<target name="template.require.service.jar">
<property name="template.service.jar"
value="${build.jars}/gdata-${template.service.name}-${template.service.version}.jar"/>
<available
file="${template.service.jar}"
property="has.service.jar"/>
<fail unless="has.service.jar">
Missing dependency jar: ${template.service.jar}
Please run "ant ${template.service.name}.build.${template.service.name}".
</fail>
</target>
<!-- ==================== Build Core samples ============================= -->
<!-- ===================================================================== -->
<!-- Util For Sample Targets -->
<!-- ===================================================================== -->
<property name="sample.core.util.basedir" value="${build}/sample/util"/>
<property name="sample.core.util.build.classes" value="${sample.core.util.basedir}/classes"/>
<property name="sample.core.util.build.lib" value="${sample.core.util.basedir}/lib"/>
<property name="sample-util.jar" value="${sample.core.util.build.lib}/sample-util.jar"/>
<target name="sample.core.dependencies">
<available
file="${gdata-client.jar}"
property="has.client.jar"/>
<fail unless="has.client.jar">
Missing dependency jar: ${gdata-client.jar}
Please run "ant core.build.core.client first".
</fail>
</target>
<path id="sample.core.util.compile.classpath">
<pathelement location="${gdata-core.jar}"/>
<pathelement location="${gdata-client.jar}"/>
</path>
<target name="sample.core.util.build" depends="sample.core.dependencies">
<mkdir dir="${sample.core.util.build.classes}"/>
<javac srcdir="${sample.core.util.basedir}"
destdir="${sample.core.util.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.core.util.compile.classpath"/>
</javac>
<mkdir dir="${sample.core.util.build.lib}"/>
<jar jarfile="${sample-util.jar}"
basedir="${sample.core.util.build.classes}">
</jar>
</target>
<target name="sample.core.util.clean">
<delete dir="${sample.core.util.build.classes}"/>
</target>
<!-- ===================================================================== -->
<!-- Tester Sample Targets -->
<!-- ===================================================================== -->
<property name="sample.core.tester.basedir" value="${build}/sample/tester"/>
<property name="sample.core.tester.src.home" value="${sample.core.tester.basedir}"/>
<property name="sample.core.tester.build.classes" value="${sample.core.tester.basedir}/classes"/>
<property name="sample.core.tester.build.lib" value="${sample.core.tester.basedir}/lib"/>
<property name="sample.core.tester.jar" value="${sample.core.tester.build.lib}/TesterClient.jar"/>
<property name="sample.core.tester.main" value="sample.tester.Tester"/>
<target name="sample.core.tester.clean"
description="Delete old build and dist directories">
<delete dir="${sample.core.tester.build.classes}"/>
</target>
<path id="sample.core.tester.compile.classpath">
<pathelement location="${gdata-client.jar}"/>
<pathelement location="${sample-util.jar}"/>
</path>
<target name="sample.core.tester.build" depends="sample.core.dependencies">
<mkdir dir="${sample.core.tester.build.classes}"/>
<javac srcdir="${sample.core.tester.src.home}"
destdir="${sample.core.tester.build.classes}"
debug="false"
deprecation="false"
optimize="true">
<classpath refid="sample.core.tester.compile.classpath"/>
</javac>
<mkdir dir="${sample.core.tester.build.lib}"/>
<jar jarfile="${sample.core.tester.jar}"
basedir="${sample.core.tester.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.core.tester.main}"/>
</manifest>
</jar>
</target>
<target name="sample.core.tester.run" depends="sample.core.tester.build">
<java fork="true" classname="${sample.core.tester.main}">
<arg line="-s ${sample.tester.serviceName} -a ${sample.tester.appName} -f ${sample.tester.feedUrl} -u ${sample.credentials.username} -p ${sample.credentials.password}"/>
<classpath>
<path refid="sample.core.tester.compile.classpath"/>
<path location="${sample.core.tester.jar}"/>
</classpath>
</java>
</target>
<target name="sample.core.build">
<antcall target="sample.core.util.build"/>
<antcall target="sample.core.tester.build"/>
</target>
<target name="sample.core.clean">
<antcall target="sample.core.util.clean"/>
<antcall target="sample.core.tester.clean"/>
</target>
<target name="sample.core.run">
<antcall target="sample.core.tester.run"/>
</target>
<!-- ===================================================================== -->
<!-- Third party dependency checks -->
<!-- ===================================================================== -->
<!-- Dependencies for media extensions -->
<target name="require.client.dependencies">
<available file="${mail.jar}" property="has.sunmail"/>
<available file="${activation.jar}" property="has.sunactivation"/>
<fail unless="has.sunmail">missing jar file: ${mail.jar}
The GData client requires Oracle's javamail API (version 1.4), which
is not included in this distribution.
You can download it from:
http://www.oracle.com/technetwork/java/javamail/index.html
Then save it under:
${mail.jar}
</fail>
<fail unless="has.sunactivation">missing jar file: ${activation.jar}
The GData client requires Oracle's Activation Framework 1.1, which
is not included in this distribution.
You can download it from:
http://www.oracle.com/technetwork/java/javase/downloads/index-135046.html
Then save it under:
${activation.jar}
</fail>
</target>
<target name="require.servlet-api">
<available file="${servlet.jar}" property="has.servlet-api"/>
<fail unless="has.servlet-api">missing jar file: ${servlet.jar}
The recipe example requires Sun's Servlet API (version 2.3 or 2.4), which
is not included in this distribution.
You can download it from:
http://www.oracle.com/technetwork/java/index-jsp-135475.html
Then save it under:
${servlet.jar}
</fail>
</target>
</project>