-
Notifications
You must be signed in to change notification settings - Fork 2
/
migrate-sdk.xml
71 lines (61 loc) · 2.5 KB
/
migrate-sdk.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
<?xml version='1.0' encoding='UTF-8'?>
<project name="migrateSDK" basedir=".">
<property name="sdk.android.platform" value=""/>
<dirname property="imported.basedir" file="${ant.file.migrateSDK}"/>
<path id="migrate-sdk.classpath">
<fileset dir="${imported.basedir}/lib/impl">
<include name="*.jar"/>
</fileset>
<fileset dir="${imported.basedir}/lib/api">
<include name="*.jar"/>
</fileset>
</path>
<target name="sdk.generateContract">
<property name="contract.classpath" value=""/>
<property name="contract.apis" value=""/>
<property name="destinationDirectory" value=""/>
<property name="migrateUsername" value=""/>
<property name="migratePassword" value=""/>
<java fork="true" failonerror="yes" classname="com.migrate.tools.PostSchema" classpathref="migrate-sdk.classpath">
<classpath>
<fileset dir="${sdk.android.platform}">
<include name="android.jar"/>
</fileset>
</classpath>
<arg value="-cp"/>
<arg value="${contract.classpath}"/>
<arg value="-api"/>
<arg value="${contract.apis}"/>
<arg value="-d"/>
<arg value="${destinationDirectory}"/>
<arg value="-username"/>
<arg value="${migrateUsername}"/>
<arg value="-password"/>
<arg value="${migratePassword}"/>
</java>
</target>
<target name="sdk.postSchema">
<property name="contract.classpath" value=""/>
<property name="contract.apis" value=""/>
<property name="migrateURL" value=""/>
<property name="migrateUsername" value=""/>
<property name="migratePassword" value=""/>
<java fork="true" failonerror="yes" classname="com.migrate.tools.PostSchema" classpathref="migrate-sdk.classpath">
<classpath>
<fileset dir="${sdk.android.platform}">
<include name="android.jar"/>
</fileset>
</classpath>
<arg value="-cp"/>
<arg value="${contract.classpath}"/>
<arg value="-api"/>
<arg value="${contract.apis}"/>
<arg value="-migrateURL"/>
<arg value="${migrateURL}"/>
<arg value="-username"/>
<arg value="${migrateUsername}"/>
<arg value="-password"/>
<arg value="${migratePassword}"/>
</java>
</target>
</project>