From 4a022dd450498b65af9a2ad77397b51e34ecd577 Mon Sep 17 00:00:00 2001
From: david_williams <david_williams>
Date: Tue, 26 May 2009 04:13:39 +0000
Subject: [PATCH] build wtp jee product

---
 releng.control/cc_config.xml                  |  28 +
 releng.wtpbuilder/buildtemplates/build.xml    |   2 +-
 .../buildtemplates/wtpjee.properties          |  40 ++
 .../components/wtpjee/build.properties        |  45 ++
 .../components/wtpjee/customTargets.xml       | 319 +++++++++
 .../components/wtpjee/dependency.xml          |  76 ++
 .../distribution/wtpjee.build/build.xml       |  83 +++
 .../distribution/wtpjee.site/build.xml        | 170 +++++
 .../wtpjee.site/compilerXMLOutputToHTML.xsl   | 171 +++++
 .../distribution/wtpjee.site/publish.xml      | 649 ++++++++++++++++++
 .../staticDropFiles/access_err.gif            | Bin 0 -> 906 bytes
 .../staticDropFiles/access_warn.gif           | Bin 0 -> 146 bytes
 .../staticDropFiles/buildNotes.php            |  63 ++
 .../staticDropFiles/compile_err.gif           | Bin 0 -> 167 bytes
 .../staticDropFiles/compile_warn.gif          | Bin 0 -> 152 bytes
 .../staticDropFiles/consoleLogs.php           |  94 +++
 .../wtpjee.site/staticDropFiles/junit_err.gif | Bin 0 -> 220 bytes
 .../wtpjee.site/staticDropFiles/logIndex.php  |  84 +++
 .../wtpjee.site/staticDropFiles/miscUtil.php  | 219 ++++++
 .../wtpjee.site/staticDropFiles/pending.gif   | Bin 0 -> 365 bytes
 .../wtpjee.site/staticDropFiles/pending1.gif  | Bin 0 -> 958 bytes
 .../wtpjee.site/staticDropFiles/report2.php   |  45 ++
 .../templateFiles/compileResults.php.template |  76 ++
 .../templateFiles/index.html.template.php     | 614 +++++++++++++++++
 .../templateFiles/siteEnablingFeatures.xml    |  11 +
 .../wtpjee.site/templateFiles/siteWTP.xml     |  57 ++
 .../testCompileResults.php.template           |  76 ++
 .../templateFiles/testResults.php.template    | 119 ++++
 .../wtpjee.site/transformReportToHTML.xml     |  17 +
 29 files changed, 3057 insertions(+), 1 deletion(-)
 create mode 100644 releng.wtpbuilder/buildtemplates/wtpjee.properties
 create mode 100644 releng.wtpbuilder/components/wtpjee/build.properties
 create mode 100644 releng.wtpbuilder/components/wtpjee/customTargets.xml
 create mode 100644 releng.wtpbuilder/components/wtpjee/dependency.xml
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.build/build.xml
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/build.xml
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/compilerXMLOutputToHTML.xsl
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/publish.xml
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/access_err.gif
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/access_warn.gif
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/buildNotes.php
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/compile_err.gif
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/compile_warn.gif
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/consoleLogs.php
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/junit_err.gif
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/logIndex.php
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/miscUtil.php
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/pending.gif
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/pending1.gif
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/report2.php
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/templateFiles/compileResults.php.template
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/templateFiles/index.html.template.php
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/templateFiles/siteEnablingFeatures.xml
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/templateFiles/siteWTP.xml
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/templateFiles/testCompileResults.php.template
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/templateFiles/testResults.php.template
 create mode 100644 releng.wtpbuilder/distribution/wtpjee.site/transformReportToHTML.xml

diff --git a/releng.control/cc_config.xml b/releng.control/cc_config.xml
index 2f80b3255..ef5d49fed 100644
--- a/releng.control/cc_config.xml
+++ b/releng.control/cc_config.xml
@@ -327,6 +327,34 @@
             </ant>
         </schedule>
     </project>
+    <project
+        forceOnly="true"
+        requireModification="true"
+        name="wtpjee-R3.1-S">
+        <modificationset
+            quietperiod="120">
+            <cvs
+                module="${env.RELENG}"
+                reallyquiet="${env.CVS_QUIET}"/>
+        </modificationset>
+        <schedule
+            interval="${time.oneHour}">
+            <ant>
+                <property
+                    name="buildType"
+                    value="S"/>
+                <property
+                    name="buildBranch"
+                    value="R3.1"/>
+                <property
+                    name="mapVersionTag"
+                    value="HEAD"/>
+                <property
+                    name="build.distribution"
+                    value="wtpjee"/>
+            </ant>
+        </schedule>
+    </project>    
     <project
         forceOnly="false"
         requireModification="true"
diff --git a/releng.wtpbuilder/buildtemplates/build.xml b/releng.wtpbuilder/buildtemplates/build.xml
index 7e0f8373d..676714252 100644
--- a/releng.wtpbuilder/buildtemplates/build.xml
+++ b/releng.wtpbuilder/buildtemplates/build.xml
@@ -20,7 +20,7 @@
     -->
     <property
         name="componentpropertyfile"
-        value="wtpcap.properties"/>
+        value="wtpjee.properties"/>
     <property
         file="${componentpropertyfile}"/>
     <!--
diff --git a/releng.wtpbuilder/buildtemplates/wtpjee.properties b/releng.wtpbuilder/buildtemplates/wtpjee.properties
new file mode 100644
index 000000000..9d0c2f016
--- /dev/null
+++ b/releng.wtpbuilder/buildtemplates/wtpjee.properties
@@ -0,0 +1,40 @@
+# 'shortname' effects all foldernames too, plus some content, in distribution section
+# should be same name as this property file (for future use). 
+shortname=wtpjee
+
+
+# These first three properties are mainly for component templates
+
+#  'featurename' assumes group of three features
+#  a) featurename.feature
+#  b) featurename_sdk.feature
+#  c) featurename_tests.feature
+
+featurename=org.eclipse.wtp.package.jee
+
+#  'zipprefix' is prefixed to -[type]-${buildlabel},
+#  where type is empty, 'sdk' or 'tests',
+#  usually of the form [top-level project]-[project]-[component]
+#  for example, wtp-incubator-xmlsecurity
+zipprefix=wtpjee
+
+#  'relengmapseng' must match the environment variable set in
+#  commonComputedVariables, such as RELENGXMLSEC
+relengmapsenv=RELENG
+
+#  prereq is the basic prereq on top of platform, jdt, emf, gef
+#  (only realistic options for right now are wst, jst).
+# we don't really need wst ... but, not sure what will work here 
+basicprereq=
+
+# These next properties are mainly for distribution template files
+
+# longdescription appears on the download webpage
+longdescription=The Zip file contains productized Java EE Developer Tools
+
+# testplugin is the "main" test plugin, which may "call" the others
+testplugin=
+
+
+# omit (or set to true) for incubating projects for proper webpage
+incubating=false
\ No newline at end of file
diff --git a/releng.wtpbuilder/components/wtpjee/build.properties b/releng.wtpbuilder/components/wtpjee/build.properties
new file mode 100644
index 000000000..1232026cf
--- /dev/null
+++ b/releng.wtpbuilder/components/wtpjee/build.properties
@@ -0,0 +1,45 @@
+###############################################################################
+# Copyright (c) 2003, 2009 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
+
+#############################################################
+
+# Properties introduced in 3.5 M3 (PDE base builder R35_M2). See
+# http://aniefer.blogspot.com/2008/10/sorting-bundles-and-parallel.html
+
+flattenDependencies=true
+parallelCompilation=true
diff --git a/releng.wtpbuilder/components/wtpjee/customTargets.xml b/releng.wtpbuilder/components/wtpjee/customTargets.xml
new file mode 100644
index 000000000..58811d63e
--- /dev/null
+++ b/releng.wtpbuilder/components/wtpjee/customTargets.xml
@@ -0,0 +1,319 @@
+<project
+    name="PDECustomTargets"
+    default="noDefault"
+    basedir=".">
+    <!--
+        = = = 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="dependancy.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="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="org.eclipse.wtp.package.jee.feature"/>
+        </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.package.jee.feature">
+        <property
+            name="archiveName"
+            value="wtpjee-${buildLabel}.zip"/>
+        <ant
+            antfile="${assembleScriptName}"
+            dir="${buildDirectory}"/>
+    </target>
+    <target
+        name="prePackage"/>
+    <target
+        name="postPackage">
+        <property
+            name="archiveName"
+            value="wtpjee-${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">
+        <ant
+            antfile="${wtp.builder.home}/scripts/build/maptasks.xml"
+            target="maputil">
+            <property
+                name="mapcomponent"
+                value="${env.RELENG}"/>
+            <property
+                name="mapTag"
+                value="${mapVersionTag}"/>
+        </ant>
+        <ant
+            antfile="${wtp.builder.home}/scripts/build/maptasks.xml"
+            target="maputil">
+            <property
+                name="mapcomponent"
+                value="${env.RELENG}"/>
+            <property
+                name="mapTag"
+                value="${mapVersionTag}"/>
+        </ant>
+    </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"/>
+    </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}/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/org.eclipse.wtp.package.jee.feature">
+                <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/wtpjee/dependency.xml b/releng.wtpbuilder/components/wtpjee/dependency.xml
new file mode 100644
index 000000000..350dbac0b
--- /dev/null
+++ b/releng.wtpbuilder/components/wtpjee/dependency.xml
@@ -0,0 +1,76 @@
+<?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, which we do later with
+            statements such if="${groupId}.url"
+        -->
+        <property
+            file="${dependency.properties}"/>
+        <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="dtp"/> </antcall>
+        -->
+        <antcall
+            target="getAndInstall">
+            <param
+                name="groupId"
+                value=""/>
+        </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/wtpjee.build/build.xml b/releng.wtpbuilder/distribution/wtpjee.build/build.xml
new file mode 100644
index 000000000..213882b52
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.build/build.xml
@@ -0,0 +1,83 @@
+<project
+    default="build"
+    basedir=".">
+    <fail
+        unless="wtp.builder.home"/>
+    <property
+        file="${wtp.builder.home}/build.properties"/>
+    <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"/>
+        <!--
+            for this distribution, dependencies come from project's
+            releng map project
+        -->
+        <property
+            name="dependency.properties"
+            value="${buildDirectory}/maps/${env.RELENG}/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="wtpjee"/>
+        </ant>
+        <ant
+            antfile="${buildTargets}">
+            <property
+                name="component"
+                value="wtpjee_sdk"/>
+        </ant>
+        <ant
+            antfile="${buildTargets}">
+            <property
+                name="component"
+                value="wtpjee_tests"/>
+            <property
+                name="eclipseBuildFailOnError"
+                value="false"/>
+        </ant>
+
+        <!-- package -->
+        <antcall
+            target="package"/>
+    </target>
+
+    <!-- invoking runbuild.xml targetting getBaseBuilder -->
+    <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"/>
+        <echo
+            level="info"
+            message="invoking buildTargets: ${buildTargets} -> getBaseBuilder"/>
+        <ant
+            antfile="${buildTargets}"
+            target="getBaseBuilder"/>
+    </target>
+    <target
+        name="package">
+        <!--
+            post, post packaging, for WTP ... "manually" assemble the
+            desired zips
+        -->
+        <!-- nothing to assemble right now -->
+    </target>
+</project>
\ No newline at end of file
diff --git a/releng.wtpbuilder/distribution/wtpjee.site/build.xml b/releng.wtpbuilder/distribution/wtpjee.site/build.xml
new file mode 100644
index 000000000..1b3b037d1
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.site/build.xml
@@ -0,0 +1,170 @@
+<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="-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}"/>
+            <jvmarg
+                value="-Djava.protocol.handler.pkgs=com.ibm.etools.www.protocol"/>
+            <jvmarg
+                value="-DurlLogLocation=${buildDirectory}/outgoinghttplogfromsitebuild.log"/>
+            <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}"/>
+        <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/wtpjee.site/compilerXMLOutputToHTML.xsl b/releng.wtpbuilder/distribution/wtpjee.site/compilerXMLOutputToHTML.xsl
new file mode 100644
index 000000000..ffc790565
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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/wtpjee.site/publish.xml b/releng.wtpbuilder/distribution/wtpjee.site/publish.xml
new file mode 100644
index 000000000..3380b3692
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.site/publish.xml
@@ -0,0 +1,649 @@
+<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"/>
+    <fail
+        unless="buildDirectory"
+        message="buildDirectory must be provided to publish"/>
+    <fail
+        unless="buildLabel"
+        message="buildLabel must be provided to publish"/>
+    <fail
+        unless="wtp.builder.home"
+        message="wtp.builder.home must be provided to publish"/>
+    <fail
+        unless="build.distribution"
+        message="build.distribution must be provided to publish"/>
+    <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
+        -->
+        <property
+            file="${buildDirectory}/maps/${env.RELENG}/maps/dependencies.properties"/>
+
+        <!-- create tables of test plugin compiles first -->
+        <antcall
+            target="generateTestCompileOutput">
+            <param
+                name="outputDirectory"
+                value="${resultDir}/testcompilelogs"/>
+        </antcall>
+
+        <!-- create table of code plugins compiles -->
+        <antcall
+            target="generateCompileOutput">
+            <param
+                name="outputDirectory"
+                value="${resultDir}/compilelogs"/>
+        </antcall>
+        <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="generateTestCompileOutput"
+        depends="checkIfCompileLogs"
+        if="doCompileLogs">
+        <summarizeResults
+            isBuildTested="false"
+            includeAll="true"
+            dropTokenList="${dropTokenList}"
+            xmlDirectoryName=""
+            dropDirectoryName="${resultDir}"
+            testResultsTemplateFileName="${templateDir}/templateFiles/testCompileResults.php.template"
+            testResultsHtmlFileName="testCompileResults.php"
+            hrefTestResultsTargetPath=""
+            hrefCompileLogsTargetPath="testcompilelogs"
+            compileLogsDirectoryName="${outputDirectory}"/>
+        <antcall
+            target="compilerXMLToHTML"/>
+    </target>
+    <target
+        name="generateCompileOutput"
+        depends="checkIfCompileLogs"
+        if="doCompileLogs">
+        <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="${outputDirectory}"/>
+        <antcall
+            target="compilerXMLToHTML"/>
+    </target>
+    <target
+        name="compilerXMLToHTML">
+        <xslt
+            basedir="${outputDirectory}"
+            destdir="${outputDirectory}"
+            includes="**/*.xml"
+            scanincludeddirectories="true"
+            style="compilerXMLOutputToHTML.xsl"
+            force="true"/>
+    </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
+        -->
+        <property
+            file="${buildDirectory}/maps/${env.RELENG}/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="updateSite">
+
+
+        <!-- get our authored, tokenized site.xml file -->
+        <copy
+            file="${wtp.builder.home}/distribution/${build.distribution}.site/templateFiles/siteWTP.xml"
+            tofile="${buildDirectory}/${buildLabel}/updateSite/site.xml"
+            overwrite="true"
+            failonerror="true"/>
+        <!--
+            get the ${buildDirectory}/finalPluginsVersions.properties,
+            and read as properties
+        -->
+        <!-- substitute property value for tokens -->
+        <replace
+            file="${buildDirectory}/${buildLabel}/updateSite/site.xml"
+            propertyfile="${buildDirectory}/finalFeaturesVersions.properties">
+            <replacefilter
+                token="@org.eclipse.wtp@"
+                property="org.eclipse.wtp"/>
+            <replacefilter
+                token="@org.eclipse.wtp.sdk@"
+                property="org.eclipse.wtp.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="checkIfTested">
+        <echo
+            level="debug"
+            message="isBuildTested: ${isBuildTested}"/>
+        <condition
+            property="doTests">
+            <equals
+                arg1="${isBuildTested}"
+                arg2="true"
+                trim="true"
+                casesensitive="false"/>
+        </condition>
+    </target>
+    <target
+        name="checkIfCompileLogs">
+        <condition
+            property="doCompileLogs">
+            <available
+                file="${outputDirectory}"/>
+        </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="@emfName@"
+            value="${emf.name}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfDescription@"
+            value="${emf.description}"/>
+        <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="@emfxsdFile@"
+            value="${emfxsd.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfxsdName@"
+            value="${emfxsd.name}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfxsdDescription@"
+            value="${emfxsd.description}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfxsdURL@"
+            value="${emfxsd.url}/${emfxsd.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfxsdBuildHome@"
+            value="${emfxsd.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@emfxsd.mirror.prefixuri@"
+            value="${emfxsd.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="@jstFile@"
+            value="${jst.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@jstURL@"
+            value="${jst.url}/${jst.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@jstBuildHome@"
+            value="${jst.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@jst.mirror.prefixuri@"
+            value="${jst.mirror.prefixuri}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@wtpFile@"
+            value="${wtp.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@wtpURL@"
+            value="${wtp.url}/${wtp.file}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@wtpBuildHome@"
+            value="${wtp.build.home}"/>
+        <replace
+            file="${resultingIndex}"
+            token="@wtp.mirror.prefixuri@"
+            value="${wtp.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/wtpjee.site/staticDropFiles/access_err.gif b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/access_err.gif
new file mode 100644
index 0000000000000000000000000000000000000000..4f0748abc07d0bfb1843809a7b4cb4ddf6ded917
GIT binary patch
literal 906
zcmZ?wbhEHb6krfwXlG!kx3`~RVX@!detv!ZeS7;K78d{i|7RElqaiRdLO}5+3(%wg
z8FWD21?33_j&ufI4jGRP3l27O@bU;82sqHt!o=mF<KW=X&@8AbH6vr=0|q83?wlnr
zCM;l>pzJznkHv>2rzVIp&T#RZu;k1%4fVV=CxRXvpRT2Ary|kNaB;C%z8KGi35g6#
U+1PDZ1rjn2t&ZSkV_~oc0PmGG*#H0l

literal 0
HcmV?d00001

diff --git a/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/access_warn.gif b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/access_warn.gif
new file mode 100644
index 0000000000000000000000000000000000000000..8386e3e02a26c4922cb7ee4f8d978de11617db66
GIT binary patch
literal 146
zcmZ?wbhEHb6krfwXl7ve|3Ci!ef#_S?f>78-#_2}|9<=V_4fPs?~jj<X8_6m2a?D@
z@h1y20|OU>4oDDW1_O(Iz)8>5dn>pmy}aqJ&dG3~RDJ@Fx|`aE3AGz$ZMhn~>c^Br
k4o({3UT=hEdwG?b@T#^nmRR}vakQ-|%ND3~6=bjm0K5D$djJ3c

literal 0
HcmV?d00001

diff --git a/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/buildNotes.php b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/buildNotes.php
new file mode 100644
index 000000000..e843ecfa6
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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/wtpjee.site/staticDropFiles/compile_err.gif b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/compile_err.gif
new file mode 100644
index 0000000000000000000000000000000000000000..c2bfdd606b59240410feb5ce0f1dc8ec7c7f35e3
GIT binary patch
literal 167
zcmZ?wbhEHb6krfw*v!E2zux{wgvI}O`yUn-_wDWX+uP5uu&B4U|G$6#{QCO;V8DO`
z6o0ZXGB9v6=zzpPW-zdX6rA*2y|-fNA@5U175H2dV-y!~I4+nGYQ(^>h=(hvE?DY;
zrO+Dl1V-1T%&K2D-)-?qI$*Y7n%`s=Msp_xpFN$84tlc}i8{9@J46e;ZC0GK^0uZR
GgEaspw>pUc

literal 0
HcmV?d00001

diff --git a/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/compile_warn.gif b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/compile_warn.gif
new file mode 100644
index 0000000000000000000000000000000000000000..cf4fdf93c71b7ab2cb28dfd06fed9c563fa29214
GIT binary patch
literal 152
zcmZ?wbhEHb6krfw*v!E2|9|}d`}X(u+yB2Gzkj~{|NZv!>+SdN-ya_z&j6DB4<wO+
z;!hSv1_mw$9grZ%3<eh0fRmo9_f~LCdU?}bo%4WNowGxW<V*#%wtYvtCLWMJa+RHD
qmsGct6a&)<+2hIvY#EG-tqC$bT&#`LmMci?d$7ULMa-3f!5RR&`!Was

literal 0
HcmV?d00001

diff --git a/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/consoleLogs.php b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/consoleLogs.php
new file mode 100644
index 000000000..7dd5f4219
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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/wtpjee.site/staticDropFiles/junit_err.gif b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/junit_err.gif
new file mode 100644
index 0000000000000000000000000000000000000000..1b7ff9de097c6edf4a1f8bea018859942d04bb65
GIT binary patch
literal 220
zcmZ?wbhEHb6krfwIKsg2V8f<|yLO)xQ@tmzf5XZDrg!+Q_^cPX<+rnnUli5cDXF<r
z*Lt_3?`_Yt4VMpYymU~p#lLd%l!Ld<2F@-nTie&abK&g$D<2&>@*fNsFo5Du7DfgJ
zNd_H|49HFf*2o04zLd;)8C6li)`6=m97A<3mzjlo)EjcNy%bz2*dpodb|8mK#%)PZ
zK?aXhdwPgTZi3K^W5Fd)^w=L9aZq?DWYlofa<3e#NULkYOV;k-kgy1*20tH7MFwjC
D`rKBK

literal 0
HcmV?d00001

diff --git a/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/logIndex.php b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/logIndex.php
new file mode 100644
index 000000000..0b36334d7
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/logIndex.php
@@ -0,0 +1,84 @@
+<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/wtpjee.site/staticDropFiles/miscUtil.php b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/miscUtil.php
new file mode 100644
index 000000000..966ed4891
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/miscUtil.php
@@ -0,0 +1,219 @@
+<?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";
+	if (file_exists($filename)) {
+      	$zipfilesize=filesize($filename);
+      	if ($zipfilesize > $criteria) {
+      		$zipfilesize=round($zipfilesize/$onemeg, 0);
+      		$scaleChar = "M";
+      	}
+      	else {
+      		$zipfilesize=round($zipfilesize/$onekilo, 0);
+      		$scaleChar = "K";
+      	}
+  	} 
+  	else {
+  	   $zipfilesize = 0;
+  	}
+	$result =  "(" . $zipfilesize . $scaleChar . ")";
+	return $result;
+}
+
+
+function displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription) {
+	echo "<td align=\"right\" valign=\"top\" width=\"30%\">";
+	echo "<a href=\"$downloadprefix$filename\">" . $fileShortDescription . "</a>";
+	echo "</td><td align=\"right\" valign=\"top\" width=\"3%\">";
+	echo $zipfilesize;
+	echo "</td>";
+	echo "<td align=\"right\" valign=\"top\" width=\"2%\">";
+	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;
+    }
+	}
+	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/wtpjee.site/staticDropFiles/pending.gif b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/pending.gif
new file mode 100644
index 0000000000000000000000000000000000000000..66db2a627b7af1993ba6acc7e25ec24f2bf994f5
GIT binary patch
literal 365
zcmZ?wbhEHb6krfwIKsvN1T8Hs$BrHQ{{8#^{|x`Z03=Ec05nYTKewN2NU*bGfUA+7
z0W%{D1B2pE7FHcbHU=G#6(DCYuqG`?<Z)G$Vy#^EvVqG<;6R?$v^It}dmJ_`W@vEG
zVPet?aZHyHVr-iF*;19E;7r=ZSK1ug_slg__+?g^99YKvt#eh*YfX0ZUH)kXLaIhD
z4+W^Jm@*p}nJAemYj}2du__{2%g(^Uz{J1|w3bCdu}=}<9(D#!xP$_-1PcQ@11k_R
vu<|G<NVRcH&~RL$y|N9gla&GJ6BeM65Cyyo6qy<_Ca8I?dF0ih$Y2csoUl&Q

literal 0
HcmV?d00001

diff --git a/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/pending1.gif b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/pending1.gif
new file mode 100644
index 0000000000000000000000000000000000000000..1b2ea6ebcfe9b3acebacfb61f004e105bb6fb502
GIT binary patch
literal 958
zcmZ?wbhEHb6krfwXlDQcMn*;^CMITPW)>C}R#w*k{}~z@8V(#d@bTlv&!0bk|Ni~w
z&!4}3{rdg;_n$w1{{H>@@87@wKt-cqGz5lz2q^w!VP;?uV$cD31(YWkIA$}bdK3sK
zHaTz#DoBWM96ZR(%BHN~Q1IY@OS6C!kB$Z-V*>+&6O)6$L&p{teia)Fh64?!r!(+5
z2t)`RWSF5F+h@a}xZH0(8$-dDA4VD%CUQlJu_`z)G%&F-$p};^90;1o(&YD+W6KJ^
zNla_2bfq37xHBg2*IRNc^!1sULTObZl0uCB96XP_mShONacB_|Q)uD7k#LHGk&(d~
E05*|VjQ{`u

literal 0
HcmV?d00001

diff --git a/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/report2.php b/releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/report2.php
new file mode 100644
index 000000000..52d2284f5
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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/wtpjee.site/templateFiles/compileResults.php.template b/releng.wtpbuilder/distribution/wtpjee.site/templateFiles/compileResults.php.template
new file mode 100644
index 000000000..f7857717a
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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/wtpjee.site/templateFiles/index.html.template.php b/releng.wtpbuilder/distribution/wtpjee.site/templateFiles/index.html.template.php
new file mode 100644
index 000000000..7fa5f3480
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.site/templateFiles/index.html.template.php
@@ -0,0 +1,614 @@
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+
+<title>WTP Incubator 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@";
+
+$jstURL="@jstURL@";
+$jstFile="@jstFile@";
+$jstMirrorPrefixuri="@jst.mirror.prefixuri@";
+$jstBuildHome="@jstBuildHome@";
+
+$wtpURL="@wtpURL@";
+$wtpFile="@wtpFile@";
+$wtpMirrorPrefixuri="@wtp.mirror.prefixuri@";
+$wtpBuildHome="@wtpBuildHome@";
+
+$gefURL="@gefURL@";
+$gefFile="@gefFile@";
+$gefMirrorPrefixuri="@gef.mirror.prefixuri@";
+$gefBuildHome="@gefBuildHome@";
+
+$emfURL="@emfURL@";
+$emfFile="@emfFile@";
+$emfMirrorPrefixuri="@emf.mirror.prefixuri@";
+$emfBuildHome="@emfBuildHome@";
+$emfName="@emfName@";
+$emfDescription="@emfDescription@";
+
+$emfsourceURL="@emfsourceURL@";
+$emfsourceFile="@emfsourceFile@";
+$emfsourceMirrorPrefixuri="@emfsource.mirror.prefixuri@";
+$emfsourceBuildHome="@emfsourceBuildHome@";
+$emfsourceName="@emfsourceName@";
+$emfsourceDescription="@emfsourceDescription@";
+
+
+$emfxsdURL="@emfxsdURL@";
+$emfxsdFile="@emfxsdFile@";
+$emfxsdMirrorPrefixuri="@emfxsd.mirror.prefixuri@";
+$emfxsdBuildHome="@emfxsdBuildHome@";
+$emfxsdName="@emfxsdName@";
+$emfxsdDescription="@emfxsdDescription@";
+
+$emfxsdsourceURL="@emfxsdsourceURL@";
+$emfxsdsourceFile="@emfxsdsourceFile@";
+$emfxsdsourceMirrorPrefixuri="@emfxsdsource.mirror.prefixuri@";
+$emfxsdsourceBuildHome="@emfxsdsourceBuildHome@";
+$emfxsdsourceName="@emfxsdsourceName@";
+$emfxsdsourceDescription="@emfxsdsourceDescription@";
+
+
+$dtpURL="@dtpURL@";
+$dtpFile="@dtpFile@";
+$dtpMirrorPrefixuri="@dtp.mirror.prefixuri@";
+$dtpBuildHome="@dtpBuildHome@";
+
+
+$eclipserelengFile="@eclipserelengFile@";
+$eclipserelengURL="@eclipserelengURL@";
+$orbitthirdpartyzipFile="@orbitthirdpartyzipFile@";
+$orbitthirdpartyzipURL="@orbitthirdpartyzipURL@";
+$orbitthirdpartyzipBuildHome="@orbitthirdpartyzipBuildHome@";
+$orbitthirdpartyzipMirrorPrefixuri="@orbitthirdpartyzip.mirror.prefixuri@";
+
+$incubating = false;
+
+
+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/wtpjee-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) {
+
+        $code_totalBundles=0;
+        $code_totalErrors=0;
+        $code_totalWarnings=0;
+        $code_totalforbiddenAccessWarningCount=0;
+        $code_totaldiscouragedAccessWarningCount=0;
+        
+        $test_totalBundles=0;
+        $test_totalErrors=0;
+        $test_totalWarnings=0;
+        $test_totalforbiddenAccessWarningCount=0;
+        $test_totaldiscouragedAccessWarningCount=0;
+
+
+        $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";
+        if (file_exists($filename)) {
+          $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";
+        if (file_exists($filename)) {
+          $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>';
+
+}
+?>
+
+<?php if ($incubating) { ?>
+<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>
+           <td align="right" rowspan="3"><a
+  href="http://www.eclipse.org/projects/what-is-incubation.php"><img
+  src="http://www.eclipse.org/images/egg-incubation.png" alt="Incubation"
+  align="middle" border="0"></a></td>
+
+        <tr valign="top">
+                <td><font size="-1"><?php echo "$builddate";?></font></td>
+        </tr>
+        <tr valign="top">
+                <td>
+                <p>The Eclipse Web Tools Platform (WTP) Incubator Project provides
+                tools for development that are just getting started, or are
+                experimental in some fashion.</p>
+                </td>
+        </tr>
+</table>
+
+<?php } else { ?>
+
+<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 valign="top">
+                <td><font size="-1"><?php echo "$builddate";?></font></td>
+        </tr>
+        <tr valign="top">
+                <td>
+                <p>Component build from the Eclipse Web Tools Platform (WTP) Project.</p>
+                </td>
+        </tr>
+</table>
+
+<?php } ?>
+
+<!-- ***********  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">Prerequisites and Handy Extras</font></td>
+        </tr>
+        <tr>
+                <td>
+                <p>These are the prerequisites to build or run these packages. 
+                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><p></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="40%">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"><?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>
+                                <?php 
+                                echo $emfName . "&nbsp;" . $emfDescription ; 
+                                ?>
+                                </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>
+                                <?php 
+                                echo $emfxsdName . "&nbsp;" . $emfxsdDescription ; 
+                                ?>
+                                </td>
+                                <td align="right"><?php
+                                echo getPrereqReferenceOrName($eclipseMirrorScript, $emfxsdMirrorPrefixuri, $emfxsdURL, $emfxsdFile, $eclipseFSpathPrefix);
+                                echo " or <a href=\"" . $emfxsdBuildHome . "\">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="middle">
+                                <td width="10%"></td>
+                                <td colspan="2">
+                                <hr />
+                                </td>
+                        </tr>
+
+
+                        <tr valign="top">
+                                <td width="10%"></td>
+                                <td>Web Tools Platform portion</td>
+                                <td align="right"><?php
+                                // debug
+                                // echo "debug: full path: " . $eclipseFSpathPrefix . "/" . $wstMirrorPrefixuri . "/" . $wstFile;
+                                
+                                echo getPrereqReferenceOrName($eclipseMirrorScript, $MirrorPrefixuri, $URL, $File, $eclipseFSpathPrefix);
+                                echo " or <a href=\"" . $BuildHome . "\">equivalent</a></td>";
+                                ?>
+
+                        </tr>
+                        <tr valign="middle">
+                                <td width="10%"></td>
+                                <td colspan="2">
+                                <hr />
+                                </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>
+
+                        <tr valign="top">
+                                <td width="10%"></td>
+                                <td>Third Party code from Orbit (currently much more than needed
+                                for WTP, but some committers like having the whole heap in their
+                                target)</td>
+                                <td align="right"><?php
+                                echo getPrereqReferenceOrName($eclipseMirrorScript, $orbitthirdpartyzipMirrorPrefixuri, $orbitthirdpartyzipURL, $orbitthirdpartyzipFile,$eclipseFSpathPrefix);
+                                echo " or <a href=\"" . $orbitthirdpartyzipBuildHome . "\">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 
+               Components</font></td>
+        </tr>
+
+        <tr>
+                <td align="left" valign="top" colspan="5">
+                <p>The Zip file contains productized Java EE Developer Tools</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>Minimal</b></td>
+                                <td align="left" valign="top">
+                                <p>Executable code only.</p>
+                                </td>
+                                <?php
+                                $zipfilename="wtpjee-${build}";
+                                $filename=$zipfilename.".zip";
+                                $zipfilesize=fileSizeForDisplay($filename);
+                                $fileShortDescription="wtpjee";
+                                displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
+                                ?>
+                        </tr>
+
+                        <tr>
+                                <td align="left" valign="top" width="10%"><b>SDK</b></td>
+                                <td align="left" valign="top">
+                                <p>Executable code and source code.</p>
+                                </td>
+                                <?php
+                                $zipfilename="wtpjee-sdk-${build}";
+                                $filename=$zipfilename.".zip";
+                                $zipfilesize=fileSizeForDisplay($filename);
+                                $fileShortDescription="wtpjee sdk";
+                                displayFileLine($downloadprefix, $filename, $zipfilesize, $fileShortDescription);
+                                ?>
+                        </tr>
+                        <tr>
+                                <td align="left" valign="top" width="10%"><b>Tests</b></td>
+                                <td align="left" valign="top">
+                                <p>Unit tests.</p>
+                                </td>
+                                <?php
+                                $zipfilename="wtpjee-tests-${build}";
+                                $filename=$zipfilename.".zip";
+                                $zipfilesize=fileSizeForDisplay($filename);
+                                $fileShortDescription="wtpjee tests";
+                                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 {
+                                               // we hardly ever "pend" anymore ... abscense usually signifies no tests or a build error.  
+                                               echo "<br /><font color=\"orange\">Unit tests don't exists, are pending, or there's a build error.</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/wtpjee.site/templateFiles/siteEnablingFeatures.xml b/releng.wtpbuilder/distribution/wtpjee.site/templateFiles/siteEnablingFeatures.xml
new file mode 100644
index 000000000..cc3ed816c
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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/wtpjee.site/templateFiles/siteWTP.xml b/releng.wtpbuilder/distribution/wtpjee.site/templateFiles/siteWTP.xml
new file mode 100644
index 000000000..f94e83f5f
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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/wtpjee.site/templateFiles/testCompileResults.php.template b/releng.wtpbuilder/distribution/wtpjee.site/templateFiles/testCompileResults.php.template
new file mode 100644
index 000000000..42d6f6544
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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/wtpjee.site/templateFiles/testResults.php.template b/releng.wtpbuilder/distribution/wtpjee.site/templateFiles/testResults.php.template
new file mode 100644
index 000000000..ddad0b782
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.site/templateFiles/testResults.php.template
@@ -0,0 +1,119 @@
+<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="10%">Errors &amp; Failures</td>
+    <td class="bold" align="center" width="10%">Total Tests</td>
+    <td class="bold" align="center" width="10%">Total Time (s)</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/wtpjee.site/transformReportToHTML.xml b/releng.wtpbuilder/distribution/wtpjee.site/transformReportToHTML.xml
new file mode 100644
index 000000000..3e9f35b58
--- /dev/null
+++ b/releng.wtpbuilder/distribution/wtpjee.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.@dot.xml to produce example.@dot.html">
+      <xslt
+          destdir="${resultDir}/compilelogs"
+          scanincludeddirectories="true"
+          style="compilerXMLOutputToHTML.xsl"
+          force="true" >
+            <fileset dir="${resultDir}/compilelogs" includes="**/*.xml" />
+      </xslt>
+    </target>
+</project>
\ No newline at end of file
-- 
GitLab