| <?xml version="1.0"?> |
| <!-- ====================================================================== |
| Properties that must be passed to this script: |
| base.install.dir |
| dependencyTargets |
| local.cache.dir |
| dependency.properties |
| |
| ====================================================================== --> |
| <project |
| name="test" |
| default="get"> |
| |
| <target name="get"> |
| <antcall target="getAndInstall"> |
| <param name="groupId" value="orbitthirdparty" /> |
| </antcall> |
| <antcall target="getAndInstall"> |
| <param |
| name="groupId" |
| value="emf" /> |
| </antcall> |
| <antcall target="getAndInstall"> |
| <param |
| name="groupId" |
| value="gef" /> |
| </antcall> |
| |
| <antcall target="getAndInstall"> |
| <param |
| name="groupId" |
| value="dtp" /> |
| </antcall> |
| <antcall target="getAndInstall"> |
| <param |
| name="groupId" |
| value="eclipse" /> |
| </antcall> |
| |
| <antcall target="getAndInstallWTP" /> |
| |
| </target> |
| |
| <target name="getAndInstall" unless="skipGetAndInstall"> |
| <ant |
| antfile="${dependencyTargets}" |
| target="checkDependency"> |
| <property |
| name="groupId" |
| value="${groupId}" /> |
| </ant> |
| <ant |
| antfile="${dependencyTargets}" |
| target="installDependency"> |
| <property |
| name="groupId" |
| value="${groupId}" /> |
| <property |
| name="install.destination" |
| value="${base.install.dir}" /> |
| </ant> |
| </target> |
| |
| <target name="getAndInstallWTP"> |
| <mkdir dir="${baseLocation}/plugins/_temp_"/> |
| <copy todir="${baseLocation}/plugins/_temp_"> |
| <fileset dir="${baseLocation}/plugins"> |
| <include name="org.eclipse.wst.xml.core*.jar"/> |
| </fileset> |
| <mapper type="merge" to="org.eclipse.wst.xml.core"/> |
| </copy> |
| |
| <available property="skipGetAndInstall" |
| value="true" |
| file="${baseLocation}/plugins/_temp_/org.eclipse.wst.xml.core" |
| type="file" /> |
| <delete dir="${baseLocation}/plugins/_temp_" failonerror="false" /> |
| |
| <antcall target="getAndInstall"> |
| <param |
| name="groupId" |
| value="wtp" /> |
| </antcall> |
| |
| </target> |
| |
| </project> |
| |