new scripts for building and testing the OTDT on build.eclipse.org.
diff --git a/releng/build-scripts/build/OTDT-Build/customTargets.xml b/releng/build-scripts/build/OTDT-Build/customTargets.xml
new file mode 100644
index 0000000..252b433
--- /dev/null
+++ b/releng/build-scripts/build/OTDT-Build/customTargets.xml
@@ -0,0 +1,185 @@
+<!--
+ Copyright (c) 2010 Stephan Herrmann and others.
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Eclipse Public License v1.0
+ which accompanies this distribution, and is available at
+ http://www.eclipse.org/legal/epl-v10.html
+
+ Contributors:
+     Stephan Herrmann - initial API and implementation
+-->
+<project name="Build specific targets and properties" default="noDefault" >
+
+
+	<condition property="isNightlyBuild">
+		<equals arg1="${buildType}" arg2="N"/>
+	</condition>
+	<property file="${buildDirectory}/version.properties"/>
+	<property name="buildLabel" value="${buildType}-${featureVersion}"/>
+	<property name="buildId" value="${featureVersion}"/>	
+	
+	<!-- ===================================================================== -->
+	<!-- Run a given ${target} on all elements being built -->
+	<!-- Add on <ant> task for each top level element being built. -->
+	<!-- ===================================================================== -->
+	<target name="allElements">
+
+		<!-- org.eclipse.objectteams.otdt.core.patch is included from otdt -->
+
+		<ant antfile="${genericTargets}" target="${target}" >
+			<property name="type" value="feature" />
+			<property name="id" value="org.eclipse.objectteams.otequinox" />
+		</ant>
+
+		<ant antfile="${genericTargets}" target="${target}" >
+			<property name="type" value="feature" />
+			<property name="id" value="org.eclipse.objectteams.otdt" />
+		</ant>
+		
+	  	<condition property="really.run.tests">
+			<istrue value="${do.run.tests}"/> 
+		</condition>
+        
+		<antcall target="testElements" />
+
+	</target>
+
+    <target name="testElements" if="really.run.tests">
+        <ant antfile="${genericTargets}" target="${target}" >
+            <property name="type" value="feature" />
+            <property name="id" value="org.eclipse.objectteams.otdt-tests" />
+        </ant>
+    </target>
+
+	<!-- ===================================================================== -->
+	<!-- Targets to assemble the built elements for particular configurations  -->
+	<!-- These generally call the generated assemble scripts (named in -->
+	<!-- ${assembleScriptName}) but may also add pre and post processing -->
+	<!-- Add one target for each root element and each configuration -->
+	<!-- ===================================================================== -->
+	
+	<!-- org.eclipse.objectteams.otdt.core.patch is included from otdt -->
+
+	<target name="assemble.org.eclipse.objectteams.otequinox">
+		<echo message="Not assembling org.eclipse.objectteams.otequinox, will create update.jars instead (later during the build)" />
+	</target>
+	<target name="assemble.org.eclipse.objectteams.otequinox.linux.gtk.ppc64">
+		<echo message="Not assembling org.eclipse.objectteams.otequinox.linux.gtk.ppc64, will create update.jars instead (later during the build)" />
+	</target>
+	<target name="assemble.org.eclipse.objectteams.otdt">
+		<echo message="Not assembling org.eclipse.objectteams.otdt, will create update.jars instead (later during the build)" />
+	</target>
+	<target name="assemble.org.eclipse.objectteams.otdt.linux.gtk.ppc64">
+		<echo message="Not assembling org.eclipse.objectteams.otdt.linux.gtk.ppc64, will create update.jars instead (later during the build)" />
+	</target>
+
+	<target name="assemble.org.eclipse.objectteams.otdt-tests">
+		<ant antfile="${assembleScriptName}" dir="${buildDirectory}">
+			<property name="zipargs" value="" />
+		</ant>
+	</target>
+	<target name="assemble.org.eclipse.objectteams.otdt-tests.linux.gtk.ppc64">
+		<ant antfile="${assembleScriptName}" dir="${buildDirectory}">
+			<property name="zipargs" value="" />
+		</ant>
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Check out map files from correct repository -->
+	<!-- Replace values for cvsRoot, package and mapVersionTag as desired. -->
+	<!-- ===================================================================== -->
+	<target name="getMapFiles">
+		<delete dir="${buildDirectory}/maps"/>
+		<mkdir dir="${buildDirectory}/maps"/>
+		<property name="svn.map.url" value="${svn.repository.url}/${mapVersionTag}/${pathToMapFile}/${mapFileName}" />
+
+		<svn command="export" url="${svn.map.url}" dest="${buildDirectory}/maps/${mapFileName}" />
+	</target>
+	
+	<!-- ===================================================================== -->
+	<!-- Steps to do before setup -->
+	<!-- ===================================================================== -->
+	<target name="preSetup">
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do after setup but before starting the build proper -->
+	<!-- ===================================================================== -->
+	<target name="postSetup">
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do before fetching the build elements -->
+	<!-- ===================================================================== -->
+	<target name="preFetch">
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do after fetching the build elements -->
+	<!-- ===================================================================== -->
+	<target name="postFetch">
+		<echo message="Inserting OTRE into source tree"/>
+		<copy file="${otre.lib}/otre.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.runtime/lib" />
+		<copy file="${otre.lib}/otre_min.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.otdt/lib" />
+		<copy file="${otre.lib}/otre_agent.jar" todir="${buildDirectory}/plugins/org.eclipse.objectteams.otdt/lib" />
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do before generating the build scripts. -->
+	<!-- ===================================================================== -->
+	<target name="preGenerate">
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do after generating the build scripts. -->
+	<!-- ===================================================================== -->
+	<target name="postGenerate">
+	</target>
+
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do before running the build.xmls for the elements being built. -->
+	<!-- ===================================================================== -->
+	<target name="preProcess">
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do after running the build.xmls for the elements being built. -->
+	<!-- ===================================================================== -->
+	<target name="postProcess">
+	</target>
+
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do before running assemble. -->
+	<!-- ===================================================================== -->
+	<target name="preAssemble">
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do after  running assemble. -->
+	<!-- ===================================================================== -->
+	<target name="postAssemble">
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do after the build is done. -->
+	<!-- ===================================================================== -->
+	<target name="postBuild">
+	</target>
+
+	<!-- ===================================================================== -->
+	<!-- Steps to do to publish the build results -->
+	<!-- ===================================================================== -->
+	<target name="publish">
+	</target>
+
+
+	<!-- ===================================================================== -->
+	<!-- Default target                                                        -->
+	<!-- ===================================================================== -->
+	<target name="noDefault">
+		<echo message="You must specify a target when invoking this file" />
+	</target>
+
+</project>