]>
git.argeo.org Git - gpl/argeo-slc.git/blob - maven/plugins/maven-argeo-pde-plugin/src/main/scripts/download.build.xml
1 <project default=
"eclipseBuildDir">
3 <target name=
"eclipseBuildDir">
4 <fail message=
"Property eclipseBuildDir has to be set"
5 unless=
"eclipseBuildDir" />
7 <property name=
"downloadsDir" location=
"${eclipseBuildDir}/download" />
8 <mkdir dir=
"${downloadsDir}" />
11 <doTar target=
"eclipse"
12 file=
"eclipse-SDK-3.3.2-linux-gtk.tar.gz"
13 url=
"http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/eclipse/downloads/drops/R-3.3.2-200802211800/eclipse-SDK-3.3.2-linux-gtk.tar.gz" />
14 <doZip target=
"eclipse"
15 file=
"eclipse-RCP-3.3.2-delta-pack.zip"
16 url=
"http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/eclipse/downloads/drops/R-3.3.2-200802211800/eclipse-RCP-3.3.2-delta-pack.zip" />
17 <doZip target=
"eclipse" file=
"" url=
"" />
20 <doZip target=
"pluginPath/eclipse-WTP-2.0.2"
21 file=
"wtp-R-2.0.2-20080223205547.zip"
22 url=
"http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/webtools/downloads/drops/R2.0/R-2.0.2-20080223205547/wtp-R-2.0.2-20080223205547.zip" />
23 <doZip target=
"pluginPath/eclipse-WTP-2.0.2"
24 file=
"emf-sdo-xsd-SDK-2.3.2.zip"
25 url=
"http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/modeling/emf/emf/downloads/drops/2.3.2/R200802051830/emf-sdo-xsd-SDK-2.3.2.zip" />
26 <doZip target=
"pluginPath/eclipse-WTP-2.0.2"
27 file=
"GEF-SDK-3.3.2.zip"
28 url=
"http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/tools/gef/downloads/drops/3.3.2/R200802211602/GEF-SDK-3.3.2.zip" />
30 <doZip target=
"pluginPath/Spring-IDE-2.0.5"
31 file=
"spring-ide_2.0.5_v200805211800.zip"
32 url=
"http://s3browse.com/getObject/dist.springframework.org/release/IDE/spring-ide_2.0.5_v200805211800.zip" />
36 <macrodef name=
"doZip">
37 <attribute name=
"url" />
38 <attribute name=
"target" />
39 <attribute name=
"file" default=
"download.zip" />
40 <attribute name=
"downloadLocation"
41 default=
"${downloadsDir}/@{target}" />
42 <attribute name=
"downloadFile" default=
"@{downloadLocation}/@{file}" />
44 <mkdir dir=
"@{downloadLocation}" />
45 <retrieve url=
"@{url}" downloadfile=
"@{downloadFile}" />
46 <mkdir dir=
"${eclipseBuildDir}/@{target}" />
47 <unzip dest=
"${eclipseBuildDir}/@{target}" src=
"@{downloadFile}" />
51 <macrodef name=
"doTar">
52 <attribute name=
"url" />
53 <attribute name=
"target" />
54 <attribute name=
"file" default=
"download.zip" />
55 <attribute name=
"downloadLocation"
56 default=
"${downloadsDir}/@{target}" />
57 <attribute name=
"downloadFile" default=
"@{downloadLocation}/@{file}" />
59 <mkdir dir=
"@{downloadLocation}" />
60 <retrieve url=
"@{url}" downloadfile=
"@{downloadFile}" />
61 <mkdir dir=
"${eclipseBuildDir}/@{target}" />
62 <untar dest=
"${eclipseBuildDir}/@{target}"
68 <macrodef name=
"retrieve">
69 <attribute name=
"url" />
70 <attribute name=
"downloadFile" />
72 <echo message=
"Download from URL @{url} to @{downloadFile}" />
74 dest=
"@{downloadFile}"
76 usetimestamp=
"true" />