312patches build
diff --git a/releng.control/cc_config.xml b/releng.control/cc_config.xml
index 83d0e86..fb738ef 100644
--- a/releng.control/cc_config.xml
+++ b/releng.control/cc_config.xml
@@ -681,7 +681,7 @@
                     value="R3_1_2_patches"/>
                 <property
                     name="build.distribution"
-                    value="patches3"/>
+                    value="patches312"/>
             </ant>
         </schedule>
         <publishers>
diff --git a/releng.wtpbuilder/components/wtp-patches312-tests/build.properties b/releng.wtpbuilder/components/wtp-patches312-tests/build.properties
new file mode 100644
index 0000000..76c3e37
--- /dev/null
+++ b/releng.wtpbuilder/components/wtp-patches312-tests/build.properties
@@ -0,0 +1,37 @@
+###############################################################################
+# Copyright (c) 2003, 2010 IBM Corporation 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:
+#     IBM Corporation - initial API and implementation
+###############################################################################
+
+# This property file is used automatically by the PDE build process
+
+runPackager=true
+
+# This is a subdirectory of $buildDirectory
+# Set collectingFolder and archivePrefix to . if you want to create archives without
+# trailing eclipse in the paths of the included files
+collectingFolder=eclipse
+logExtension=.xml
+# The prefix that will be used in the generated archive.
+# Does not make sense to use a different archivePrefix than collectingFolder, 
+# because zip wouldn't find any files to include into the target zip otherwise
+archivePrefix=eclipse
+
+# Whether or not to include debug info in the output jars
+javacDebugInfo=true 
+
+# Whether or not to fail the build if there are compiler errors
+javacFailOnError=false
+
+##################################################
+# Asks the compiler for verbose output.  This should be set to true in order for *.bin.log files to be generated when
+# using the JDT Compiler Adapter to compile.
+javacVerbose=true
+
+sign=false
\ No newline at end of file
diff --git a/releng.wtpbuilder/components/wtp-patches312-tests/customTargets.xml b/releng.wtpbuilder/components/wtp-patches312-tests/customTargets.xml
new file mode 100644
index 0000000..825083e
--- /dev/null
+++ b/releng.wtpbuilder/components/wtp-patches312-tests/customTargets.xml
@@ -0,0 +1,308 @@
+<project
+    name="PDECustomTargets"
+    default="noDefault"
+    basedir=".">
+    <property
+        name="patchFeature"
+        value="org.eclipse.wtp.patch.tests.assembly.feature"/>
+    <!--
+        = = = standard properties pattern = = = Note to be
+        cross-platform, "environment variables" are only appropriate for
+        some variables, e.g. ones we set, since properties are case
+        sensitive, even if the environment variables on your operating
+        system are not, e.g. it will be ${env.Path} not ${env.PATH} on
+        Windows
+    -->
+    <property
+        environment="env"/>
+    <!--
+        Let users override standard properties, if desired. If
+        directory, file, or some properties do not exist, then standard
+        properties will be used.
+    -->
+    <property
+        file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/>
+
+    <!-- let this project specify properties, if not already set -->
+    <property
+        file="build.properties"/>
+    <fail
+        message="dependency.properties must be specified by distribution script"
+        unless="dependency.properties"/>
+    <fail
+        unless="buildDirectory"
+        message="buildDirectory must be set"/>
+    <echo
+        message="buildDirectory: ${buildDirectory}"/>
+    <!--
+        Run a given ${target} on all elements being built Add on <ant>
+        task for each top level element being built.
+    -->
+    <target
+        name="allElements">
+        <echo
+            level="info"
+            message="Target:${target} "/>
+        <echo
+            level="debug"
+            message="basedir: ${basedir}"/>
+        <echo
+            level="info"
+            message="component: ${component}"/>
+        <echo
+            level="debug"
+            message="buildDirectory: ${buildDirectory}"/>
+        <echo
+            level="debug"
+            message="baseLocation: ${baseLocation}"/>
+        <echo
+            level="debug"
+            message="patchFeature: ${patchFeature}"/>
+        <echo
+            message="compilerArg: ${compilerArg}"/>
+        <echo
+            message="individualSourceBundles: ${individualSourceBundles}"/>
+        <ant
+            antfile="${genericTargets}"
+            target="${target}">
+            <property
+                name="type"
+                value="feature"/>
+            <property
+                name="id"
+                value="${patchFeature}"/>
+        </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
+    -->
+    <target
+        name="assemble.org.eclipse.wtp.patch.tests.assembly.feature">
+        <property
+            name="archiveName"
+            value="wtp-patches-tests-${buildLabel}.zip"/>
+        <ant
+            antfile="${assembleScriptName}"
+            dir="${buildDirectory}"/>
+    </target>
+    <target
+        name="prePackage"/>
+    <target
+        name="postPackage">
+        <property
+            name="archiveName"
+            value="wtp-patches-tests-${buildLabel}.zip"/>
+        <ant
+            antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
+            target="unpackUpdateJarsAndCreateZippedPackages">
+            <property
+                name="buildDirectory"
+                value="${buildDirectory}"/>
+            <property
+                name="buildLabel"
+                value="${buildLabel}"/>
+            <property
+                name="archiveName"
+                value="${archiveName}"/>
+        </ant>
+    </target>
+
+
+    <!--
+        Check out map files from repository
+        -->
+    <target
+        name="getMapFiles">
+
+        <!-- for now, get all, at once. May componetize later. -->
+        <ant
+            antfile="${wtp.builder.home}/scripts/build/maptasks.xml"
+            target="fetchAllMaps"/>
+    </target>
+
+
+    <!-- 
+        Steps to do before setup
+    -->
+    <target
+        name="preSetup"></target>
+    <!--
+        Steps to do after setup but before starting the build proper
+    -->
+    <target
+        name="postSetup">
+        <dirname
+            file="${ant.file}"
+            property="component.dir"/>
+        <echo
+            level="debug"
+            message="ant.file: ${ant.file}"/>
+        <echo
+            level="debug"
+            message="component.dir: ${component.dir}"/>
+
+        <!-- Get the dependencies -->
+        <antcall
+            target="getDependencies"/>
+    </target>
+    <!--
+        =====================================================================
+    -->
+    <!-- Get the dependencies based on releng maps -->
+    <!--
+        =====================================================================
+    -->
+    <target
+        name="getDependencies">
+        <ant
+            antfile="${component.dir}/dependency.xml"
+            target="get">
+            <property
+                name="base.install.dir"
+                value="${buildRoot}"/>
+        </ant>
+    </target>
+
+    <!--
+      Steps to do before fetching the build elements
+    -->
+    <target
+        name="preFetch"></target>
+
+    <!-- 
+      Steps to do after fetching the build elements
+    -->
+    <target
+        name="postFetch"></target>
+
+    <!--
+      Steps to do before generating the build scripts.
+    -->
+    <target
+        name="preGenerate"></target>
+
+    <!-- 
+      Steps to do after generating the build scripts.
+     -->
+    <target
+        name="postGenerate">
+        <echo
+            message="buildDirectory: ${buildDirectory}"/>
+        <customizeAccessRules
+            bundleDirectory="${buildDirectory}/plugins"
+            defaultRules="+org/eclipse/wst/**/*, +org/eclipse/jst/**/*"/>
+    </target>
+    <!--
+        Steps to do before running the build.xmls for the elements being
+        built.
+    -->
+    <target
+        name="preProcess">
+        <replace
+            dir="${buildDirectory}/plugins"
+            value="${timestamp}"
+            token="@build@">
+            <include
+                name="**/about.mappings"/>
+        </replace>
+    </target>
+    <!--
+        Steps to do after running the build.xmls for the elements being
+        built.
+    -->
+    <target
+        name="postProcess">
+        <condition
+            property="logsAvailable">
+            <istrue
+                value="${javacVerbose}"/>
+        </condition>
+        <antcall
+            target="gatherLogs"/>
+    </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 test the build results
+    -->
+    <target
+        name="test"></target>
+
+    <!--
+      Steps to do to publish the build results
+    -->
+    <target
+        name="publish"></target>
+
+    <!--
+      Helper targets
+    -->
+    <target
+        name="gatherLogs"
+        if="logsAvailable">
+        <mkdir
+            dir="${buildDirectory}/${buildLabel}/testcompilelogs"/>
+        <echo
+            level="debug"
+            message="logExtension: ${logExtension}"/>
+        <antcall
+            target="allElements">
+            <param
+                name="target"
+                value="gatherLogs"/>
+            <param
+                name="logExtension"
+                value="${logExtension}"/>
+        </antcall>
+        <unzip
+            dest="${buildDirectory}/${buildLabel}/testcompilelogs"
+            overwrite="true">
+            <fileset
+                dir="${buildDirectory}/features/${patchFeature}">
+                <include
+                    name="**/*.log.zip"/>
+            </fileset>
+        </unzip>
+    </target>
+    <target
+        name="clean"
+        unless="noclean">
+        <antcall
+            target="allElements">
+            <param
+                name="target"
+                value="cleanElement"/>
+        </antcall>
+    </target>
+
+    <!--
+      Default target 
+    -->
+    <target
+        name="noDefault">
+        <echo
+            level="error"
+            message="You must specify a target when invoking this file"/>
+    </target>
+</project>
\ No newline at end of file
diff --git a/releng.wtpbuilder/components/wtp-patches312-tests/dependency.xml b/releng.wtpbuilder/components/wtp-patches312-tests/dependency.xml
new file mode 100644
index 0000000..fb489c8
--- /dev/null
+++ b/releng.wtpbuilder/components/wtp-patches312-tests/dependency.xml
@@ -0,0 +1,119 @@
+<?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">
+
+        <!--
+            read in this properties, just so we can make sure our
+            requested pre-reqs are defined
+        -->
+        <property
+            file="${dependency.properties}"/>
+
+        <mkdir
+            dir="${buildDirectory}/maps/${env.RELENG}/maps"/>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="orbitthirdpartymap"/>
+            <param
+                name="base.install.dir"
+                value="${buildDirectory}/maps/${env.RELENG}/maps/"/>
+        </antcall>
+                <property
+            name="pde.builder.path"
+            value="${env.BASE_BUILDERS}/${eclipse.builder.version}/${eclipse.builder}"/>
+        <echo
+            level="debug"
+            message="pde.builder.path: ${pde.builder.path}"/>
+        <echo
+            level="debug"
+            message="eclipse.builder.version: ${eclipse.builder.version}"/>
+        <echo
+            level="debug"
+            message="eclipse.builder: ${eclipse.builder}"/>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="emf"/>
+        </antcall>
+                <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="emfxsd"/>
+        </antcall>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="gef"/>
+        </antcall>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="eclipse"/>
+        </antcall>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="eclipseTestFramework"/>
+        </antcall>
+                <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="dita"/>
+        </antcall>
+        <!--
+            for patch builds, also get a whole released version to
+            compile against
+        -->
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="wtp"/>
+        </antcall>
+        <!-- including tests -->
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="wtp-test"/>
+        </antcall>
+    </target>
+    <target
+        name="getAndInstall"
+        if="${groupId}.url">
+        <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>
+</project>
\ No newline at end of file
diff --git a/releng.wtpbuilder/components/wtp-patches312/build.properties b/releng.wtpbuilder/components/wtp-patches312/build.properties
new file mode 100644
index 0000000..80f4a01
--- /dev/null
+++ b/releng.wtpbuilder/components/wtp-patches312/build.properties
@@ -0,0 +1,37 @@
+###############################################################################
+# Copyright (c) 2003, 2010 IBM Corporation 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:
+#     IBM Corporation - initial API and implementation
+###############################################################################
+
+# This property file is used automatically by the PDE build process
+
+runPackager=true
+
+# This is a subdirectory of $buildDirectory
+# Set collectingFolder and archivePrefix to . if you want to create archives without
+# trailing eclipse in the paths of the included files
+collectingFolder=eclipse
+logExtension=.xml
+# The prefix that will be used in the generated archive.
+# Does not make sense to use a different archivePrefix than collectingFolder, 
+# because zip wouldn't find any files to include into the target zip otherwise
+archivePrefix=eclipse
+
+# Whether or not to include debug info in the output jars
+javacDebugInfo=true 
+
+# Whether or not to fail the build if there are compiler errors
+javacFailOnError=false
+
+##################################################
+# Asks the compiler for verbose output.  This should be set to true in order for *.bin.log files to be generated when
+# using the JDT Compiler Adapter to compile.
+javacVerbose=true
+
+sign=true
diff --git a/releng.wtpbuilder/components/wtp-patches312/customTargets.xml b/releng.wtpbuilder/components/wtp-patches312/customTargets.xml
new file mode 100644
index 0000000..f0e1c6b
--- /dev/null
+++ b/releng.wtpbuilder/components/wtp-patches312/customTargets.xml
@@ -0,0 +1,379 @@
+<project
+    name="PDECustomTargets"
+    default="noDefault"
+    basedir=".">
+    <property
+        name="buildfeature"
+        value="org.eclipse.wtp.patch.assembly.feature"/>
+    <!--
+        = = = standard properties pattern = = = Note to be
+        cross-platform, "environment variables" are only appropriate for
+        some variables, e.g. ones we set, since properties are case
+        sensitive, even if the environment variables on your operating
+        system are not, e.g. it will be ${env.Path} not ${env.PATH} on
+        Windows
+    -->
+    <property
+        environment="env"/>
+    <!--
+        Let users override standard properties, if desired. If
+        directory, file, or some properties do not exist, then standard
+        properties will be used.
+    -->
+    <property
+        file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/>
+
+    <!-- let this project specify properties, if not already set -->
+    <property
+        file="build.properties"/>
+    <fail
+        message="dependency.properties must be specified by distribution script"
+        unless="dependency.properties"/>
+    <fail
+        unless="buildDirectory"
+        message="buildDirectory must be set"/>
+    <echo
+        message="buildDirectory: ${buildDirectory}"/>
+    <!--
+        Run a given ${target} on all elements being built Add on <ant>
+        task for each top level element being built.
+    -->
+    <target
+        name="allElements">
+        <echo
+            level="info"
+            message="Target:${target} "/>
+        <echo
+            level="debug"
+            message="basedir: ${basedir}"/>
+        <echo
+            level="info"
+            message="component: ${component}"/>
+        <echo
+            level="debug"
+            message="buildDirectory: ${buildDirectory}"/>
+        <echo
+            level="debug"
+            message="baseLocation: ${baseLocation}"/>
+        <echo
+            level="debug"
+            message="patchFeature: ${patchFeature}"/>
+        <echo
+            level="debug"
+            message="generic target: ${genericTargets}"/>
+        <echo
+            message="compilerArg: ${compilerArg}"/>
+        <echo
+            message="individualSourceBundles: ${individualSourceBundles}"/>
+        <ant
+            antfile="${genericTargets}"
+            target="${target}">
+            <property
+                name="type"
+                value="feature"/>
+            <property
+                name="id"
+                value="${buildfeature}"/>
+        </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
+    -->
+    <target
+        name="assemble.org.eclipse.wtp.patch.assembly.feature">
+        <property
+            name="archiveName"
+            value="wtp-${buildLabel}.zip"/>
+        <ant
+            antfile="${assembleScriptName}"
+            dir="${buildDirectory}"/>
+    </target>
+    <target
+        name="prePackage"/>
+    <target
+        name="postPackage">
+        <property
+            name="archiveName"
+            value="wtp-${buildLabel}.zip"/>
+        <ant
+            antfile="${wtp.builder.home}/scripts/build/buildutilities.xml"
+            target="unpackUpdateJarsAndCreateZippedPackages">
+            <property
+                name="buildDirectory"
+                value="${buildDirectory}"/>
+            <property
+                name="buildLabel"
+                value="${buildLabel}"/>
+            <property
+                name="archiveName"
+                value="${archiveName}"/>
+        </ant>
+    </target>
+
+
+    <!-- 
+        Check out map files from repository
+    -->
+    <target
+        name="getMapFiles">
+
+        <!-- for now, get all, at once. May componetize later. -->
+        <ant
+            antfile="${wtp.builder.home}/scripts/build/maptasks.xml"
+            target="fetchAllMaps"/>
+    </target>
+
+
+    <!-- 
+        Steps to do before setup
+    -->
+    <target
+        name="preSetup"></target>
+    <!--
+        Steps to do after setup but before starting the build proper
+    -->
+    <target
+        name="postSetup">
+        <dirname
+            file="${ant.file}"
+            property="component.dir"/>
+        <echo
+            level="debug"
+            message="ant.file: ${ant.file}"/>
+        <echo
+            level="debug"
+            message="component.dir: ${component.dir}"/>
+
+        <!-- Get the dependencies -->
+        <antcall
+            target="getDependencies"/>
+    </target>
+    <!--
+        =====================================================================
+    -->
+    <!-- Get the dependencies based on releng maps -->
+    <!--
+        =====================================================================
+    -->
+    <target
+        name="getDependencies">
+        <ant
+            antfile="${component.dir}/dependency.xml"
+            target="get">
+            <property
+                name="base.install.dir"
+                value="${buildRoot}"/>
+        </ant>
+    </target>
+
+    <!--
+      Steps to do before fetching the build elements
+    -->
+    <target
+        name="preFetch"></target>
+
+    <!-- 
+      Steps to do after fetching the build elements
+    -->
+    <target
+        name="postFetch"></target>
+
+    <!--
+      Steps to do before generating the build scripts.
+    -->
+    <target
+        name="preGenerate"></target>
+
+    <!-- 
+      Steps to do after generating the build scripts.
+     -->
+    <target
+        name="postGenerate">
+        <echo
+            message="buildDirectory: ${buildDirectory}"/>
+        <customizeAccessRules
+            bundleDirectory="${buildDirectory}/plugins"
+            defaultRules="+org/eclipse/wst/**/*, +org/eclipse/jst/**/*"/>
+    </target>
+    <!--
+        Steps to do before running the build.xmls for the elements being
+        built.
+    -->
+    <target
+        name="preProcess">
+        <replace
+            dir="${buildDirectory}/plugins"
+            value="${timestamp}"
+            token="@build@">
+            <include
+                name="**/about.mappings"/>
+        </replace>
+    </target>
+    <!--
+        Steps to do after running the build.xmls for the elements being
+        built.
+    -->
+    <target
+        name="postProcess">
+        <condition
+            property="logsAvailable">
+            <istrue
+                value="${javacVerbose}"/>
+        </condition>
+        <antcall
+            target="gatherLogs"/>
+    </target>
+    <!--
+        Steps to do before running assemble. Note: in version 2.0 (and
+        previous) we need to build the explorer war file by invoking
+        script. In 3.0 forward, we do not, so this simple existence
+        check allows us to use the same script for both streams
+    -->
+    <property
+        name="buildwarfilename"
+        value="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer/build-war.xml"/>
+    <target
+        name="preAssemble"
+        depends="buildwar">
+    </target>
+    <target
+        name="checkForBuildFile">
+        <condition
+            property="buildFileExists">
+            <available
+                file="${buildwarfilename}"/>
+        </condition>
+    </target>
+    <target
+        name="buildwar"
+        depends="checkForBuildFile"
+        if="buildFileExists">
+        <ant
+            antfile="${buildwarfilename}">
+            <property
+                name="baseLocation"
+                value="${baseLocation}"/>
+            <property
+                name="basedir"
+                value="${buildDirectory}/plugins/org.eclipse.wst.ws.explorer"/>
+            <property
+                name="buildDirectory"
+                value="${buildDirectory}"/>
+        </ant>
+    </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 test the build results
+    -->
+    <target
+        name="test"></target>
+
+    <!--
+      Steps to do to publish the build results
+    -->
+    <target
+        name="publish"></target>
+
+    <!--
+      Helper targets
+    -->
+    <target
+        name="gatherLogs"
+        if="logsAvailable">
+        <mkdir
+            dir="${buildDirectory}/${buildLabel}/compilelogs"/>
+        <echo
+            level="debug"
+            message="logExtension: ${logExtension}"/>
+        <antcall
+            target="allElements">
+            <param
+                name="target"
+                value="gatherLogs"/>
+            <param
+                name="logExtension"
+                value="${logExtension}"/>
+        </antcall>
+        <unzip
+            dest="${buildDirectory}/${buildLabel}/compilelogs"
+            overwrite="true">
+            <fileset
+                dir="${buildDirectory}/features/${buildfeature}">
+                <include
+                    name="**/*.log.zip"/>
+            </fileset>
+        </unzip>
+        <!--
+            TODO: it is unclear if the above "gather" and unzip do
+            anything constructive. I think not and should be removed
+            (after experimental run, of course.
+        -->
+        <!--
+            workaround: see
+            https://bugs.eclipse.org/bugs/show_bug.cgi?id=156043 and
+            https://bugs.eclipse.org/bugs/show_bug.cgi?id=172361 and
+            https://bugs.eclipse.org/bugs/show_bug.cgi?id=294070
+        -->
+        <copy
+            todir="${buildDirectory}/${buildLabel}/compilelogs/plugins"
+            overwrite="true">
+            <!--
+                we want all @dot.xml files, but assumes a certain
+                structure, to include directory for name of plugin
+            -->
+            <fileset
+                dir="${buildDirectory}/features/">
+                <include
+                    name="**/feature.temp.folder/"/>
+                <exclude
+                    name="**/*tests*feature*/feature.temp.folder/"/>
+            </fileset>
+            <compositemapper>
+                <mapper
+                    type="regexp"
+                    from="(.*)/plugins/(.*)/@dot.xml"
+                    to="/\2/@dot.xml"/>
+                <mapper
+                    type="regexp"
+                    from="(.*)/plugins/(.*)/(.*)bin.xml"
+                    to="/\2/\3bin.xml"/>
+            </compositemapper>
+        </copy>
+    </target>
+    <target
+        name="clean"
+        unless="noclean">
+        <antcall
+            target="allElements">
+            <param
+                name="target"
+                value="cleanElement"/>
+        </antcall>
+    </target>
+
+    <!--
+      Default target 
+    -->
+    <target
+        name="noDefault">
+        <echo
+            level="error"
+            message="You must specify a target when invoking this file"/>
+    </target>
+</project>
\ No newline at end of file
diff --git a/releng.wtpbuilder/components/wtp-patches312/dependency.xml b/releng.wtpbuilder/components/wtp-patches312/dependency.xml
new file mode 100644
index 0000000..6be5fa5
--- /dev/null
+++ b/releng.wtpbuilder/components/wtp-patches312/dependency.xml
@@ -0,0 +1,123 @@
+<?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">
+        <!--
+            read in this properties, just so we can make sure our
+            requested pre-reqs are defined
+        -->
+        <property
+            file="${dependency.properties}"/>
+        <mkdir
+            dir="${buildDirectory}/maps/${env.RELENG}/maps"/>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="orbitthirdpartymap"/>
+            <param
+                name="base.install.dir"
+                value="${buildDirectory}/maps/${env.RELENG}/maps/"/>
+        </antcall>
+        <property
+            name="pde.builder.path"
+            value="${env.BASE_BUILDERS}/${eclipse.builder.version}/${eclipse.builder}"/>
+        <echo
+            level="debug"
+            message="pde.builder.path: ${pde.builder.path}"/>
+        <echo
+            level="debug"
+            message="eclipse.builder.version: ${eclipse.builder.version}"/>
+        <echo
+            level="debug"
+            message="eclipse.builder: ${eclipse.builder}"/>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="emf"/>
+        </antcall>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="emfxsd"/>
+        </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="getAndInstall">
+            <param
+                name="groupId"
+                value="eclipseTestFramework"/>
+        </antcall>
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="dita"/>
+        </antcall>
+        <!--
+            for patch builds, also get a whole released version to
+            compile against
+        -->
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="wtp"/>
+        </antcall>
+        <!-- including tests -->
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value="wtp-test"/>
+        </antcall>
+    </target>
+    <target
+        name="getAndInstall"
+        if="${groupId}.url">
+        <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>
+</project>
\ No newline at end of file
diff --git a/releng.wtpbuilder/distribution/patches312.build/build.xml b/releng.wtpbuilder/distribution/patches312.build/build.xml
new file mode 100644
index 0000000..b2bea41
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.build/build.xml
@@ -0,0 +1,75 @@
+<project
+    default="build"
+    basedir=".">
+    <fail
+        unless="wtp.builder.home"/>
+    <property
+        file="${wtp.builder.home}/build.properties"/>
+    <property
+        environment="env"/>
+
+    <!-- required to get proper value of doCreateFprojZips -->
+    <property
+        name="keyCfgFile"
+        value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
+    <echo
+        level="debug"
+        message="keyCfgFile: ${keyCfgFile}"/>
+    <property
+        file="${keyCfgFile}"/>
+
+    <!-- main -->
+    <target
+        name="build"
+        depends="getBaseBuilder">
+        <dirname
+            file="${ant.file}"
+            property="distribution.wtp.build.dir"/>
+        <property
+            name="buildTargets"
+            value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
+        <!--
+            if not otherwise set, assume its a legacy case that did not
+            use this
+        -->
+        <property
+            name="env.DEP_DIR"
+            value=""/>
+        <property
+            name="dependency.properties"
+            value="${buildDirectory}/maps/${env.RELENG}${env.DEP_DIR}/maps/dependencies.properties"/>
+
+        <!-- calling label.xml to createg label.properties file -->
+        <ant
+            antfile="${wtp.builder.home}/scripts/build/label.xml"/>
+        <echo
+            level="info"
+            message="invoking buildTargets: ${buildTargets} to build for each component"/>
+        <ant
+            antfile="${buildTargets}">
+            <property
+                name="component"
+                value="wtp-patches312"/>
+        </ant>
+        <ant
+            antfile="${buildTargets}">
+            <property
+                name="component"
+                value="wtp-patches312-tests"/>
+        </ant>
+    </target>
+    <target
+        name="getBaseBuilder"
+        if="eclipse.builder.fetch">
+        <dirname
+            file="${ant.file}"
+            property="wtbuilder.dir"/>
+        <property
+            name="buildTargets"
+            value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
+        <!-- delete dir="${pde.builder.path}" failonerror="false"/ -->
+        <ant
+            antfile="${buildTargets}"
+            target="getBaseBuilder"/>
+    </target>
+</project>
\ No newline at end of file
diff --git a/releng.wtpbuilder/distribution/patches312.site/build.xml b/releng.wtpbuilder/distribution/patches312.site/build.xml
new file mode 100644
index 0000000..4748e65
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/build.xml
@@ -0,0 +1,183 @@
+<project
+    name="Build specific targets and properties"
+    default="build"
+    basedir=".">
+    <!--
+        Note to be cross-platform, "environment variables" are only
+        appropriate for some variables, e.g. ones we set, since
+        properties are case sensitive, even if the environment variables
+        on your operating system are not, e.g. it will be ${env.Path}
+        not ${env.PATH} on Windows
+    -->
+    <property
+        environment="env"/>
+    <!--
+        Let users override standard properties, if desired. If
+        directory, file, or some properties do not exist, then standard
+        properties will be used.
+    -->
+    <property
+        file="${env.LOCAL_BUILD_PROPERTIES_DIR}/${ant.project.name}.properties"/>
+
+    <!-- = = = end standard properties pattern = = = -->
+    <echo
+        message="ant.file: ${ant.file}"/>
+    <target
+        name="build">
+        <java
+            jar="${eclipse.launcher}"
+            fork="true"
+            failonerror="true">
+            <jvmarg
+                value="-Dosgi.ws=${env.BASEWS}"/>
+            <jvmarg
+                value="-Dosgi.os=${env.BASEOS}"/>
+            <jvmarg
+                value="-Dosgi.arch=${env.BASEARCH}"/>
+            <jvmarg
+                value="-Dbuild.donottagmaps=${build.donottagmaps}"/>
+            <jvmarg
+                value="-DbuildBranch=${buildBranch}"/>
+            <jvmarg
+                value="-DbuildType=${buildType}"/>
+            <jvmarg
+                value="-Djava.protocol.handler.pkgs=com.ibm.etools.www.protocol"/>
+            <jvmarg
+                value="-DurlLogLocation=${buildDirectory}/outgoinghttplogfromsitebuild.log"/>
+            <jvmarg
+                value="-DbuildId=${buildId}"/>
+            <jvmarg
+                value="-DmapVersionTag=${mapVersionTag}"/>
+            <jvmarg
+                value="-Dbuild.distribution=${build.distribution}"/>
+            <jvmarg
+                value="-DbuildDirectory=${buildDirectory}"/>
+            <jvmarg
+                value="-Dwtp.builder.home=${wtp.builder.home}"/>
+            <jvmarg
+                value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/>
+            <jvmarg
+                value="-Dprojectname=${projectname}"/>
+            <arg
+                value="-data"/>
+            <arg
+                value="${basedir}/workspace"/>
+            <arg
+                value="-application"/>
+            <arg
+                value="org.eclipse.ant.core.antRunner"/>
+            <arg
+                value="-buildfile"/>
+            <arg
+                value="${ant.file}"/>
+            <arg
+                value="publish"/>
+        </java>
+    </target>
+    <!--
+        =====================================================================
+    -->
+    <!-- Steps to do to publish the build results -->
+    <!--
+        =====================================================================
+    -->
+    <target
+        name="publish">
+        <dirname
+            file="${ant.file}"
+            property="component.dir"/>
+        <ant
+            antfile="${wtp.builder.home}/scripts/build/label.xml"/>
+        <property
+            file="${buildDirectory}/label.properties"/>
+        <property
+            name="publish.xml"
+            value="${component.dir}/publish.xml"/>
+        <property
+            name="indexFileName"
+            value="index.php"/>
+        <property
+            name="result"
+            value="${buildDirectory}/${buildLabel}"/>
+        <property
+            name="indexTemplateFilename"
+            value="index.html.template.php"/>
+        <copy
+            file="${wtp.builder.home}/distribution/wtp.site/templateFiles/${indexTemplateFilename}"
+            tofile="${buildDirectory}/${indexFileName}"/>
+        <property
+            name="indexFileName"
+            value="index.php"/>
+        <property
+            name="result"
+            value="${buildDirectory}/${buildLabel}"/>
+        <property
+            name="indexTemplateFilename"
+            value="index.html.template.php"/>
+        <copy
+            file="${wtp.builder.home}/distribution/patches.site/templateFiles/${indexTemplateFilename}"
+            tofile="${buildDirectory}/${indexFileName}"/>
+        <condition
+            property="isBuildTested"
+            value="true">
+            <available
+                file="${buildDirectory}/${buildLabel}/testResults/html"/>
+        </condition>
+        <ant
+            antfile="${publish.xml}"
+            dir="${component.dir}">
+            <property
+                name="dropTokenList"
+                value="%wtpruntime%,%wtpsdk%,%wtptest%,%wst%,%wst-sdk%,%wst-tests%,%jst-tests%,%wst-perf-tests%,%jst-perf-tests%,%jpt-runtime%,%jpt-sdk%,%jpt-tests%"/>
+            <property
+                name="webtoolsDownloadURL"
+                value="http://www.eclipse.org/downloads/download.php?file=/webtools/committers/drops"/>
+            <property
+                name="buildBranch"
+                value="${buildBranch}"/>
+            <property
+                name="isBuildTested"
+                value="${isBuildTested}"/>
+            <property
+                name="indexTemplateFilename"
+                value="${indexTemplateFilename}"/>
+        </ant>
+
+        <!--  Get the build map over for the results to point to. -->
+        <copy
+            file="${buildDirectory}/directory.txt"
+            tofile="${result}/directory.txt"/>
+
+        <!-- Copy info for build identification -->
+        <copy
+            file="${buildDirectory}/buildmachineinfo.properties"
+            tofile="${result}/buildmachineinfo.properties"/>
+
+
+        <!-- http access logs -->
+        <copy
+            todir="${result}/"
+            failonerror="false">
+            <fileset
+                dir="${buildDirectory}"
+                includes="*.log"/>
+        </copy>
+
+        <!-- ant build log, from control directory -->
+        <copy
+            todir="${result}/"
+            failonerror="false">
+            <fileset
+                dir="${env.ANT_WORKING}/${projectname}"
+                includes="antBuilderOutput.log"/>
+        </copy>
+
+
+
+        <!-- final count files -->
+        <countBuildFiles
+            sourceDirectory="${buildDirectory}/${buildLabel}"
+            filterString=".zip,.tar.gz"
+            outputFile="${buildDirectory}/${buildLabel}/files.count"/>
+    </target>
+</project>
\ No newline at end of file
diff --git a/releng.wtpbuilder/distribution/patches312.site/compilerXMLOutputToHTML.xsl b/releng.wtpbuilder/distribution/patches312.site/compilerXMLOutputToHTML.xsl
new file mode 100644
index 0000000..ffc7905
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/compilerXMLOutputToHTML.xsl
@@ -0,0 +1,171 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet
+    version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+    <xsl:output
+        method="html"
+        indent="yes"/>
+    <xsl:template
+        match="/">
+        <html>
+            <body>
+                <xsl:apply-templates
+                    select="compiler"/>
+            </body>
+        </html>
+    </xsl:template>
+    <xsl:template
+        match="compiler">
+        <h2>Compiler Report</h2>
+        <p>
+            Compiler:
+            <xsl:value-of
+                select="@name"/>
+            <xsl:text>   </xsl:text>
+            Version:
+            <xsl:value-of
+                select="@version"/>
+        </p>
+        <xsl:apply-templates
+            select="stats"/>
+        <xsl:apply-templates
+            select="sources"/>
+    </xsl:template>
+    <xsl:template
+        name="stats"
+        match="stats">
+        <p>
+            Number of source files:
+            <xsl:value-of
+                select="count(..//source)"/>
+            Number of classfiles:
+            <xsl:value-of
+                select="number_of_classfiles/@value"/>
+        </p>
+        <p>
+            Problems:
+            <xsl:value-of
+                select="problem_summary/@problems"/>
+            (Errors:
+            <xsl:value-of
+                select="problem_summary/@errors"/>
+            Warnings:
+            <xsl:value-of
+                select="problem_summary/@warnings"/>
+            )
+        </p>
+    </xsl:template>
+    <xsl:template
+        name="sources"
+        match="sources">
+        <xsl:if
+            test="count(source) > 0">
+            <dl>
+                <xsl:for-each
+                    select="source">
+                    <xsl:variable
+                        name="package"
+                        select="normalize-space(@package)">
+                    </xsl:variable>
+                    <xsl:variable
+                        name="path"
+                        select="normalize-space(@path)">
+                    </xsl:variable>
+                    <xsl:variable
+                        name="classname"
+                        select="substring-after($path, $package)">
+                    </xsl:variable>
+                    <xsl:if
+                        test="count(problems) > 0">
+                        <dt
+                            style="font-weight: bold; color: black">
+                            Source File:
+                            <xsl:value-of
+                                select="$package"/>
+                            <xsl:value-of
+                                select="$classname"/>
+                        </dt>
+                        <xsl:apply-templates
+                            select="problems">
+                            <xsl:with-param
+                                name="classname">
+                                <xsl:value-of
+                                    select="$classname"/>
+                            </xsl:with-param>
+                        </xsl:apply-templates>
+                    </xsl:if>
+                </xsl:for-each>
+            </dl>
+        </xsl:if>
+    </xsl:template>
+    <xsl:template
+        match="problems">
+        <xsl:param
+            name="classname"/>
+        <xsl:for-each
+            select="problem">
+            <dd
+                style="font-weight: normal; color: black">
+                <xsl:value-of
+                    select="position()"/>
+                <xsl:text>.  </xsl:text>
+                <xsl:value-of
+                    select="@severity"/>
+                <xsl:text>:  </xsl:text>
+                <xsl:value-of
+                    select="@id"/>
+                <xsl:variable
+                    name="lineNumber"
+                    select="@line">
+                </xsl:variable>
+                <xsl:for-each
+                    select="message">
+                    <p
+                        style="margin-left: +.5in; font-size: -1; margin-top: 0;margin-bottom:0;">
+                        <small>
+                            <xsl:value-of
+                                select="@value"/>
+                        </small>
+                    </p>
+                </xsl:for-each>
+                <xsl:for-each
+                    select="source_context">
+                    <xsl:variable
+                        name="pre"
+                        select="substring(@value,0,(@sourceStart + 1))">
+                    </xsl:variable>
+                    <xsl:variable
+                        name="main"
+                        select="substring(@value,(@sourceStart + 1),(((@sourceEnd + 1) - (@sourceStart + 1)) + 1))">
+                    </xsl:variable>
+                    <xsl:variable
+                        name="end"
+                        select="substring(@value,(@sourceEnd + 2))">
+                    </xsl:variable>
+                    <p
+                        style="margin-left: +.5in; font-size: -2; margin-top: 0;margin-bottom:0;">
+                        <xsl:value-of
+                            select="substring($classname,2)"/>
+                        :
+                    </p>
+                    <p
+                        style="margin-left: +.5in; font-size: -2;font-family: monospace; margin-top: 0;margin-bottom:0;">
+                        <xsl:value-of
+                            select="$lineNumber"/>
+                        :
+                        <xsl:value-of
+                            select="$pre"/>
+                        <b>
+                            <u>
+                                <xsl:value-of
+                                    select="$main"/>
+                            </u>
+                        </b>
+                        <xsl:value-of
+                            select="$end"/>
+                    </p>
+                </xsl:for-each>
+            </dd>
+        </xsl:for-each>
+    </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
diff --git a/releng.wtpbuilder/distribution/patches312.site/publish.xml b/releng.wtpbuilder/distribution/patches312.site/publish.xml
new file mode 100644
index 0000000..8e0417b
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/publish.xml
@@ -0,0 +1,568 @@
+<project
+    name="Publish Build"
+    default="default"
+    basedir=".">
+    <!--
+        Properties that must be passed to this script: buildDirectory:
+        Path to perform the build in. (A working directory) buildType:
+        Type of build (nightly, integration etc.) buildId: Build name
+        buildLabel: <buildType>-<buildName>-<timestamp>
+    -->
+    <property
+        environment="env"/>
+    <property
+        name="resultDir"
+        value="${buildDirectory}/${buildLabel}"/>
+    <!--name of generated index page-->
+    <property
+        name="indexFileName"
+        value="index.php"/>
+    <property
+        name="templateDir"
+        value="${wtp.builder.home}/distribution/${build.distribution}.site"/>
+    <property
+        name="resultingIndex"
+        value="${resultDir}/${indexFileName}"/>
+    <echo
+        level="debug"
+        message="resultDir: ${resultDir}"/>
+    <echo
+        level="debug"
+        message="templateDir: ${templateDir}"/>
+    <echo
+        level="debug"
+        message="resultingIndex: ${resultingIndex}"/>
+    <target
+        name="default">
+        <copy
+            overwrite="true"
+            file="${wtp.builder.home}/distribution/${build.distribution}.site/templateFiles/${indexTemplateFilename}"
+            tofile="${resultingIndex}"/>
+        <antcall
+            target="countFiles"/>
+        <antcall
+            target="generateCompileIndex"/>
+        <antcall
+            target="generateJUnitTestsIndex"/>
+        <antcall
+            target="getStaticFiles"/>
+    </target>
+    <target
+        name="generateCompileIndex">
+        <!--
+            <taskdef name="indexResults"
+            classname="org.eclipse.wtp.releng.tools.ResultsSummaryGenerator"
+            />
+        -->
+        <!--
+            isBuildTested: true|false should JUnit plugin test results
+            be used to generate index page dropTokenList: comma
+            separated list of strings which should be replaced by the
+            fileName attribute settings in the testManifest.xml.
+            xmlDirectoryName: path to directory containing JUnit plugin
+            test results in xml format (see doc is org.eclipse.test).
+            dropDirectoryName: path to directory containing the result
+            of the build. testResultsTemplateFileName: path to template
+            file used to generate page with links to JUnit test results
+            testResultsHtmlFileName: name of file which will be
+            generated with links to JUnit test results dropHtmlFileName:
+            name of generated index page hrefTestResultsTargetPath:
+            relative path from index page to directory containing JUnit
+            html test results hrefCompileLogsTargetPath: relative path
+            from index page directory containing compilelogs
+            testManifestFileName: name of xml file containing
+            descriptions of zip types and log files
+        -->
+        <!--
+            if not otherwise set, assume its a legacy case that did not
+            use this
+        -->
+        <property
+            name="env.DEP_DIR"
+            value=""/>
+        <property
+            file="${buildDirectory}/maps/${env.RELENG}${env.DEP_DIR}/maps/dependencies.properties"/>
+
+        <!-- create tables of test plugin compiles first -->
+        <summarizeResults
+            isBuildTested="false"
+            includeAll="true"
+            dropTokenList="${dropTokenList}"
+            xmlDirectoryName=""
+            dropDirectoryName="${resultDir}"
+            testResultsTemplateFileName="${templateDir}/templateFiles/testCompileResults.php.template"
+            testResultsHtmlFileName="testCompileResults.php"
+            hrefTestResultsTargetPath=""
+            hrefCompileLogsTargetPath="testcompilelogs"
+            compileLogsDirectoryName="${resultDir}/testcompilelogs"/>
+        <xslt
+            basedir="${resultDir}/testcompilelogs"
+            destdir="${resultDir}/testcompilelogs"
+            includes="**/*.bin.xml"
+            scanincludeddirectories="true"
+            style="compilerXMLOutputToHTML.xsl"
+            force="true"/>
+
+        <!-- create table of code plugins compiles -->
+        <summarizeResults
+            isBuildTested="false"
+            includeAll="true"
+            dropTokenList="${dropTokenList}"
+            xmlDirectoryName=""
+            dropDirectoryName="${resultDir}"
+            testResultsTemplateFileName="${templateDir}/templateFiles/compileResults.php.template"
+            testResultsHtmlFileName="compileResults.php"
+            hrefTestResultsTargetPath="testResults/html"
+            hrefCompileLogsTargetPath="compilelogs"
+            compileLogsDirectoryName="${resultDir}/compilelogs"/>
+        <xslt
+            basedir="${resultDir}/compilelogs"
+            destdir="${resultDir}/compilelogs"
+            includes="**/*.bin.xml"
+            scanincludeddirectories="true"
+            style="compilerXMLOutputToHTML.xsl"
+            force="true"/>
+        <tstamp>
+            <format
+                property="TODAY"
+                pattern="MMMM d, yyyy"/>
+        </tstamp>
+
+        <!--  Insert Build Type descriptor  -->
+        <antcall
+            target="${buildType}"/>
+        <antcall
+            target="writeData"/>
+        <!--
+            Update timestamp on file to permit overwrite through Ant
+            copy task
+        -->
+        <touch
+            file="${resultingIndex}"/>
+    </target>
+    <target
+        name="generateJUnitTestsIndex"
+        depends="checkIfTested"
+        if="doTests">
+        <!--
+            isBuildTested: true|false should JUnit plugin test results
+            be used to generate index page dropTokenList: comma
+            separated list of strings which should be replaced by the
+            fileName attribute settings in the testManifest.xml.
+            xmlDirectoryName: path to directory containing JUnit plugin
+            test results in xml format (see doc is org.eclipse.test).
+            dropDirectoryName: path to directory containing the result
+            of the build. testResultsTemplateFileName: path to template
+            file used to generate page with links to JUnit test results
+            testResultsHtmlFileName: name of file which will be
+            generated with links to JUnit test results dropHtmlFileName:
+            name of generated index page hrefTestResultsTargetPath:
+            relative path from index page to directory containing JUnit
+            html test results hrefCompileLogsTargetPath: relative path
+            from index page directory containing compilelogs
+            testManifestFileName: name of xml file containing
+            descriptions of zip types and log files
+        -->
+        <!--
+            if not otherwise set, assume its a legacy case that did not
+            use this
+        -->
+        <property
+            name="env.DEP_DIR"
+            value=""/>
+        <property
+            file="${buildDirectory}/maps/${env.RELENG}${env.DEP_DIR}/maps/dependencies.properties"/>
+
+        <!-- create table of test plugin compiles first -->
+        <!-- set isBuildTested to true for the "compile only" results -->
+        <summarizeResults
+            isBuildTested="true"
+            dropTokenList="${dropTokenList}"
+            dropDirectoryName="${resultDir}"
+            xmlDirectoryName="${resultDir}/testResults/xml"
+            testResultsTemplateFileName="${templateDir}/templateFiles/testResults.php.template"
+            testResultsHtmlFileName="testResults.php"
+            hrefTestResultsTargetPath="testResults/html"
+            compileLogsDirectoryName=""/>
+        <tstamp>
+            <format
+                property="TODAY"
+                pattern="MMMM d, yyyy"/>
+        </tstamp>
+
+        <!--  Insert Build Type descriptor  -->
+        <antcall
+            target="${buildType}"/>
+        <antcall
+            target="writeData"/>
+        <!--
+            Update timestamp on file to permit overwrite through Ant
+            copy task
+        -->
+        <touch
+            file="${resultingIndex}"/>
+    </target>
+    <target
+        name="getStaticFiles">
+        <!--get static files required in the buildLabel directory-->
+        <copy
+            todir="${resultDir}">
+            <fileset
+                dir="${templateDir}/staticDropFiles"/>
+        </copy>
+
+        <!--copy buildnotes from plugin directories-->
+        <mkdir
+            dir="${resultDir}/buildnotes"/>
+        <copy
+            todir="${resultDir}/buildnotes"
+            flatten="true">
+            <fileset
+                dir="${buildDirectory}/plugins"
+                includes="**/buildnotes_*.html"/>
+            <fileset
+                dir="${buildDirectory}/features"
+                includes="**/buildnotes_*.html"/>
+        </copy>
+        <copy
+            file="${templateDir}/staticDropFiles/logIndex.php"
+            tofile="${resultDir}/testResults/consolelogs/full/logIndex.php"/>
+        <copy
+            file="${templateDir}/staticDropFiles/logIndex.php"
+            tofile="${resultDir}/testResults/consolelogs/testLogs/logIndex.php"/>
+        <copy
+            file="${templateDir}/staticDropFiles/logIndex.php"
+            tofile="${resultDir}/testResults/consolelogs/testSysErrorLogs/logIndex.php"/>
+    </target>
+    <target
+        name="repository">
+
+
+        <!-- get our authored, tokenized site.xml file -->
+        <copy
+            file="${wtp.builder.home}/distribution/${build.distribution}.site/templateFiles/siteWTP.xml"
+            tofile="${buildDirectory}/${buildLabel}/repository/site.xml"
+            overwrite="true"
+            failonerror="true"/>
+        <!--
+            get the ${buildDirectory}/finalPluginsVersions.properties,
+            and read as properties
+        -->
+        <!-- substitute property value for tokens -->
+        <replace
+            file="${buildDirectory}/${buildLabel}/repository/site.xml"
+            propertyfile="${buildDirectory}/finalFeaturesVersions.properties">
+            <replacefilter
+                token="@org.eclipse.wst@"
+                property="org.eclipse.wst"/>
+            <replacefilter
+                token="@org.eclipse.wst.sdk@"
+                property="org.eclipse.wst.sdk"/>
+            <replacefilter
+                token="@org.eclipse.jst@"
+                property="org.eclipse.jst"/>
+            <replacefilter
+                token="@org.eclipse.jst.sdk@"
+                property="org.eclipse.jst.sdk"/>
+            <replacefilter
+                token="@org.eclipse.jpt.feature@"
+                property="org.eclipse.jpt.feature"/>
+            <replacefilter
+                token="@org.eclipse.jpt_sdk.feature@"
+                property="org.eclipse.jpt_sdk.feature"/>
+        </replace>
+    </target>
+    <target
+        name="countFiles">
+        <!--
+            files.count is a file that should exist in the drop
+            directory with a count of the zip files in the same
+            directory. It is required to generate a link to the build on
+            the downloads page.
+        -->
+        <countBuildFiles
+            sourceDirectory="${resultDir}"
+            filterString=".zip,.tar.gz"
+            outputFile="${resultDir}/files.count"/>
+    </target>
+
+    <!--Build type descriptors-->
+    <target
+        name="I">
+        <replace
+            file="${resultingIndex}"
+            token="%wtpandprereqs%"
+            value=" "/>
+        <replace
+            file="${resultingIndex}"
+            token="@type@"
+            value="Integration"/>
+    </target>
+    <target
+        name="S">
+        <replace
+            file="${resultingIndex}"
+            token="%wtpandprereqs%"
+            value=" "/>
+        <replace
+            file="${resultingIndex}"
+            token="@type@"
+            value="Stable"/>
+    </target>
+    <target
+        name="N">
+        <replace
+            file="${resultingIndex}"
+            token="%wtpandprereqs%"
+            value=" "/>
+        <replace
+            file="${resultingIndex}"
+            token="@type@"
+            value="Nightly"/>
+    </target>
+    <target
+        name="M">
+        <replace
+            file="${resultingIndex}"
+            token="%wtpandprereqs%"
+            value=" "/>
+        <replace
+            file="${resultingIndex}"
+            token="@type@"
+            value="Maintenance"/>
+    </target>
+    <target
+        name="R">
+        <replace
+            file="${resultingIndex}"
+            token="%wtpandprereqs%"
+            value=" "/>
+        <replace
+            file="${resultingIndex}"
+            token="@type@"
+            value="Release"/>
+    </target>
+    <target
+        name="T">
+        <replace
+            file="${resultingIndex}"
+            token="%wtpandprereqs%"
+            value=" "/>
+        <replace
+            file="${resultingIndex}"
+            token="@type@"
+            value="Test"/>
+    </target>
+    <target
+        name="P">
+        <replace
+            file="${resultingIndex}"
+            token="%wtpandprereqs%"
+            value=" "/>
+        <replace
+            file="${resultingIndex}"
+            token="@type@"
+            value="Patches"/>
+    </target>
+    <target
+        name="U">
+        <replace
+            file="${resultingIndex}"
+            token="%wtpandprereqs%"
+            value=" "/>
+        <replace
+            file="${resultingIndex}"
+            token="@type@"
+            value="Updates"/>
+    </target>
+    <target
+        name="checkIfTested">
+        <echo
+            level="debug"
+            message="isBuildTested: ${isBuildTested}"/>
+        <condition
+            property="doTests">
+            <equals
+                arg1="${isBuildTested}"
+                arg2="true"
+                trim="true"
+                casesensitive="false"/>
+        </condition>
+    </target>
+    <target
+        name="writeData">
+        <!--  Insert Build Date  -->
+        <replace
+            file="${resultingIndex}"
+            token="@date@"
+            value="${TODAY}"/>
+
+        <!--  Insert Build Name  -->
+        <replace
+            file="${resultingIndex}"
+            token="@build@"
+            value="${buildLabel}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@buildBranch@"
+            value="${buildBranch}"/>
+
+        <!--  Insert PreRequsites  -->
+        <replace
+            file="${resultingIndex}"
+            token="@eclipseFile@"
+            value="${eclipse.file.linux-gtk-x86}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipseURL@"
+            value="${eclipse.url}/${eclipse.file.linux-gtk-x86}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipseBuildURL@"
+            value="${eclipse.url}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipsefilelinux@"
+            value="${eclipse.file.linux-gtk-x86}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipsefilewindows@"
+            value="${eclipse.file.win32-win32-x86}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipsefilemacos@"
+            value="${eclipse.file.macosx-carbon-ppc}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipseBuildHome@"
+            value="${eclipse.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipse.mirror.prefixuri@"
+            value="${eclipse.mirror.prefixuri}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipse.fspath.prefix@"
+            value="${eclipse.fspath.prefix}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@testURL@"
+            value="${eclipseTestFramework.url}/${eclipseTestFramework.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@testFile@"
+            value="${eclipseTestFramework.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfFile@"
+            value="${emf.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfURL@"
+            value="${emf.url}/${emf.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfBuildHome@"
+            value="${emf.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emf.mirror.prefixuri@"
+            value="${emf.mirror.prefixuri}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@wstFile@"
+            value="${wst.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@wstURL@"
+            value="${wst.url}/${wst.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@wstBuildHome@"
+            value="${wst.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@wst.mirror.prefixuri@"
+            value="${wst.mirror.prefixuri}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@gefFile@"
+            value="${gef.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@gefURL@"
+            value="${gef.url}/${gef.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@gefBuildHome@"
+            value="${gef.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@gef.mirror.prefixuri@"
+            value="${gef.mirror.prefixuri}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipserelengFile@"
+            value="${eclipsereleng.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@eclipserelengURL@"
+            value="${eclipsereleng.url}/${eclipsereleng.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@orbitthirdpartyzipFile@"
+            value="${orbitthirdpartyzip.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@orbitthirdpartyzipURL@"
+            value="${orbitthirdpartyzip.url}/${orbitthirdpartyzip.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@orbitthirdpartyzipBuildHome@"
+            value="${orbitthirdpartyzip.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@orbitthirdpartyzip.mirror.prefixuri@"
+            value="${orbitthirdpartyzip.mirror.prefixuri}"/>
+
+
+        <!-- no longer used. Post 1.5.5 -->
+        <replace
+            file="${resultingIndex}"
+            token="@jemFile@"
+            value="${jem.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@jemURL@"
+            value="${jem.url}/${jem.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@jemBuildHome@"
+            value="${jem.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@jem.mirror.prefixuri@"
+            value="${jem.mirror.prefixuri}"/>
+        <!--
+            these token/s should not exist in maintenance stream, but do
+            no harm done, so in the interests of keeping builder streams
+            in sync, we'll leave them here as place hold
+        -->
+        <replace
+            file="${resultingIndex}"
+            token="@dtpFile@"
+            value="${dtp.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@dtpURL@"
+            value="${dtp.url}/${dtp.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@dtpBuildHome@"
+            value="${dtp.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@dtp.mirror.prefixuri@"
+            value="${dtp.mirror.prefixuri}"/>
+    </target>
+</project>
\ No newline at end of file
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/access_err.gif b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/access_err.gif
new file mode 100644
index 0000000..4f0748a
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/access_err.gif
Binary files differ
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/access_warn.gif b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/access_warn.gif
new file mode 100644
index 0000000..8386e3e
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/access_warn.gif
Binary files differ
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/buildNotes.php b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/buildNotes.php
new file mode 100644
index 0000000..f666887
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/buildNotes.php
@@ -0,0 +1,63 @@
+<html>
+<head>
+<?php
+$parts = explode("/", getcwd());
+$parts2 = explode("-", $parts[count($parts) - 1]);
+$buildName = $parts2[1];
+
+echo "<title>Build Notes for $buildName </title>";
+?>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
+	type="text/css">
+</head>
+<body>
+
+<p><b><font face="Verdana" size="+3">Build Notes</font></b></p>
+
+<table border=0 cellspacing=5 cellpadding=2 width="100%">
+	<tr>
+		<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font
+			color="#FFFFFF" face="Arial,Helvetica"> Build Notes for <?php echo "$buildName"; ?></font></b></td>
+	</tr>
+</table>
+<table border="0">
+
+<?php
+$hasNotes = false;
+$aDirectory = dir("buildnotes");
+while ($anEntry = $aDirectory->read()) {
+	if ($anEntry != "." && $anEntry != "..") {
+		//print_r($anEntry);
+		//echo "<br />";
+
+		$subject = $anEntry;
+		$pattern = '/^buildnotes_(.*)/i';
+		preg_match($pattern, $subject, $matches);
+		$subject = $matches[1];
+		//print_r($subject);
+		//echo "<br />";
+		$pattern = '/^(.*)\.html$/';
+		preg_match($pattern, $subject, $matches);
+		//print_r($matches);
+		//echo "<br />";
+
+		$component = $matches[1];
+
+		$line = "<td>Component: <a href=\"buildnotes/$anEntry\">$component</a></td>";
+		echo "<tr>";
+		echo "$line";
+		echo "</tr>";
+		$hasNotes = true;
+
+	}
+}
+$aDirectory.closedir();
+if (!$hasNotes) {
+	echo "<br>There are no build notes for this build.";
+}
+?>
+
+</table>
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/compile_err.gif b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/compile_err.gif
new file mode 100644
index 0000000..c2bfdd6
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/compile_err.gif
Binary files differ
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/compile_warn.gif b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/compile_warn.gif
new file mode 100644
index 0000000..cf4fdf9
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/compile_warn.gif
Binary files differ
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/consoleLogs.php b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/consoleLogs.php
new file mode 100644
index 0000000..2ee3c36
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/consoleLogs.php
@@ -0,0 +1,94 @@
+<html>
+<head>
+<?php
+$parts = explode("/", getcwd());
+$parts2 = explode("-", $parts[count($parts) - 1]);
+$buildName = $parts2[1];
+
+echo "<title>Test Console Output for $buildName </title>";
+?>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
+	type="text/css">
+<title>Console Logs from Running JUnit Plug-in Tests</title>
+</head>
+<body>
+
+<p><b><font face="Verdana" size="+3">Test Console Output</font></b></p>
+
+<table border=0 cellspacing=5 cellpadding=2 width="100%">
+	<tr>
+		<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font
+			color="#FFFFFF" face="Arial,Helvetica">Console output from running
+		JUnit plugin tests for <?php echo "$buildName"; ?> </font></b></td>
+	</tr>
+</table>
+<table border="0">
+
+<?php
+$rootDir = "testResults/consolelogs";
+$hasNotes = false;
+$aDirectory = dir($rootDir);
+$index = 0;
+$dirindex = 0;
+while ($anEntry = $aDirectory->read()) {
+	if ($anEntry != "." && $anEntry != "..") {
+		if (is_file("$rootDir/$anEntry")) {
+			$entries[$index] = $anEntry;
+			$index++;
+		} else if (is_dir("$rootDir/$anEntry")) {
+			$direntries[$dirindex] = $anEntry;
+			$dirindex++;
+		}
+	}
+}
+$aDirectory->close();
+
+
+sort($entries);
+sort($direntries);
+
+for ($i = 0; $i < $dirindex; $i++) {
+	$anEntry = $direntries[$i];
+	$line = "<td><a href=\"testResults/consolelogs/$anEntry/logIndex.php\">$anEntry</a></td>";
+	echo "<tr>";
+	echo "$line";
+	echo "</tr>";
+}
+for ($i = 0; $i < $index; $i++) {
+	$anEntry = $entries[$i];
+	$logsize = filesize("testResults/consolelogs/$anEntry");
+
+
+	$level = 0;
+	if ($logsize > 20000) {
+		$level = 2;
+	}
+	else if ($logsize > 2000) {
+		$level = 1;
+	}
+
+	if ($level == 0) {
+		$line = "<td><a href=\"testResults/consolelogs/$anEntry\">$anEntry</a>  ($logsize bytes)</td>";
+	}
+	else if ($level == 1) {
+		$line = "<td><em><a href=\"testResults/consolelogs/$anEntry\">$anEntry</a>  ($logsize bytes)</em></td>";
+	} else if ($level == 2) {
+		$line = "<td><strong><a href=\"testResults/consolelogs/$anEntry\">$anEntry</a>  ($logsize bytes)</strong></td>";
+	}
+
+
+	echo "<tr>";
+	echo "$line";
+	echo "</tr>";
+	$hasNotes = true;
+}
+
+if (!$hasNotes) {
+	echo "<br>There are no test logs for this build.";
+}
+?>
+
+</table>
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/junit_err.gif b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/junit_err.gif
new file mode 100644
index 0000000..1b7ff9d
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/junit_err.gif
Binary files differ
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/logIndex.php b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/logIndex.php
new file mode 100644
index 0000000..721ca00
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/logIndex.php
@@ -0,0 +1,85 @@
+<html>
+<head>
+<?php
+
+function endsWith( $str, $sub ) {
+
+	return ( substr( $str, strlen( $str ) - strlen( $sub ) ) === $sub );
+}
+
+$parts = explode("/", getcwd());
+$parts2 = explode("-", $parts[count($parts) - 1]);
+$buildName = $parts2[1];
+
+echo "<title>Test Console Output for $buildName </title>";
+?>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<link rel="stylesheet" href="http://dev.eclipse.org/default_style.css"
+	type="text/css">
+<title>Console Logs from Running JUnit Plug-in Tests</title>
+</head>
+<body>
+
+<p><b><font face="Verdana" size="+3">Test Console Output</font></b></p>
+
+<table border=0 cellspacing=5 cellpadding=2 width="100%">
+	<tr>
+		<td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font
+			color="#FFFFFF" face="Arial,Helvetica">Console output from running
+		JUnit plugin tests for <?php echo "$buildName"; ?> </font></b></td>
+	</tr>
+</table>
+<table border="0">
+
+<?php
+$hasNotes = false;
+$aDirectory = dir(".");
+$index = 0;
+while ($anEntry = $aDirectory->read()) {
+	if ($anEntry != "." && $anEntry != ".." && !endsWith(__FILE__, $anEntry)) {
+		$entries[$index] = $anEntry;
+		$index++;
+	}
+}
+aDirectory.closedir();
+
+
+sort($entries);
+
+for ($i = 0; $i < $index; $i++) {
+	$anEntry = $entries[$i];
+	$logsize = filesize("$anEntry");
+
+
+	$level = 0;
+	if ($logsize > 20000) {
+		$level = 2;
+	}
+	else if ($logsize > 2000) {
+		$level = 1;
+	}
+
+	if ($level == 0) {
+		$line = "<td><a href=\"$anEntry\">$anEntry</a>  ($logsize bytes)</td>";
+	}
+	else if ($level == 1) {
+		$line = "<td><em><a href=\"$anEntry\">$anEntry</a>  ($logsize bytes)</em></td>";
+	} else if ($level == 2) {
+		$line = "<td><strong><a href=\"$anEntry\">$anEntry</a>  ($logsize bytes)</strong></td>";
+	}
+
+
+	echo "<tr>";
+	echo "$line";
+	echo "</tr>";
+	$hasNotes = true;
+}
+
+if (!$hasNotes) {
+	echo "<br>There are no test logs for this build.";
+}
+?>
+
+</table>
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/miscUtil.php b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/miscUtil.php
new file mode 100644
index 0000000..97c454e
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/miscUtil.php
@@ -0,0 +1,218 @@
+<?php
+
+// todo: unsure if can handle filenames that are URLs?
+// handy constant to compute file size in megabytes
+
+function fileSizeInMegs($filename) {
+	$onemeg=1024*1024;
+	$zipfilesize=filesize($filename);
+	$zipfilesize=round($zipfilesize/$onemeg, 0);
+	return $zipfilesize;
+}
+
+function fileSizeForDisplay($filename) {
+	$onekilo=1024;
+	$onemeg=$onekilo * $onekilo;
+	$criteria = 10 * $onemeg;
+	$scaleChar = "M";
+	$zipfilesize=filesize($filename);
+	if ($zipfilesize > $criteria) {
+		$zipfilesize=round($zipfilesize/$onemeg, 0);
+		$scaleChar = "M";
+	}
+	else {
+		$zipfilesize=round($zipfilesize/$onekilo, 0);
+		$scaleChar = "K";
+	}
+	$result =  "(" . $zipfilesize . $scaleChar . ")";
+	return $result;
+}
+
+
+function displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription) {
+	echo "<td align=\"right\" valign=\"top\" width=\"10%\">";
+	echo "<a href=\"$downloadprefix$filename\">" . $fileShortDescription . "</a>";
+	echo "</td><td align=\"right\" valign=\"top\" width=\"5%\">";
+	echo $zipfilesize;
+	echo "</td>";
+	echo "<td align=\"right\" valign=\"top\" width=\"5%\">";
+	echo "[<a href=\"checksum/$filename.md5\">md5</a>]";
+	echo "</td>";
+}
+
+function resourceExist($url, $mirrorPrefixuri, $prereqfilename, $eclipseFSpathPrefix)
+{
+	$result = false;
+
+	$allowURLopen = ini_get('allow_url_fopen');
+
+	if ($allowURLopen && stream_last_modified($url)) {
+		$result = true;
+	}
+	else {
+		// TODO: for now, we'll do a raw check on the whole file name, since enable_url_open
+		// is off. better would be to check if we are on build.eclipse.org or download.eclipse.org?
+		$wholePath = trim($eclipseFSpathPrefix) . "/" . trim($mirrorPrefixuri) . "/" . trim($prereqfilename);
+		if (file_exists($wholePath)) {
+			$result = true;
+		} else {
+			$wholePath = "/home/data/httpd/archive.eclipse.org/" . trim($mirrorPrefixuri) . "/" . trim($prereqfilename);
+			if (file_exists($wholePath)) {
+				$result = true;
+			}
+		}
+	}
+	return $result;
+}
+
+function stream_last_modified($url)
+{
+	if (function_exists('version_compare') && version_compare(phpversion(), '4.3.0') > 0)
+	{
+		if (!($fp = @fopen($url, 'r')))
+		return NULL;
+
+		$meta = stream_get_meta_data($fp);
+		for ($j = 0; isset($meta['wrapper_data'][$j]); $j++)
+		{
+			if (strstr(strtolower($meta['wrapper_data'][$j]), 'last-modified'))
+			{
+				$modtime = substr($meta['wrapper_data'][$j], 15);
+				break;
+			}
+		}
+		fclose($fp);
+	}
+	else
+	{
+		$parts = parse_url($url);
+		$host  = $parts['host'];
+		$path  = $parts['path'];
+
+		if (!($fp = @fsockopen($host, 80)))
+		return NULL;
+
+		$req = "HEAD $path HTTP/1.0\r\nUser-Agent: PHP/".phpversion()."\r\nHost: $host:80\r\nAccept: */*\r\n\r\n";
+		fputs($fp, $req);
+
+		while (!feof($fp))
+		{
+			$str = fgets($fp, 4096);
+			if (strstr(strtolower($str), 'last-modified'))
+			{
+				$modtime = substr($str, 15);
+				break;
+			}
+		}
+		fclose($fp);
+	}
+	return isset($modtime) ? strtotime($modtime) : time();
+}
+
+function isMirrored($uriToCheck) {
+	global $debugScript;
+	global $debugFunctions;
+	$localuri = $uriToCheck;
+
+	$debugMirrorList = false;
+	if ($debugScript) {
+		echo "uriToCheck: " . $localuri . "<br />";
+	}
+
+	$xmlcount = 0;
+
+	/* This method true and accurate method of parsing mirror results
+	 * may be expensive, and would
+	 * likely cause artificially high counts of "downloads".
+	 * Could maybe use if somehow only checked once ever 5 minutes or something.
+
+
+	 // turn off warnings, as sometimes HTML is returned, which causes lots of warnings
+	 $holdLevel = error_reporting(E_ERROR);
+	 $mirrorsxml=simplexml_load_file(rawurlencode($localuri) . urlencode("&format=xml"));
+	 error_reporting($holdLevel);
+
+
+	 if ($mirrorsxml) {
+		if ($debugFunctions) {
+		echo "root node: " . $mirrorsxml->getName() . "<br />";
+		}
+		if (strcmp($mirrorsxml->getName(), "mirrors") == 0) {
+		foreach ($mirrorsxml->children() as $mirror) {
+		if (strcmp($mirror->getName(),"mirror") == 0) {
+		$xmlcount=$xmlcount+1;
+		}
+		if ($debugMirrorList) {
+		print_r($mirror);
+		echo "<br />";
+		}
+		}
+		}
+		if ($debugFunctions) {
+		echo "Mirror count: " . $xmlcount . "<br />";
+		}
+		}
+	 */
+	/*
+	 * Use simple heuristic based on pattern
+	 * in the URI ... if it contains "/downloads/" then assume it's mirrored
+	 */
+	if (strpos($uriToCheck, "webtools/downloads/") > 0) {
+		$xmlcount = 1;
+	}
+	return ($xmlcount > 0);
+
+}
+
+// TODO: replace with Phoenix variables
+function getPlatform () {
+	global $debugScript;
+	global $debugFunctions;
+	// getBrowser is expensive, so cache the data
+	static $browser;
+	$platform = "unknown";
+
+
+	if(ini_get("browscap")) {
+		if(!isset($browser)){
+			$browser = get_browser(null, true);
+		}
+
+		if ($browser) {
+			$rawPlatform = $browser['platform'];
+			if ($debugFunctions) {
+				echo "browser platfrom: " . $rawPlatform . "<br />" ;
+			}
+
+			if ($debugFunctions) {
+				$browserKeys = array_keys($browser);
+				foreach ($browserKeys as $key) {
+					echo $key . ": " . $browser[$key] . "<br />";
+				}
+			}
+		}
+		if (strpos($rawPlatform, "Win") === 0) {
+			$platform="windows";
+		} else if (strpos($rawPlatform, "Linux") === 0) {
+			$platform="linux";
+		} else if (strpos($rawPlatform, "Mac") === 0) {
+			$platform="mac";
+		}
+	}
+	return $platform;
+}
+
+function getPrereqReferenceOrName($eclipseMirrorScript, $mirrorPrefixuri, $prerequrl, $prereqfilename, $eclipseFSpathPrefix) {
+	// todo: we really only need "if exists" so could make a bit more efficient
+	// I tried "file_exists" but is didn't seem to work on my test server
+	// For these pre-reqs, we assume if they exist, they are mirrored. This is true
+	// 99% of the time.
+
+	if (resourceExist($prerequrl, $mirrorPrefixuri, $prereqfilename, $eclipseFSpathPrefix)) {
+		$reflink="<a href=\"" . $eclipseMirrorScript . $mirrorPrefixuri . "/" . $prereqfilename . "\">" . $prereqfilename . "</a>";
+	} else {
+		$reflink=$prereqfilename;
+	}
+	return $reflink;
+}
+?>
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/pending.gif b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/pending.gif
new file mode 100644
index 0000000..66db2a6
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/pending.gif
Binary files differ
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/pending1.gif b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/pending1.gif
new file mode 100644
index 0000000..1b2ea6e
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/pending1.gif
Binary files differ
diff --git a/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/report2.php b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/report2.php
new file mode 100644
index 0000000..cb68e7b
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/staticDropFiles/report2.php
@@ -0,0 +1,45 @@
+
+<?php
+
+function parse_testResults($filename)
+{
+	$junitFailures = 0;
+	if (is_file($filename)) {
+		$handle = @fopen($filename, "r");
+		if ($handle)
+		{
+			$size = filesize($filename);
+			$content = fread($handle, $size);
+			fclose($handle);
+			$junitStart = strpos($content, "Errors &amp; Failures");
+			$junitEnd = strpos($content, "</table>", $junitStart);
+			$junitInfo = substr($content, $junitStart, $junitEnd - $junitStart);
+			$start = strpos($junitInfo, "<td><b><font color=\"#ff0000\">");
+			while ($start !== false)
+			{
+				$start += 29;
+				$stop = strpos($junitInfo, "</font></b></td>", $start);
+				if ($stop !== false)
+				{
+					$result = substr($junitInfo, $start, $stop - $start);
+					if (is_numeric($result))
+					{
+						$junitFailures += $result;
+					}
+					else if (strcmp($result, "DNF") == 0)
+					{
+						$junitFailures++;
+					}
+				}
+				$start = strpos($junitInfo, "<td><b><font color=\"#ff0000\">", $stop);
+			}
+			$results = array($junitFailures);
+			return $results;
+		}
+	}
+}
+
+
+?>
+
+
diff --git a/releng.wtpbuilder/distribution/patches312.site/templateFiles/compileResults.php.template b/releng.wtpbuilder/distribution/patches312.site/templateFiles/compileResults.php.template
new file mode 100644
index 0000000..f785771
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/templateFiles/compileResults.php.template
@@ -0,0 +1,76 @@
+<html>
+<head>
+
+<?php
+        $parts = explode("/", getcwd());
+        $parts2 = explode("-", $parts[count($parts) - 1]);
+        $buildName = $parts2[1];
+
+        echo "<title>Compile Logs: Code Bundles for $buildName</title>";
+?>
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+
+<style>
+.bold, .bold TD, .bold TH, .bold TR
+{
+font-weight:bold;
+}
+.numeric, .numeric TD
+{
+text-align:right;
+padding-right:2%;
+}
+.normaltable, .normaltable TD, .normaltable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:White;
+}
+.errorltable, .errortable TD, .errortable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:Red;
+font-weight:bold;
+}
+.warningtable, .warningtable TD, .warningtable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:khaki;
+}
+.extraWarningTable, .extraWarningTable TD, .extraWarningTable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:Yellow;
+}
+</style>
+</head>
+<body>
+
+<?php
+        echo "<h1>Compile Logs: Code Bundles for $buildName</h1>";
+?>
+
+
+<table id=tabledata align = "center" width="75%" border="1">
+  <tr>
+    <td class="bold" align="center">Compile Logs</td>
+    <td class="bold" align="center">Compile Errors</td>
+    <td class="bold" align="center">Compiler Warnings</td>
+    <td class="bold" align="center">Access Violations</td>
+    <td class="bold" align="center">Access Warnings</td>
+  </tr>
+
+  %compilelogs%
+
+</table>
+
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/patches312.site/templateFiles/index.html.template.php b/releng.wtpbuilder/distribution/patches312.site/templateFiles/index.html.template.php
new file mode 100644
index 0000000..f020709
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/templateFiles/index.html.template.php
@@ -0,0 +1,456 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+
+<title>WTP Downloads</title>
+
+
+<?php
+
+$buildBranch="@buildBranch@";
+$build="@build@";
+$type="@type@";
+$builddate="@date@";
+
+$eclipseMirrorPrefixuri="@eclipse.mirror.prefixuri@";
+$eclipseFSpathPrefix="@eclipse.fspath.prefix@";
+
+$eclipsefilelinux="@eclipsefilelinux@";
+$eclipsefilewindows="@eclipsefilewindows@";
+$eclipsefilemacosx="@eclipsefilemacos@";
+
+$eclipseURL="@eclipseURL@";
+$eclipseFile="@eclipseFile@";
+$eclipseBuildURL="@eclipseBuildURL@";
+$eclipseBuildHome="@eclipseBuildHome@";
+$testURL="@testURL@";
+$testFile="@testFile@";
+
+$wstURL="@wstURL@";
+$wstFile="@wstFile@";
+$wstMirrorPrefixuri="@wst.mirror.prefixuri@";
+$wstBuildHome="@wstBuildHome@";
+
+
+$gefURL="@gefURL@";
+$gefFile="@gefFile@";
+$gefMirrorPrefixuri="@gef.mirror.prefixuri@";
+$gefBuildHome="@gefBuildHome@";
+
+$emfURL="@emfURL@";
+$emfFile="@emfFile@";
+$emfMirrorPrefixuri="@emf.mirror.prefixuri@";
+$emfBuildHome="@emfBuildHome@";
+
+$dtpURL="@dtpURL@";
+$dtpFile="@dtpFile@";
+$dtpMirrorPrefixuri="@dtp.mirror.prefixuri@";
+$dtpBuildHome="@dtpBuildHome@";
+
+
+$eclipserelengFile="@eclipserelengFile@";
+$eclipserelengURL="@eclipserelengURL@";
+$orbitthirdpartyzipFile="@orbitthirdpartyzipFile@";
+$orbitthirdpartyzipURL="@orbitthirdpartyzipURL@";
+$orbitthirdpartyzipBuildHome="@orbitthirdpartyzipBuildHome@";
+$orbitthirdpartyzipMirrorPrefixuri="@orbitthirdpartyzip.mirror.prefixuri@";
+
+
+
+
+include("miscUtil.php");
+
+
+
+//ini_set("display_errors", "true");
+//error_reporting (E_ALL);
+
+
+$debugScript = false;
+$debugFunctions = false;
+
+$defaultMirrorScript="";
+$defaultWTPMirrorPrefix="./";
+
+$eclipseMirrorScript="http://www.eclipse.org/downloads/download.php?file=";
+
+// TODO: improve so this hard coding isn't required.
+// This depends on the declare script changing webtools/committers to webtools/downloads
+// And, the logic is such that if it is not mirrored, this URI is not used at all, just
+// a relative reference only
+$eclipseWTPMirrorPrefix="/webtools/committers/drops/$buildBranch/$build/";
+
+
+$mirrorScript=$defaultMirrorScript;
+$downloadprefix=$defaultWTPMirrorPrefix;
+
+
+$keytestMirrorString=$eclipseMirrorScript . "$eclipseWTPMirrorPrefix/wtp-sdk-$build.zip";
+if (isMirrored($keytestMirrorString) ) {
+	$mirrorScript=$eclipseMirrorScript;
+	$downloadprefix="${mirrorScript}${eclipseWTPMirrorPrefix}";
+}
+
+if ($debugScript)  {
+	echo "inferred platform: " . getPlatform();
+}
+
+
+// our summary results handling requires php 5 (for simple xml file loading)
+// so, if not php 5, just don't display any summary results
+// This was found to be required, since some mirror our whole site (e.g. IBM)
+// and not all mirrors use PHP 5
+$displayTestSummary=false;
+if (phpversion() >= 5) {
+
+	$displayTestSummary=true;
+	// expecting grandTotalErrors and grandTotalTests
+	$filename = "unitTestsSummary.xml";
+	if (file_exists($filename)) {
+		$prefix = "unitTests_";
+		$unitTestsSummary = simplexml_load_file($filename);
+		foreach ($unitTestsSummary->summaryItem as $summaryItem) {
+			$name = $summaryItem->name;
+			$value = $summaryItem->value;
+			$code= "\$" . $prefix . $name . " = " . $value . ";";
+			//echo "<br />code: " . $code;
+			eval($code);
+		}
+	}
+
+	$filename = "compilelogsSummary.xml";
+	$prefix = "code_";
+	$compileSummary = simplexml_load_file($filename);
+	foreach ($compileSummary->summaryItem as $summaryItem) {
+		$name = $summaryItem->name;
+		$value = $summaryItem->value;
+		$code= "\$" . $prefix . $name . " = " . $value . ";";
+		//echo "<br />code: " . $code;
+		eval($code);
+	}
+
+	$filename = "testcompilelogsSummary.xml";
+	$prefix = "test_";
+	$compileSummary = simplexml_load_file($filename);
+	foreach ($compileSummary->summaryItem as $summaryItem) {
+		$name = $summaryItem->name;
+		$value = $summaryItem->value;
+		$code= "\$" . $prefix . $name . " = " . $value . ";";
+		//echo "<br />code: " . $code;
+		eval($code);
+	}
+}
+
+
+?>
+
+
+</head>
+
+<body>
+
+<?php
+
+// tiny banner to remind when looking at "local" machine results
+$serverName = $_SERVER["SERVER_NAME"];
+
+if (!stristr($serverName, "eclipse.org") && !stristr($serverName,"you.are.at.eclipsecon.org")) {
+	echo '<center>
+          <p>
+          Reminder: this is <font color="#FF0000">' . 
+	$serverName .
+    '</font>
+          See also 
+          <a href="http://download.eclipse.org/webtools/downloads" target="_top">the live public Eclipse site</a>.
+          </p>
+          <hr />
+          </center>';
+
+}
+?>
+<table BORDER=0 CELLSPACING=2 CELLPADDING=2 WIDTH="100%">
+	<tr>
+		<td ALIGN=left><font face="'Bitstream Vera',Helvetica,Arial" size="+2"><b><?php echo "$type";?>
+		Build: <?php echo "$build";?></b></font></td>
+	
+	
+	<tr>
+		<td><font size="-1"><?php echo "$builddate";?></font></td>
+	</tr>
+	<tr>
+		<td>
+		<p>The Eclipse Web Tools Platform Project provides tools for Web
+		Development, and is a platform for adopters making add-on tools for
+		Web Development.</p>
+		</td>
+	</tr>
+</table>
+
+<!-- ***********  Required Prerequisites **************  -->
+<table border=0 cellspacing=2 cellpadding=2 width="100%">
+	<tr>
+		<td align="left" valign="top" bgcolor="#0080C0"><font
+			face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF">Required
+		Prerequisites and Handy Extras</font></td>
+	</tr>
+	<tr>
+		<td>
+		<p>These are the prerequisites to install and run the Web Tools
+		Platform. Also listed are some frequently needed links for
+		committer-required packages when creating new development
+		environments, or targets to run against.</p>
+		<p>Note that WTP requires Java 5 or higher (and, for some things,
+		actually requires a JDK rather than only a JRE) even though many other
+		<a href="http://www.eclipse.org/downloads/">Eclipse Projects</a> can
+		run with <a href="http://www.eclipse.org/downloads/moreinfo/jre.php">other
+		JRE levels</a>.</p>
+		</td>
+	</tr>
+	<tr>
+		<td>
+		<table border=0 cellspacing=1 cellpadding=1 width="90%" align="center">
+			<tr valign="top">
+				<td width="10%"></td>
+				<td width="55%">Eclipse Platform (Platform, JDT)</td>
+				<?php
+				//customize page depending on user's browser/platform, if we can detect it
+				$usersPlatform = getPlatform();
+				// assume windows by default, since likely most frequent, even for cases where
+				// platform is "unknown". I've noticed Opera reports 'unknown' :(
+				$recommendedFile=$eclipsefilewindows;
+				if (strcmp($usersPlatform,"linux")== 0) {
+					$recommendedFile=$eclipsefilelinux;
+				} else if (strcmp($usersPlatform,"mac") == 0) {
+					$recommendedFile=$eclipsefilemacosx;
+				}
+				?>
+				<td align="right" width="35%"><?php
+				echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $eclipseURL, $recommendedFile, $eclipseFSpathPrefix);
+				echo " or <a href=\"" . $eclipseBuildURL . "\">appropriate platform</a>";
+				echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
+				?>
+			
+			</tr>
+			<tr valign="top">
+				<td width="10%"></td>
+				<td>Eclipse Modeling Framework (EMF, XSD InfoSet)</td>
+				<td align="right"><?php
+				echo getPrereqReferenceOrName($eclipseMirrorScript, $emfMirrorPrefixuri, $emfURL, $emfFile, $eclipseFSpathPrefix);
+				echo " or <a href=\"" . $emfBuildHome . "\">equivalent</a></td>";
+				?>
+			
+			</tr>
+
+			<tr valign="top">
+				<td width="10%"></td>
+				<td>Graphical Editing Framework (GEF)</td>
+				<td align="right"><?php
+				echo getPrereqReferenceOrName($eclipseMirrorScript, $gefMirrorPrefixuri, $gefURL, $gefFile, $eclipseFSpathPrefix);
+				echo " or <a href=\"" . $gefBuildHome . "\">equivalent</a></td>";
+				?>
+			
+			</tr>
+
+			<tr valign="top">
+				<td width="10%"></td>
+				<td>Eclipse Test Framework (required only for Automated JUnit tests)</td>
+				<td align="right"><?php
+				echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $testURL, $testFile, $eclipseFSpathPrefix);
+				echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
+				?>
+			
+			</tr>
+
+			<tr valign="top">
+				<td width="10%"></td>
+				<td>Eclipse releng tool (required only for committers to more easily
+				"release" code to a build)</td>
+				<td align="right"><?php
+				echo getPrereqReferenceOrName($eclipseMirrorScript, $eclipseMirrorPrefixuri, $eclipserelengURL, $eclipserelengFile, $eclipseFSpathPrefix);
+				echo " or <a href=\"" . $eclipseBuildHome . "\">equivalent</a></td>";
+				?>
+			
+			</tr>
+
+
+		</table>
+		</td>
+	</tr>
+</table>
+
+<!-- ***********  WTP **************  -->
+<table border=0 cellspacing=2 cellpadding=2 width="100%">
+	<tr>
+		<td align=left valign=top colspan="5" bgcolor="#0080C0"><font
+			face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF"> Web Tools
+		Platform Patches</font></td>
+	</tr>
+
+	<tr>
+		<td align="left" valign="top" colspan="5">
+		<p>The Zip files contain patches</p>
+		</td>
+	</tr>
+	<tr>
+		<td>
+		<table border=0 cellspacing=2 cellpadding=2 width="90%" align="center">
+
+
+			<tr>
+				<td align="left" valign="top" width="10%"><b>Patch</b></td>
+				<td align="left" valign="top">
+				<p>Remember, care is needed in using patches from this page. These
+				patches are specific to particular use-cases or adopters and not
+				well tested for general cases.</p>
+				</td>
+				<?php
+				$zipfilename="wtp-@build@";
+				$filename=$zipfilename.".zip";
+				$zipfilesize=fileSizeForDisplay($filename);
+				$fileShortDescription="@build@";
+				displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
+				?>
+			</tr>
+		</table>
+		</td>
+	
+	
+	<tr>
+
+</table>
+
+
+
+
+
+
+
+<!-- ***********  Build Status **************  -->
+<table border=0 cellspacing=2 cellpadding=2 width="100%">
+	<tr>
+		<td align=left valign=top bgcolor="#0080C0"><font
+			face="'Bitstream Vera',Helvetica,Arial" color="#FFFFFF">Status, tests
+		and other interesting details</font></td>
+	</tr>
+	<tr>
+		<td>
+		<table border=0 cellspacing=2 cellpadding=2 width="90%" align="center">
+
+			<tr>
+				<td><a href="buildNotes.php">Build notes</a> <br />
+				<a href="directory.txt">map files</a> <br />
+				<?php
+
+				if ($displayTestSummary) {
+
+
+					if (isset($unitTests_grandTotalErrors)) {
+						$errorColor="green";
+						if ($unitTests_grandTotalErrors > 0) {
+							$errorColor="red";
+						}
+						echo "<a href=\"testResults.php\">Unit test results</a>&nbsp;";
+						echo "<img src=\"junit_err.gif\"/><font color=\"" . $errorColor . "\">" . $unitTests_grandTotalErrors . "</font>&nbsp;&nbsp;Total: " . $unitTests_grandTotalTests;
+					}
+					else {
+						echo "<br /><font color=\"orange\">Unit tests are pending</font>&nbsp;&nbsp;<img src=\"pending.gif\"/>";
+					}
+
+					echo "<br />";
+					echo "<a href=\"compileResults.php\">Compile logs: Code Bundles</a>";
+
+					echo "&nbsp;&nbsp;($code_totalBundles)&nbsp;&nbsp;";
+					echo "<img src=\"compile_err.gif\"/><font color=red>$code_totalErrors</font>&nbsp;";
+					echo "<img src=\"compile_warn.gif\"/><font color=orange>$code_totalWarnings</font>&nbsp;";
+					echo "<img src=\"access_err.gif\"/><font color=red>$code_totalforbiddenAccessWarningCount</font>&nbsp;";
+					echo "<img src=\"access_warn.gif\"/><font color=orange>$code_totaldiscouragedAccessWarningCount</font>&nbsp;";
+
+					echo "<br />";
+					echo "<a href=\"testCompileResults.php\">Compile logs: Test Bundles</a>";
+
+					echo "&nbsp;&nbsp;($test_totalBundles)&nbsp;&nbsp;";
+					echo "<img src=\"compile_err.gif\"/><font color=red>$test_totalErrors</font>&nbsp;";
+					echo "<img src=\"compile_warn.gif\"/><font color=orange>$test_totalWarnings</font>&nbsp;";
+					echo "<img src=\"access_err.gif\"/><font color=red>$test_totalforbiddenAccessWarningCount</font>&nbsp;";
+					echo "<img src=\"access_warn.gif\"/><font color=orange>$test_totaldiscouragedAccessWarningCount</font>&nbsp;";
+				}
+
+				?> <br />
+
+				<?php
+				if (file_exists("versioningReportName.php")) {
+					include "versioningReportName.php";
+					$fname="${versionReportFilename}.html";
+					if (file_exists($fname)) {
+						echo "<br /> <a href='$fname'>Versioning Information</a>";
+					}
+}
+?> <?php
+echo "<br />";
+if (file_exists("./apiresults/api-progress.html"))
+{
+	echo "<br /> <a href=\"apiresults/api-progress.html\">API Progress Report</a>";
+}
+if (file_exists("./apiresults/api-info-summary.html"))
+{
+	echo "<br /> <a href=\"apiresults/api-info-summary.html\">APIs Defined by Each Component</a>";
+}
+if (file_exists("./apiresults/api-ref-compatibility.html"))
+{
+	echo "<br /> <a href=\"apiresults/api-ref-compatibility.html\">Adopter Breakage Report</a>";
+}
+if (file_exists("./apiresults/api-violation-summary.html"))
+{
+	echo "<br /> <a href=\"apiresults/api-violation-summary.html\">API Violations</a>";
+}
+if (file_exists("./apiresults/component-api-violation-all.html"))
+{
+	echo "<br /> <a href=\"apiresults/component-api-violation-all.html\">Non-API dependencies</a>";
+}
+if (file_exists("./apiresults/api-tc-summary.html"))
+{
+	echo "<br /> <a href=\"apiresults/api-tc-summary.html\">API Test Coverage</a>";
+}
+if (file_exists("./apiresults/api-javadoc-summary.html"))
+{
+	echo "<br /> <a href=\"apiresults/api-javadoc-summary.html\">API Javadoc Coverage</a>";
+}
+if (file_exists("./apiresults/api-tc-summary.html"))
+{
+	echo "<br /><br /> <a href=\"apiresults/full_test_coverage/api-tc-summary.html\">Test Coverage for All Classes and Methods</a>";
+}
+?> <?php
+if (file_exists("./perfresults/graph/performance.php"))
+{
+	echo "<br />";
+	echo "<br /> <a href=\"perfresults/graph/performance.php\">Performance Results</a>";
+	echo "<br />";
+}
+?></td>
+			</tr>
+
+
+		</table>
+		</td>
+	</tr>
+</table>
+
+
+
+<!-- footer -->
+<center>
+<hr>
+<p>All downloads are provided under the terms and conditions of the <a
+	href="http://www.eclipse.org/legal/notice.html">Eclipse.org Software
+User Agreement</a> unless otherwise specified.</p>
+
+<p>If you have problems downloading the drops, contact the <font
+	face="'Bitstream Vera',Helvetica,Arial" size="-1"><a
+	href="mailto:webmaster@eclipse.org">webmaster</a></font>.</p>
+
+</center>
+<!-- end footer -->
+
+
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/patches312.site/templateFiles/siteEnablingFeatures.xml b/releng.wtpbuilder/distribution/patches312.site/templateFiles/siteEnablingFeatures.xml
new file mode 100644
index 0000000..cc3ed81
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/templateFiles/siteEnablingFeatures.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site>
+    <description> The update site contains the enabling features. </description>
+    <category-def
+        name="Enabling Features"
+        label="Enabling Features">
+        <description> This category contains features used by several
+            projects that enable some functionality, but which by
+            themselves are not very interesting. </description>
+    </category-def>
+</site>
\ No newline at end of file
diff --git a/releng.wtpbuilder/distribution/patches312.site/templateFiles/siteWTP.xml b/releng.wtpbuilder/distribution/patches312.site/templateFiles/siteWTP.xml
new file mode 100644
index 0000000..f94e83f
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/templateFiles/siteWTP.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<site
+    pack200="true"
+    mirrorsURL="http://www.eclipse.org/downloads/download.php?file=/webtools/testUpdates/site.xml&amp;format=xml"
+    digestURL="http://download.eclipse.org/webtools/testUpdates/">
+    <description
+        url="http://download.eclipse.org/webtools/declaredUpdates/index.html"> The update site contains the features of the of Eclipse Web
+        Tools Project (WTP) </description>
+    <feature
+        url="features/org.eclipse.wst_@org.eclipse.wst@.jar"
+        id="org.eclipse.wst"
+        version="@org.eclipse.wst@">
+        <category
+            name="Web Tools Platform (WTP)"/>
+    </feature>
+    <feature
+        url="features/org.eclipse.wst.sdk_@org.eclipse.wst.sdk@.jar"
+        id="org.eclipse.wst.sdk"
+        version="@org.eclipse.wst.sdk@">
+        <category
+            name="Web Tools Platform (WTP)"/>
+    </feature>
+    <feature
+        url="features/org.eclipse.jst_@org.eclipse.jst@.jar"
+        id="org.eclipse.jst"
+        version="@org.eclipse.jst@">
+        <category
+            name="Web Tools Platform (WTP)"/>
+    </feature>
+    <feature
+        url="features/org.eclipse.jst.sdk_@org.eclipse.jst.sdk@.jar"
+        id="org.eclipse.jst.sdk"
+        version="@org.eclipse.jst.sdk@">
+        <category
+            name="Web Tools Platform (WTP)"/>
+    </feature>
+    <feature
+        url="features/org.eclipse.jpt.feature_@org.eclipse.jpt.feature@.jar"
+        id="org.eclipse.jpt.feature"
+        version="@org.eclipse.jpt.feature@">
+        <category
+            name="Web Tools Platform (WTP)"/>
+    </feature>
+    <feature
+        url="features/org.eclipse.jpt_sdk.feature_@org.eclipse.jpt_sdk.feature@.jar"
+        id="org.eclipse.jpt_sdk.feature"
+        version="@org.eclipse.jpt_sdk.feature@">
+        <category
+            name="Web Tools Platform (WTP)"/>
+    </feature>
+    <category-def
+        name="Web Tools Platform (WTP)"
+        label="Web Tools Platform (WTP)">
+        <description> This category contains the features of the Eclipse
+            Web Tools Project (WTP). </description>
+    </category-def>
+</site>
\ No newline at end of file
diff --git a/releng.wtpbuilder/distribution/patches312.site/templateFiles/testCompileResults.php.template b/releng.wtpbuilder/distribution/patches312.site/templateFiles/testCompileResults.php.template
new file mode 100644
index 0000000..42d6f65
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/templateFiles/testCompileResults.php.template
@@ -0,0 +1,76 @@
+<html>
+<head>
+
+<?php
+        $parts = explode("/", getcwd());
+        $parts2 = explode("-", $parts[count($parts) - 1]);
+        $buildName = $parts2[1];
+
+        echo "<title>Compile Logs: Test Bundles for $buildName</title>";
+?>
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+
+<style>
+.bold, .bold TD, .bold TH, .bold TR
+{
+font-weight:bold;
+}
+.numeric, .numeric TD
+{
+text-align:right;
+padding-right:2em;
+}
+.normaltable, .normaltable TD, .normaltable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:White;
+}
+.errorltable, .errortable TD, .errortable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:Red;
+font-weight:Bold;
+}
+.warningtable, .warningtable TD, .warningtable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:khaki;
+}
+.extraWarningTable, .extraWarningTable TD, .extraWarningTable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:Yellow;
+}
+</style>
+</head>
+<body>
+
+<?php
+        echo "<h1>Compile Logs: Test Bundles for $buildName</h1>";
+?>
+
+
+<table id=tabledata align = "center" width="75%" border="1">
+  <tr>
+    <td class="bold" align="center">Compile Logs</td>
+    <td class="bold" align="center">Compile Errors</td>
+    <td class="bold" align="center">Compiler Warnings</td>
+    <td class="bold" align="center">Access Violations</td>
+    <td class="bold" align="center">Access Warnings</td>
+  </tr>
+
+  %compilelogs%
+
+</table>
+
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/patches312.site/templateFiles/testResults.php.template b/releng.wtpbuilder/distribution/patches312.site/templateFiles/testResults.php.template
new file mode 100644
index 0000000..2f2fba8
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/templateFiles/testResults.php.template
@@ -0,0 +1,118 @@
+<html>
+<head>
+
+<?php
+	$parts = explode("/", getcwd());
+	$parts2 = explode("-", $parts[count($parts) - 1]);
+	$buildName = $parts2[1];
+	
+	echo "<title>Test Results for $buildName </title>";
+?>
+
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+
+<style>
+.bold, .bold TD, .bold TH, .bold TR
+{
+font-weight:bold;
+}
+.numeric, .numeric TD
+{
+text-align:right;
+padding-right:2em;
+}
+.normaltable, .normaltable TD, .normaltable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:White;
+}
+.errorltable, .errortable TD, .errortable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:Red;
+font-weight:Bold;
+}
+.warningtable, .warningtable TD, .warningtable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:khaki;
+}
+.extraWarningTable, .extraWarningTable TD, .extraWarningTable TH
+{
+font-family:Bitstream Vera Sans Mono, monospace;
+font-size:0.9em;
+color:Black;
+background-color:Yellow;
+
+}
+</style>
+
+
+</head>
+<body>
+<p><b><font face="Verdana" size="+3">Test Results</font></b> </p>
+
+<table border=0 cellspacing=5 cellpadding=2 width="100%" >
+  <tr> 
+    <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">
+    Unit Test Results for <?php echo "$buildName"; ?> on Various Platforms and JRE</font></b></td>
+  </tr>
+</table>
+
+<?php
+if (file_exists("testResults"))
+{
+$dir = dir("testResults");
+while ($anEntry = $dir->read())
+{
+  if ($anEntry != "." && $anEntry != ".." && $anEntry != "consolelogs" && $anEntry != "html" && $anEntry != "xml")
+  {
+    $link = "testResults/".$anEntry."/results/index.php";
+    echo "<p><a href=\"$link\">$anEntry</a></p>";
+  }
+}
+}
+?>
+
+<table border=0 cellspacing=5 cellpadding=2 width="100%" >
+  <tr> 
+    <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">Unit 
+      Test Results for <?php echo "$buildName"; ?> </font></b></td>
+  </tr>
+</table>
+
+<table id=tableunittestdata align = "center" width="75%" border="1">
+  <tr> 
+    <td class="bold" align="center" width="70%">Test Suite</td>
+    <td class="bold" align="center" width="15%">Errors &amp; Failures</td>
+    <td class="bold" align="center" width="15%">Total Tests</td>
+  </tr>
+  
+  
+  %testresults%
+  
+</table>
+<p></p>
+<br>
+<table border=0 cellspacing=5 cellpadding=2 width="100%" >
+  <tr> 
+    <td align=LEFT valign=TOP colspan="3" bgcolor="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica"> 
+      Console output logs 
+      <?php echo "$buildName"; ?>
+      </font></b></td>
+  </tr>
+</table>
+<br>
+These <a href="consoleLogs.php">logs</a> contain the console output captured while 
+running the JUnit automated tests. <br>
+<br>
+
+
+</body>
+</html>
diff --git a/releng.wtpbuilder/distribution/patches312.site/transformReportToHTML.xml b/releng.wtpbuilder/distribution/patches312.site/transformReportToHTML.xml
new file mode 100644
index 0000000..9231345
--- /dev/null
+++ b/releng.wtpbuilder/distribution/patches312.site/transformReportToHTML.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+    name="xsl-conversion"
+    default="main"
+    basedir=".">
+    <target
+        name="main"
+        description="example.bin.xml to produce example.html">
+        <xslt
+            basedir="."
+            destdir="."
+            includes="*.bin.xml"
+            scanincludeddirectories="true"
+            style="compilerXMLOutputToHTML.xsl"
+            force="true"/>
+    </target>
+</project>
\ No newline at end of file