blob: 45f6053af89656f6e154d6b2c4f57bcedf46ea08 [file] [log] [blame]
mparkeref5bbe92010-03-09 01:02:14 +00001<project name="get dependent zips/tar.gz files for building plugin projects" default="noDefault" basedir=".">
2
3 <target name="noDefault">
4 <fail message="You must target one of the get* targets in this script; there is no default target to run." />
5 </target>
6
7 <target name="init">
8 <property name="getDependenciesHelper.xml" value="${relengCommonScriptsDir}/getDependenciesHelper.xml" />
9 </target>
10
11 <!-- ===================================================================== -->
12 <!-- see getDependenciesHelper.xml for referenced targets -->
13 <!-- ===================================================================== -->
14
15 <target name="getDependency" depends="init">
16 <!-- 1. download -->
17 <ant antfile="${getDependenciesHelper.xml}" target="getBundle" />
18 <!-- 2. unpack -->
19 <ant antfile="${getDependenciesHelper.xml}" target="unpackBundle">
20 <property name="unpackDest" value="${buildDirectory}/.." />
21 </ant>
22 <!-- 3. unpack doc.isv -->
23 <antcall target="unpackDocISV" />
24 </target>
25
26 <target name="getUpdateSiteDependency" depends="init">
27 <!-- 1. download -->
28 <ant antfile="${getDependenciesHelper.xml}" target="getBundle" />
29 <!-- 2. unpack -->
30 <ant antfile="${getDependenciesHelper.xml}" target="unpackUpdateSite">
31 <property name="unpackDest" value="${buildDirectory}/../eclipse/" />
32 </ant>
33 </target>
34
35 <target name="getTestDependency" description="get some zip or tar.gz and unpack it.">
36 <antcall target="getDep" />
37 </target>
38
39 <target name="getDep" depends="init">
40 <!-- 1. download -->
41 <ant antfile="${getDependenciesHelper.xml}" target="getBundle" />
42 <!-- 2. unpack in ${unpackDest} dir -->
43 <ant antfile="${getDependenciesHelper.xml}" target="unpackBundle" />
44 </target>
45
46 <target name="getUpdateSiteTestDependency" depends="init">
47 <!-- 1. download -->
48 <ant antfile="${getDependenciesHelper.xml}" target="getBundle" />
49 <!-- 2. unpack into ${unpackDest} dir -->
50 <ant antfile="${getDependenciesHelper.xml}" target="unpackUpdateSite" />
51 </target>
52
53 <!-- TODO: [269290] disable this step until we get javadoc working; use javadocEnabled=true to reenable if required -->
54 <target name="unpackDocISV" if="javadocEnabled">
55 <!-- 4. for the eclipse case, do this extra step: extract doc.zip so we can create links in the java doc -->
56 <available property="jarExists" file="${buildDirectory}/plugins/org.eclipse.platform.doc.isv.jar" />
57 <available property="isUnpacked" file="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/plugin.xml" />
58 <ant antfile="${getDependenciesHelper.xml}" target="unpackJar">
59 <property name="theJar" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv.jar" />
60 <property name="theDir" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv" />
61 </ant>
62 </tar