carbideui/CarbideUIBuildScript/BuildScript/com.nokia.tools.s60.ide.releng.builder/commonTargets.xml
changeset 0 a44900f0f001
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/carbideui/CarbideUIBuildScript/BuildScript/com.nokia.tools.s60.ide.releng.builder/commonTargets.xml	Wed Jul 07 16:18:07 2010 +0530
@@ -0,0 +1,39 @@
+<?xml version="1.0"?>
+<project name="project">
+        <property name="packageDir" value="${buildRoot}/../../Downloads" />
+
+        <target name="extractBuilds">
+                <available file="${buildDirectory}/plugins/org.eclipse.platform/plugin.xml" property="eclipseExists" />
+                <antcall target="extractEclipse" />
+                <available file="${buildDirectory}/plugins/org.eclipse.emf/plugin.xml" property="emfExists" />
+                <antcall target="extractEmf" />
+                <available file="${buildDirectory}/plugins/org.eclipse.gef/plugin.xml" property="gefExists" />
+                <antcall target="extractGef" />
+        </target>
+
+        <target name="extract">
+                <exec dir="${buildDirectory}/.." executable="unzip">
+                        <arg line="-o -qq ${buildRoot}/../../Downloads/${zipname}" />
+                </exec>
+
+                <!-- <stripVersions directory="${buildDirectory}/plugins" /> -->
+        </target>
+
+        <target name="extractEclipse">
+                <antcall target="extract">
+                        <param name="zipname" value="eclipse-platform.zip" />
+                </antcall>
+        </target>
+
+        <target name="extractGef" unless="gefExists">
+                <antcall target="extract">
+                        <param name="zipname" value="gef.zip" />
+                </antcall>
+        </target>
+
+        <target name="extractEmf" unless="emfExists">
+                <antcall target="extract">
+                        <param name="zipname" value="emf.zip" />
+                </antcall>
+        </target>
+</project>
\ No newline at end of file