This repository has been archived by the owner on Jul 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 133
/
get-vendor.xml
189 lines (139 loc) · 6.95 KB
/
get-vendor.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
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
<!--
* weinre is available under *either* the terms of the modified BSD license *or* the
* MIT License (2008). See http://opensource.org/licenses/alphabetical for full text.
*
* Copyright (c) 2010, 2011 IBM Corporation
-->
<project name="get-vendor" default="get-vendor" basedir=".">
<property file="personal.properties"/>
<property file="build.properties"/>
<property file="vendor.properties"/>
<!-- ============================================================ -->
<target name="get-vendor">
<echo>Go get some coffee, this is going to take a while</echo>
<delete dir="${TMP}"/>
<delete dir="${VENDOR}"/>
<mkdir dir="${VENDOR}"/>
<antcall target="get-json2"/>
<antcall target="get-cli"/>
<antcall target="get-json4j"/>
<antcall target="get-jetty"/>
<antcall target="get-scooj"/>
<antcall target="get-modjewel"/>
<antcall target="get-web-inspector"/>
<antcall target="get-swt-mac"/>
</target>
<!-- ============================================================ -->
<target name="get-cli">
<delete dir="${VENDOR}/cli"/>
<mkdir dir="${VENDOR}/cli"/>
<delete dir="${TMP}"/>
<mkdir dir="${TMP}"/>
<get src="${CLI_URL}" dest="${TMP}/commons-cli.zip" verbose="false"/>
<unzip src="${TMP}/commons-cli.zip" dest="${TMP}">
<patternset>
<include name="${CLI_BASENAME}-sources.jar"/>
<include name="${CLI_BASENAME}.jar"/>
</patternset>
</unzip>
<copy file="${TMP}/${CLI_BASENAME}.jar" tofile="${VENDOR}/cli/commons-cli.jar"/>
<copy file="${TMP}/${CLI_BASENAME}-sources.jar" tofile="${VENDOR}/cli/commons-cli-src.jar"/>
<delete dir="${TMP}"/>
</target>
<!-- ============================================================ -->
<target name="get-json4j">
<delete dir="${VENDOR}/json4j"/>
<mkdir dir="${VENDOR}/json4j"/>
<delete dir="${TMP}"/>
<mkdir dir="${TMP}"/>
<get src="${JSON4J_BIN_URL}" dest="${TMP}/json4j.zip" verbose="false"/>
<unzip src="${TMP}/json4j.zip" dest="${TMP}">
<patternset>
<include name="**/wink-json4j-${JSON4J_VERSION}.jar"/>
</patternset>
</unzip>
<copy file="${TMP}/apache-wink-${JSON4J_VERSION}/ext/wink-json4j-provider/lib/wink-json4j-${JSON4J_VERSION}.jar" tofile="${VENDOR}/json4j/json4j.jar"/>
<delete dir="${TMP}"/>
<mkdir dir="${TMP}"/>
<get src="${JSON4J_SRC_URL}" dest="${TMP}/json4j-src.zip" verbose="false"/>
<unzip src="${TMP}/json4j-src.zip" dest="${TMP}/src">
<patternset>
<include name="**/wink-json4j/src/main/java/org/apache/wink/json4j/**/*"/>
</patternset>
</unzip>
<zip destfile="${VENDOR}/json4j/json4j-src.jar" basedir="${TMP}/src"/>
<delete dir="${TMP}"/>
</target>
<!-- ============================================================ -->
<target name="get-jetty">
<delete dir="${VENDOR}/jetty"/>
<mkdir dir="${VENDOR}/jetty"/>
<get src="${JETTY_SRC_URL}" dest="${VENDOR}/jetty/jetty-src.jar" verbose="false"/>
<get src="${JETTY_BIN_URL}" dest="${VENDOR}/jetty/jetty.jar" verbose="false"/>
<get src="${JAVAX_SERVLET_URL}" dest="${VENDOR}/jetty/servlet-api.jar" verbose="false"/>
</target>
<!-- ============================================================ -->
<target name="get-scooj">
<delete dir="${VENDOR}/scooj"/>
<mkdir dir="${VENDOR}/scooj"/>
<get src="${SCOOJ_URL_PREFIX}/scooj.js" dest="${VENDOR}/scooj/scooj.js" verbose="false"/>
<get src="${SCOOJ_URL_PREFIX}/scoopc.py" dest="${VENDOR}/scooj/scoopc.py" verbose="false"/>
</target>
<!-- ============================================================ -->
<target name="get-modjewel">
<delete dir="${VENDOR}/modjewel"/>
<mkdir dir="${VENDOR}/modjewel"/>
<get src="${MODJEWEL_URL_PREFIX}/modjewel-require.js" dest="${VENDOR}/modjewel/modjewel-require.js" verbose="false"/>
<get src="${MODJEWEL_URL_PREFIX}/module2transportd.py" dest="${VENDOR}/modjewel/module2transportd.py" verbose="false"/>
</target>
<!-- ============================================================ -->
<target name="get-web-inspector">
<delete dir="${VENDOR}/webkit"/>
<mkdir dir="${VENDOR}/webkit/WebCore"/>
<exec executable="svn" dir="${VENDOR}/webkit/WebCore">
<arg value="export"/>
<arg value="-r"/>
<arg value="${WEBKIT_VERSION}"/>
<arg value="${WEBKIT_URL_PREFIX}/Source/WebCore/inspector"/>
</exec>
<exec executable="svn" dir="${VENDOR}/webkit/WebCore">
<arg value="export"/>
<arg value="-r"/>
<arg value="${WEBKIT_VERSION}"/>
<arg value="${WEBKIT_URL_PREFIX}/Source/WebCore/English.lproj"/>
</exec>
<exec executable="svn" dir="${VENDOR}/webkit/WebCore">
<arg value="export"/>
<arg value="-r"/>
<arg value="${WEBKIT_VERSION}"/>
<arg value="${WEBKIT_URL_PREFIX}/Source/WebCore/css/CSSPropertyNames.in"/>
</exec>
<exec executable="grep" outputproperty="gpl-grep-results" dir="${VENDOR}/webkit/WebCore">
<arg value="-r"/>
<arg value="GPL"/>
<arg value="."/>
</exec>
<condition property="found-no-gpl-files">
<equals arg1="" arg2="${gpl-grep-results}"/>
</condition>
<fail unless="found-no-gpl-files" message="The string GPL was found in the WebKit files"/>
</target>
<!-- ============================================================ -->
<target name="get-swt-mac">
<delete dir="${VENDOR}/swt"/>
<mkdir dir="${VENDOR}/swt"/>
<delete dir="${TMP}"/>
<mkdir dir="${TMP}"/>
<get src="${SWT_URL_PREFIX}/swt-${SWT_VERSION_MAJOR}-cocoa-macosx-x86_64.zip" dest="${TMP}/swt.zip" verbose="false"/>
<unzip src="${TMP}/swt.zip" dest="${TMP}"/>
<copy file="${TMP}/src.zip" tofile="${VENDOR}/swt/cocoa-macosx-x86_64/swt-src.jar"/>
<copy file="${TMP}/swt-debug.jar" tofile="${VENDOR}/swt/cocoa-macosx-x86_64/swt.jar"/>
<delete dir="${TMP}"/>
</target>
<!-- ============================================================ -->
<target name="get-json2">
<delete dir="${VENDOR}/json2"/>
<mkdir dir="${VENDOR}/json2"/>
<get src="${JSON2_URL_PREFIX}/json2.js" dest="${VENDOR}/json2/json2.js" verbose="false"/>
</target>
</project>