Skip to content

Commit 65d47f0

Browse files
author
Xuan Dai
committed
GERONIMODEVTOOLS-600 2.1 branch can build with 64-bit JDK now
git-svn-id: https://svn.apache.org/repos/asf/geronimo/devtools/eclipse-plugin/branches/2.1.6@964727 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2318717 commit 65d47f0

File tree

2 files changed

+102
-74
lines changed

2 files changed

+102
-74
lines changed

eclipse/build.xml

Lines changed: 97 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@
1818

1919
<!--
2020
|
21-
| Download helios artifacts and unzip them into the user's local maven repo
21+
| Download Helios artifacts and unzip them into the user's local maven repo
2222
|
2323
|
2424
| @version $Rev$ $Date$
2525
-->
26-
<project name="heliosArtifacts">
26+
<project name="HeliosArtifacts">
2727

28-
<target name="init">
29-
<property name="helios_url" value="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/"/>
28+
<condition property="is64bitJDK">
29+
<!--We only check JVM bit model here.It works fine even 32-bit JVM is used on 64-bit OS -->
30+
<equals arg1="${sun.arch.data.model}" arg2="64" />
31+
</condition>
32+
33+
<target name="init">
34+
<property name="helios_url" value="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R"/>
3035
<property name="helios_jee_win32" value="eclipse-jee-helios-win32.zip"/>
3136
<property name="helios_jee_win64" value="eclipse-jee-helios-win32_64.zip"/>
3237
<property name="helios_jee_linux" value="eclipse-jee-helios-linux-gtk.tar"/>
@@ -35,139 +40,175 @@
3540
<property name="helios_jee_linux_gz" value="${helios_jee_linux}.gz"/>
3641
<property name="helios_jee_linux-x86_64_gz" value="${helios_jee_linux-x86_64}.gz"/>
3742
<property name="helios_jee_macos_gz" value="${helios_jee_macos}.gz"/>
38-
<property name="protocol" value="&amp;r=1&amp;protocol=http"/>
39-
40-
<property name="tptp-version" value="4.7.0"/>
41-
<property name="tptp" value="tptp.runtime-TPTP-${tptp-version}.zip"/>
42-
<property name="tptp-runtime-url" value="http://archive.eclipse.org/tptp/${tptp-version}/TPTP-${tptp-version}/${tptp}"/>
43-
43+
44+
<property name="tptp-version" value="4.7.0"/>
45+
<property name="tptp" value="tptp.runtime-TPTP-${tptp-version}.zip"/>
46+
<property name="tptp-runtime-url" value="http://www.eclipse.org/downloads/download.php?file=/tptp/4.7.0/TPTP-4.7.0"/>
47+
48+
<property name="protocol" value="&amp;r=1&amp;protocol=http"/>
4449
</target>
4550

46-
<target name="tptp" description="Download and extract TPTP runtime package">
47-
<echo>#################################################################################</echo>
48-
<echo>## </echo>
49-
<echo>## Downloading: ${tptp} </echo>
50-
<echo>## </echo>
51-
<echo>## From: ${tptp-runtime-url} </echo>
52-
<echo>## </echo>
53-
<echo>#################################################################################</echo>
54-
<mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
55-
<get src="${tptp-runtime-url}"
56-
dest="${LOCAL_M2_REPO}/eclipse-downloads/${tptp}"
57-
verbose="true"
58-
ignoreerrors="true"
59-
usetimestamp="true"/>
60-
<echo>#################################################################################</echo>
61-
<echo>## </echo>
62-
<echo>## Unzipping: ${tptp} </echo>
63-
<echo>## </echo>
64-
<echo>#################################################################################</echo>
65-
<unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${tptp}"
66-
dest="${LOCAL_M2_REPO}/eclipse"
67-
overwrite="true"/>
68-
</target>
51+
<target name="tptp" depends="init" description="Download and extract TPTP runtime package">
52+
<echo>#################################################################################</echo>
53+
<echo>## </echo>
54+
<echo>## Downloading: ${tptp} </echo>
55+
<echo>## </echo>
56+
<echo>## From: ${tptp-runtime-url} </echo>
57+
<echo>## </echo>
58+
<echo>#################################################################################</echo>
59+
<mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
60+
<get src="${tptp-runtime-url}/${tptp}${protocol}"
61+
dest="${LOCAL_M2_REPO}/eclipse-downloads/${tptp}"
62+
verbose="true"
63+
ignoreerrors="true"
64+
usetimestamp="true"/>
65+
<echo>#################################################################################</echo>
66+
<echo>## </echo>
67+
<echo>## Unzipping: ${tptp} </echo>
68+
<echo>## </echo>
69+
<echo>#################################################################################</echo>
70+
<unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${tptp}"
71+
dest="${LOCAL_M2_REPO}/eclipse"
72+
overwrite="true"/>
73+
</target>
6974

70-
<target name="win32" depends="init" description="Download Windows-specific artifact(s)">
75+
<target name="win" depends="init" description="Download Windows-specific artifact(s)">
76+
<antcall target="win64"></antcall>
77+
<antcall target="win32"></antcall>
78+
</target>
79+
80+
<target name="win32" unless="is64bitJDK" description="Download Windows 32-bit-specific artifact(s)">
7181
<echo>#################################################################################</echo>
7282
<echo>## </echo>
73-
<echo>## Downloading: ${helios_jee_win32} </echo>
83+
<echo>## Downloading: ${helios_jee_win32} </echo>
7484
<echo>## </echo>
75-
<echo>## From: ${helios_url} </echo>
85+
<echo>## From: ${helios_url} </echo>
7686
<echo>## </echo>
7787
<echo>#################################################################################</echo>
7888
<mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
79-
<get src="${helios_url}${helios_jee_win32}${protocol}"
89+
<get src="${helios_url}/${helios_jee_win32}${protocol}"
8090
dest="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_win32}"
8191
verbose="true"
8292
ignoreerrors="true"
8393
usetimestamp="true"/>
8494
<echo>#################################################################################</echo>
8595
<echo>## </echo>
86-
<echo>## Unzipping: ${helios_jee_win32} </echo>
96+
<echo>## Unzipping: ${helios_jee_win32} </echo>
8797
<echo>## </echo>
8898
<echo>#################################################################################</echo>
89-
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
99+
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
90100
<mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
91101
<unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_win32}"
92102
dest="${LOCAL_M2_REPO}/eclipse"
93103
overwrite="true"/>
94104
</target>
95105

106+
<target name="win64" if="is64bitJDK" description="Download Windows 64-bit-specific artifact(s)">
107+
<echo>#################################################################################</echo>
108+
<echo>## </echo>
109+
<echo>## Downloading: ${helios_jee_win64} </echo>
110+
<echo>## </echo>
111+
<echo>## From: ${helios_url} </echo>
112+
<echo>## </echo>
113+
<echo>#################################################################################</echo>
114+
<mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
115+
<get src="${helios_url}/${helios_jee_win64}${protocol}"
116+
dest="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_win64}"
117+
verbose="true"
118+
ignoreerrors="true"
119+
usetimestamp="true"/>
120+
<echo>#################################################################################</echo>
121+
<echo>## </echo>
122+
<echo>## Unzipping: ${helios_jee_win64} </echo>
123+
<echo>## </echo>
124+
<echo>#################################################################################</echo>
125+
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
126+
<mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
127+
<unzip src="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_win64}"
128+
dest="${LOCAL_M2_REPO}/eclipse"
129+
overwrite="true"/>
130+
</target>
131+
96132
<target name="linux" depends="init" description="Download Linux-specific artifact(s)">
133+
<antcall target="linux_x86"></antcall>
134+
<antcall target="linux-x86_64"></antcall>
135+
</target>
136+
137+
<target name="linux_x86" unless="is64bitJDK" description="Download Linux 32-bit-specific artifact(s)">
138+
97139
<echo>#################################################################################</echo>
98140
<echo>## </echo>
99-
<echo>## Downloading: ${helios_jee_linux_gz} </echo>
141+
<echo>## Downloading: ${helios_jee_linux_gz} </echo>
100142
<echo>## </echo>
101-
<echo>## From: ${helios_url} </echo>
143+
<echo>## From: ${helios_url} </echo>
102144
<echo>## </echo>
103145
<echo>#################################################################################</echo>
104146
<mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
105-
<get src="${helios_url}${helios_jee_linux_gz}${protocol}"
147+
<get src="${helios_url}/${helios_jee_linux_gz}${protocol}"
106148
dest="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_linux_gz}"
107149
verbose="true"
108150
ignoreerrors="true"
109151
usetimestamp="true"/>
110152
<echo>#################################################################################</echo>
111153
<echo>## </echo>
112-
<echo>## Unzipping: ${helios_jee_linux_gz} </echo>
154+
<echo>## Unzipping: ${helios_jee_linux_gz} </echo>
113155
<echo>## </echo>
114156
<echo>#################################################################################</echo>
115-
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
157+
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
116158
<mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
117159
<gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_linux_gz}"/>
118160
<untar src="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_linux}"
119161
dest="${LOCAL_M2_REPO}/eclipse"
120162
overwrite="true"/>
121163
</target>
122164

123-
<target name="linux-x86_64" depends="init" description="Download Linux-specific artifact(s)">
165+
<target name="linux-x86_64" if="is64bitJDK" description="Download Linux 64-bit-specific artifact(s)">
124166
<echo>#################################################################################</echo>
125167
<echo>## </echo>
126-
<echo>## Downloading: ${helios_jee_linux-x86_64_gz} </echo>
168+
<echo>## Downloading: ${helios_jee_linux-x86_64_gz} </echo>
127169
<echo>## </echo>
128-
<echo>## From: ${helios_url} </echo>
170+
<echo>## From: ${helios_url} </echo>
129171
<echo>## </echo>
130172
<echo>#################################################################################</echo>
131173
<mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
132-
<get src="${helios_url}${helios_jee_linux-x86_64_gz}${protocol}"
174+
<get src="${helios_url}/${helios_jee_linux-x86_64_gz}${protocol}"
133175
dest="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_linux-x86_64_gz}"
134176
verbose="true"
135177
ignoreerrors="true"
136178
usetimestamp="true"/>
137179
<echo>#################################################################################</echo>
138180
<echo>## </echo>
139-
<echo>## Unzipping: ${helios_jee_linux-x86_64_gz} </echo>
181+
<echo>## Unzipping: ${helios_jee_linux-x86_64_gz} </echo>
140182
<echo>## </echo>
141183
<echo>#################################################################################</echo>
142-
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
184+
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
143185
<mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
144186
<gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_linux-x86_64_gz}"/>
145187
<untar src="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_linux-x86_64}"
146188
dest="${LOCAL_M2_REPO}/eclipse"
147189
overwrite="true"/>
148190
</target>
149191

150-
151192
<target name="macos" depends="init" description="Download Mac-specific artifact(s)">
152193
<echo>#################################################################################</echo>
153194
<echo>## </echo>
154-
<echo>## Downloading: ${helios_jee_macos_gz} </echo>
195+
<echo>## Downloading: ${helios_jee_macos_gz} </echo>
155196
<echo>## </echo>
156-
<echo>## From: ${helios_url} </echo>
197+
<echo>## From: ${helios_url} </echo>
157198
<echo>## </echo>
158199
<echo>#################################################################################</echo>
159200
<mkdir dir="${LOCAL_M2_REPO}/eclipse-downloads"/>
160-
<get src="${helios_url}${helios_jee_macos_gz}${protocol}"
201+
<get src="${helios_url}/${helios_jee_macos_gz}${protocol}"
161202
dest="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_macos_gz}"
162203
verbose="true"
163204
ignoreerrors="true"
164205
usetimestamp="true"/>
165206
<echo>#################################################################################</echo>
166207
<echo>## </echo>
167-
<echo>## Unzipping: ${helios_jee_macos_gz} </echo>
208+
<echo>## Unzipping: ${helios_jee_macos_gz} </echo>
168209
<echo>## </echo>
169210
<echo>#################################################################################</echo>
170-
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
211+
<delete dir="${LOCAL_M2_REPO}/eclipse" quiet="true"/>
171212
<mkdir dir="${LOCAL_M2_REPO}/eclipse"/>
172213
<gunzip src="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_macos_gz}"/>
173214
<untar src="${LOCAL_M2_REPO}/eclipse-downloads/${helios_jee_macos}"

0 commit comments

Comments
 (0)