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 pathgtt.xml
More file actions
69 lines (60 loc) · 2.71 KB
/
Copy pathgtt.xml
File metadata and controls
69 lines (60 loc) · 2.71 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
<project name="gtt" default="sample.gtt.build" basedir=".">
<!-- Path containing core.xml -->
<dirname property="build_dir" file="${ant.file.gtt}"/>
<import file="${build_dir}/core.xml"/>
<import file="${build_dir}/gtt.xml"/>
<property name="gdata-gtt.jar"
value="${build.jars}/gdata-gtt-${gtt.spec.version}.jar"/>
<!-- ===================================================================== -->
<!-- Build GData Translator Toolkit samples. -->
<!-- ===================================================================== -->
<!-- build Properties -->
<property name="sample.gtt.basedir" value="${build}/sample/gtt"/>
<property name="sample.gtt.src.home" value="${sample.gtt.basedir}"/>
<property name="sample.gtt.build.classes" value="${sample.gtt.basedir}/classes"/>
<property name="sample.gtt.build.lib" value="${sample.gtt.basedir}/lib"/>
<property name="sample.gtt.jar" value="${sample.gtt.build.lib}/GttClient.jar"/>
<property name="sample.gtt.main" value="sample.gtt.GttClient"/>
<path id="sample.gtt.compile.classpath">
<path refid="build.service.media.classpath"/>
<path location="${gdata-gtt.jar}"/>
<path location="${sample-util.jar}"/>
</path>
<target name="sample.gtt.dependencies">
<antcall target="template.require.service.jar">
<param name="template.service.name" value="gtt"/>
<param name="template.service.version" value="${gtt.spec.version}"/>
</antcall>
</target>
<target name="sample.gtt.build" depends="sample.gtt.dependencies">
<mkdir dir="${sample.gtt.build.lib}"/>
<mkdir dir="${sample.gtt.build.classes}"/>
<javac srcdir="${sample.gtt.src.home}"
destdir="${sample.gtt.build.classes}"
debug="${javac.debug}" debuglevel="${javac.debuglevel}"
deprecation="false"
optimize="true">
<classpath refid="sample.gtt.compile.classpath"/>
</javac>
<jar jarfile="${sample.gtt.jar}"
basedir="${sample.gtt.build.classes}">
<manifest>
<attribute name="Main-Class" value="${sample.gtt.main}"/>
</manifest>
</jar>
</target>
<target name="sample.gtt.clean"
description="Delete old build and dist directories">
<delete dir="${sample.gtt.build.classes}"/>
</target>
<target name="sample.gtt.run" depends="sample.gtt.build">
<java fork="true" classname="${sample.gtt.main}">
<arg line="login --username ${sample.credentials.username} --password ${sample.credentials.password}"/>
<classpath>
<path refid="sample.gtt.compile.classpath"/>
<path location="${sample-util.jar}"/>
<path location="${sample.gtt.jar}"/>
</classpath>
</java>
</target>
</project>