blob: 45f6053af89656f6e154d6b2c4f57bcedf46ea08 [file] [log] [blame]
<project name="get dependent zips/tar.gz files for building plugin projects" default="noDefault" basedir=".">
<target name="noDefault">
<fail message="You must target one of the get* targets in this script; there is no default target to run." />
</target>
<target name="init">
<property name="getDependenciesHelper.xml" value="${relengCommonScriptsDir}/getDependenciesHelper.xml" />
</target>
<!-- ===================================================================== -->
<!-- see getDependenciesHelper.xml for referenced targets -->
<!-- ===================================================================== -->
<target name="getDependency" depends="init">
<!-- 1. download -->
<ant antfile="${getDependenciesHelper.xml}" target="getBundle" />
<!-- 2. unpack -->
<ant antfile="${getDependenciesHelper.xml}" target="unpackBundle">
<property name="unpackDest" value="${buildDirectory}/.." />
</ant>
<!-- 3. unpack doc.isv -->
<antcall target="unpackDocISV" />
</target>
<target name="getUpdateSiteDependency" depends="init">
<!-- 1. download -->
<ant antfile="${getDependenciesHelper.xml}" target="getBundle" />
<!-- 2. unpack -->
<ant antfile="${getDependenciesHelper.xml}" target="unpackUpdateSite">
<property name="unpackDest" value="${buildDirectory}/../eclipse/" />
</ant>
</target>
<target name="getTestDependency" description="get some zip or tar.gz and unpack it.">
<antcall target="getDep" />
</target>
<target name="getDep" depends="init">
<!-- 1. download -->
<ant antfile="${getDependenciesHelper.xml}" target="getBundle" />
<!-- 2. unpack in ${unpackDest} dir -->
<ant antfile="${getDependenciesHelper.xml}" target="unpackBundle" />
</target>
<target name="getUpdateSiteTestDependency" depends="init">
<!-- 1. download -->
<ant antfile="${getDependenciesHelper.xml}" target="getBundle" />
<!-- 2. unpack into ${unpackDest} dir -->
<ant antfile="${getDependenciesHelper.xml}" target="unpackUpdateSite" />
</target>
<!-- TODO: [269290] disable this step until we get javadoc working; use javadocEnabled=true to reenable if required -->
<target name="unpackDocISV" if="javadocEnabled">
<!-- 4. for the eclipse case, do this extra step: extract doc.zip so we can create links in the java doc -->
<available property="jarExists" file="${buildDirectory}/plugins/org.eclipse.platform.doc.isv.jar" />
<available property="isUnpacked" file="${buildDirectory}/plugins/org.eclipse.platform.doc.isv/plugin.xml" />
<ant antfile="${getDependenciesHelper.xml}" target="unpackJar">
<property name="theJar" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv.jar" />
<property name="theDir" value="${buildDirectory}/plugins/org.eclipse.platform.doc.isv" />
</ant>
</tar