HuiSheng Xu wrote:
But the 'get.eclipse' target always get a html whose size is only 31KB. Is there anybody know how to download eclipse by ant directly? Any reply will be apprieciated.
That one's because the download URL points to the mirror selection page on eclipse.org http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/eclipse-java-galileo-SR2-linux-gtk.tar.gz (for example).
On that mirror selection page, at the bottom, we see a "Main download site" link. So maybe the install script can be changed to:
Index: build.xml
===================================================================
--- build.xml (revision 6531)
+++ build.xml (working copy)
@@ -114,7 +114,7 @@
<os name="Linux" arch="x86_64" />
</condition>
<property name="eclipse.distro.url"
- value="http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/${eclipse.filename}" />
+ value=http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/galileo/SR2/${eclipse.filename}&url=http://download.eclipse.org/technology/epp/downloads/release/galileo/SR2/${eclipse.filename}&mirror_id=1 />
<property name="eclipse.distro.dir" value="downloads" />
<property name="eclipse.parent.dir" value="${jbpm.home}" />
<property name="eclipse.distro.path" value="${eclipse.distro.dir}/${eclipse.filename}" />