Skip to content
Snippets Groups Projects
Commit 2ba99e9d authored by david_williams's avatar david_williams
Browse files

prep for 3.2.4 patch builds

parent c21b97df
No related branches found
No related tags found
No related merge requests found
Showing
with 2965 additions and 0 deletions
<project name="allElements Delegator">
<property
name="defaultAssemblyEnabled"
value="true"/>
<!--
=====================================================================
-->
<!-- Run a given ${target} on all elements being built -->
<!--
By default ${topLevelElementType} and ${topLevelElementId}
should be
-->
<!--
defined in the builder's build.properties file. You can
customize by
-->
<!-- setting the type/id values directly here. -->
<!--
You can add additional calls to ${genericTargets} to build more
top
-->
<!-- level elements. -->
<!-- -->
<!--
The top level must exist in the ${buildDirectory},
${baseLocation} or
-->
<!-- ${pluginPath} locations. -->
<!--
=====================================================================
-->
<target name="allElementsDelegator">
<ant
antfile="${genericTargets}"
target="${target}">
<property
name="type"
value="${topLevelElementType}"/>
<property
name="id"
value="${topLevelElementId}"/>
</ant>
</target>
<!--
======================================================================
-->
<!--
The default assemble target, this will be called to assemble
each
-->
<!-- config if a custom assemble target is not defined. -->
<!-- The following properties will be defined: -->
<!--
config : The configuration being assembled eg "win32.win32.x86"
-->
<!-- element: The element being assembled eg "org.eclipse.sdk" -->
<!-- assembleScriptName: The assemble script to be called -->
<!--
======================================================================
-->
<target name="defaultAssemble">
<echo message="defaultAssemble assembleScriptName: ${assembleScriptName}"/>
<ant
antfile="${assembleScriptName}"
dir="${buildDirectory}"/>
</target>
<!--
=====================================================================
-->
<!-- Custom 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 for
which
-->
<!--
custom processing is desired. Replace element.id with the id of
the
-->
<!--
top level element being built. A property with a matching name
must
-->
<!--
be defined for this custom target to be called instead of the
-->
<!-- defaultAssemble target above. -->
<!-- Example: name="assemble.org.eclipse.sdk" -->
<!-- Example: name="assemble.org.eclipse.sdk.win32.win32.x86" -->
<!--
======================================================================
-->
<property
name="assemble.element.id[.config.spec]"
value="true"/>
<target name="assemble.element.id[.config.spec]">
<ant
antfile="${assembleScriptName}"
dir="${buildDirectory}"/>
</target>
</project>
\ No newline at end of file
###############################################################################
# Copyright (c) 2003, 2010 IBM Corporation and others.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# IBM Corporation - initial API and implementation
###############################################################################
# This property file is used automatically by the PDE build process
runPackager=true
# This is a subdirectory of $buildDirectory
# Set collectingFolder and archivePrefix to . if you want to create archives without
# trailing eclipse in the paths of the included files
collectingFolder=eclipse
logExtension=.xml
# The prefix that will be used in the generated archive.
# Does not make sense to use a different archivePrefix than collectingFolder,
# because zip wouldn't find any files to include into the target zip otherwise
archivePrefix=eclipse
# Whether or not to include debug info in the output jars
javacDebugInfo=true
# Whether or not to fail the build if there are compiler errors
javacFailOnError=false
##################################################
# Asks the compiler for verbose output. This should be set to true in order for *.bin.log files to be generated when
# using the JDT Compiler Adapter to compile.
javacVerbose=true
sign=true
p2.gathering=true
p2.compress=true
skipMirroring=true
flattenDependencies=true
parallelCompilation=true
generateSourceReferences=true
compilelogsDir=compilelogs
topLevelElementType=feature
topLevelElementId=org.eclipse.wtp.patch.assembly.feature
<?xml version="1.0" encoding="UTF-8"?>
<site>
<feature
id="org.eclipse.wst.common_core.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.wst.common_ui.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.wst.server_core.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.wst.server_ui.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.wst.xml_core.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.wst.jsdt.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.wst.web_core.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.wst.web_ui.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.jst.web_core.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.jst.web_ui.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.jst.enterprise_ui.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.jpt.feature.patch">
<category
name="Web Tools Platform (WTP) Patches @buildversionid@"/>
</feature>
<feature
id="org.eclipse.wtp.releng.tests.feature.patch">
<category
name="Web Tools Platform Tests (WTP Tests) Patches @buildversionid@"/>
</feature>
<category-def
name="Web Tools Platform Tests (WTP Tests) Patches @buildversionid@"
label="Web Tools Platform Tests (WTP Tests) Patches @buildversionid@">
<description>
These features provide patches for WTP unit tests.
</description>
</category-def>
<category-def
name="Web Tools Platform (WTP) Patches @buildversionid@"
label="Web Tools Platform (WTP) Patches @buildversionid@">
<description>
These features provide patches for WTP.
</description>
</category-def>
<!--
<category-def
name="Web Tools Platform (WTP SDK) Patches @buildversionid@"
label="Web Tools Platform (WTP SDK) Patches @buildversionid@">
<description>
These features provide patches for WTP SDK.
</description>
</category-def>
-->
</site>
<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="dependency.properties must be specified by distribution script"
unless="dependency.properties"/>
<fail
unless="buildDirectory"
message="buildDirectory must be set"/>
<property
name="archiveName"
value="${component}-buildrepo-${buildLabel}.zip"/>
<property
name="p2.metadata.repo.name"
value="WTP Build repository: ${buildLabel}/${component}"/>
<property
name="p2.artifact.repo.name"
value="WTP Build repository: ${buildLabel}/${component}"/>
<property
name="p2buildrepoDirectory"
value="${buildDirectory}/${buildLabel}/buildrepository/${component}/"/>
<property
name="p2.build.repo"
value="file://${p2buildrepoDirectory}/"/>
<property
name="p2.category.definition.file"
value="${buildDirectory}/maps/${env.RELENG}/components/${component}/category.xml"/>
<property
name="p2.category.definition"
value="file:/${p2.category.definition.file}"/>
<!--
Run a given ${target} on all elements being built Add on <ant>
task for each top level element being built.
-->
<available
property="allElementsFile"
file="${builder}/allElements.xml"
value="${builder}/allElements.xml"/>
<property
name="allElementsFile"
location="${eclipse.pdebuild.templates}/headless-build/allElements.xml"/>
<import file="${allElementsFile}"/>
<target
name="allElements"
depends="init">
<antcall target="allElementsDelegator"/>
</target>
<!--
Check out map files from repository
-->
<target name="getMapFiles">
<!-- for now, get all, at once. May componetize later. -->
<ant
antfile="${wtp.builder.home}/scripts/build/maptasks.xml"
target="fetchAllMaps"/>
</target>
<!--
Steps to do before setup
-->
<target name="preSetup">
</target>
<!--
Steps to do after setup but before starting the build proper
-->
<target
name="postSetup"
depends="init">
<dirname
file="${ant.file}"
property="component.dir"/>
<!-- Get the dependencies -->
<antcall target="getDependencies"/>
<antcall target="updateCategoriesFiles"/>
</target>
<!--
=====================================================================
-->
<!-- Get the dependencies based on releng maps -->
<!--
=====================================================================
-->
<target name="getDependencies">
<ant
antfile="${wtp.builder.home}/scripts/dependency/dependency.xml"
target="get">
<property
name="base.install.dir"
value="${buildRoot}"/>
<property
name="tobeinstalled.properties"
value="${buildDirectory}/maps/${env.RELENG}/components/${component}/tobeInstalled.properties"/>
</ant>
</target>
<!--
Steps to do before fetching the build elements
-->
<target name="preFetch">
</target>
<target name="postFetch">
<ant
antfile="${wtp.builder.home}/scripts/build/maptasks.xml"
target="unrewriteMaps"/>
</target>
<!--
Steps to do before the repositories are being processed
-->
<target name="preProcessRepos">
</target>
<!--
Steps to do after the repositories have been processed
-->
<target name="postProcessRepos">
</target>
<!--
Steps to do before generating the build scripts.
-->
<target name="preGenerate">
</target>
<!--
Steps to do after generating the build scripts.
-->
<target name="postGenerate">
<ant antfile="${wtp.builder.home}/scripts/build/customizeAccessRules.xml"/>
</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">
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml"
target="conditionAndSignJars"/>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml"
target="finishPackages"/>
</target>
<!--
Steps to do after the build is done.
-->
<target name="prePackage">
</target>
<!-- Steps to do after running package. -->
<target name="postPackage">
</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"
depends="init">
<mkdir dir="${buildDirectory}/${buildLabel}/${compilelogsDir}"/>
<antcall target="allElements">
<param
name="target"
value="gatherLogs"/>
<param
name="logExtension"
value="${logExtension}"/>
</antcall>
<unzip
dest="${buildDirectory}/${buildLabel}/${compilelogsDir}"
overwrite="true">
<fileset dir="${buildDirectory}/features/${topLevelElementId}">
<include name="**/*.log.zip"/>
</fileset>
</unzip>
<!--
workaround: see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=156043 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=172361 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=294070
-->
<copy
todir="${buildDirectory}/${buildLabel}/${compilelogsDir}/plugins"
overwrite="true">
<!--
we want all @dot.xml files, but assumes a certain
structure, to include directory for name of plugin
-->
<fileset dir="${buildDirectory}/features/">
<include name="**/feature.temp.folder/"/>
<exclude name="**/*tests*feature*/feature.temp.folder/"/>
</fileset>
<compositemapper>
<mapper
type="regexp"
from="(.*)/plugins/(.*)/@dot.xml"
to="/\2/@dot.xml"/>
<mapper
type="regexp"
from="(.*)/plugins/(.*)/(.*)bin.xml"
to="/\2/\3bin.xml"/>
</compositemapper>
</copy>
</target>
<target
name="clean"
unless="noclean">
<antcall target="allElements">
<param
name="target"
value="cleanElement"/>
</antcall>
</target>
<!--
Note: buildId is typically of the form "3.3.0"
may want to use buildLabel, which is of form I-3.3.0-20100912032913
-->
<target
name="updateCategoriesFiles"
depends="checkCategoriesFiles"
if="categoryFileExists">
<replace
file="${p2.category.definition.file}"
value="${buildId}"
token="@buildversionid@">
</replace>
</target>
<target name="checkCategoriesFiles">
<available
file="${p2.category.definition.file}"
property="categoryFileExists"/>
</target>
<!--
Default target
-->
<target name="noDefault">
<echo
level="error"
message="You must specify a target when invoking this file"/>
</target>
<target
name="init"
unless="customTargetsInitialized">
<echo message="buildDirectory: ${buildDirectory}"/>
<echo message="p2.build.repo: ${p2.build.repo}"/>
<echo message="p2.category.definition: ${p2.category.definition}"/>
<echo
level="info"
message="target: ${target} "/>
<echo
level="info"
message="basedir: ${basedir}"/>
<echo
level="info"
message="component: ${component}"/>
<echo
level="info"
message="buildDirectory: ${buildDirectory}"/>
<echo
level="info"
message="baseLocation: ${baseLocation}"/>
<echo
level="info"
message="generic target: ${genericTargets}"/>
<echo
level="info"
message="topLevelElementId: ${topLevelElementId}"/>
<echo message="compilerArg: ${compilerArg}"/>
<echo message="individualSourceBundles: ${individualSourceBundles}"/>
<echo message="generatedVersionLength: ${generatedVersionLength}" />
<echo
level="debug"
message="ant.file: ${ant.file}"/>
<echo
level="debug"
message="component.dir: ${component.dir}"/>
<echo
level="debug"
message="logExtension: ${logExtension}"/>
<property
name="customTargetsInitialized"
value="true"/>
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project
default="build"
basedir=".">
<fail unless="wtp.builder.home"/>
<property file="${wtp.builder.home}/build.properties"/>
<property environment="env"/>
<!-- required to get proper value of doCreateFprojZips -->
<property
name="keyCfgFile"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
<echo
level="info"
message="keyCfgFile: ${keyCfgFile}"/>
<property file="${keyCfgFile}"/>
<echo message="transformedRepoLocation: ${transformedRepoLocation}"/>
<mkdir dir="${transformedRepoLocation}"/>
<!-- main -->
<target
name="build"
depends="getBaseBuilder">
<property
name="buildTargets"
value="${wtp.builder.home}/scripts/build/runbuild.xml"/>
<ant antfile="${wtp.builder.home}/scripts/build/label.xml"/>
<property
name="dependency.properties"
value="${buildDirectory}/maps/${env.RELENG}/${dependencyFileLocation}"/>
<echo
level="debug"
message="invoking buildTargets: ${buildTargets} to build for each component"/>
<ant antfile="${buildTargets}">
<property
name="component"
value="wtp-patches32x"/>
</ant>
<ant antfile="${buildTargets}">
<property
name="eclipseBuildFailOnError"
value="false"/>
</ant>
<!--
<ant
antfile="${buildTargets}">
<property
name="component"
value="wtp-patches32x-tests"/>
<property
name="eclipseBuildFailOnError"
value="false"/>
</ant>
-->
<!-- copy early, if we can ... else site won't be created, if we fail -->
<ant antfile="${wtp.builder.home}/scripts/build/copyArtifactsEarly.xml"/>
<antcall target="handleCompilationProblems"/>
</target>
<target
name="handleCompilationProblems"
depends="checkIfCompileProblems"
if="compilation.problem.found">
<!-- if there is a problem, leave a marker file in download directory, so the webpage can
describe what happened -->
<echo
message="Compilation problems were found"
file="${buildDirectory}/${buildLabel}/compilationProblems.txt"/>
<!-- always force an early copy, before fail, so all results and files get to "downloads" area -->
<ant antfile="${wtp.builder.home}/scripts/build/copyArtifactsEarly.xml"/>
<fail
if="compilation.problem.found"
message="The remaining build and tests were canceled since compilation problems were found."/>
</target>
<target name="checkIfCompileProblems">
<!--
Not sure how reliable the presence of this 'compilation.problem' file is ...
I just noticed it in recent PDE builds with compile problems.
May have to make this "fancier" in future.
For now, looks only one level down in plugins directory (in build's workdir) for a file with
the name 'complilation.problem'. We may have a "summary" in xml file format, summarizing logs,
... but not sure then created (during site? We'd have to call site first. This way, we'll see if the match :) .
-->
<available
file="compilation.problem"
type="file"
property="compilation.problem.found">
<filepath>
<dirset dir="${buildDirectory}">
<include name="plugins/*"/>
</dirset>
</filepath>
</available>
<echo message="compilation.problem path buildDirectory: ${buildDirectory}/plugins/*/"/>
</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>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project
default="package"
basedir=".">
<fail
unless="wtp.builder.home"
message="wtp.build.home needs to be definded for this script"/>
<property file="${wtp.builder.home}/build.properties"/>
<property environment="env"/>
<!-- required to get proper value of branch specific values -->
<property
name="keyCfgFile"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
<echo
level="info"
message="keyCfgFile: ${keyCfgFile}"/>
<property file="${keyCfgFile}"/>
<target
name="package"
description="Create the main repository for this build, and any desired zip file distributions">
<ant antfile="${wtp.builder.home}/scripts/build/runAntRunner.xml">
<property
name="antrunnerfile"
value="${wtp.builder.home}/distribution/${build.distribution}.package/createFinalRepo.xml"/>
</ant>
<ant antfile="${wtp.builder.home}/scripts/build/runAntRunner.xml">
<property
name="antrunnerfile"
value="${wtp.builder.home}/distribution/${build.distribution}.package/createmainzips.xml"/>
</ant>
<ant antfile="${wtp.builder.home}/scripts/build/runAntRunner.xml">
<property
name="antrunnerfile"
value="${wtp.builder.home}/distribution/${build.distribution}.package/createjaxws.xml"/>
</ant>
<ant antfile="${wtp.builder.home}/scripts/build/runAntRunner.xml">
<property
name="antrunnerfile"
value="${wtp.builder.home}/distribution/${build.distribution}.package/createnoopzips.xml"/>
</ant>
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
create final build repo.
Eventually may want to "move" this to each component, in "post build" step?
See http://aniefer.blogspot.com/2009/08/versioning-p2-slides-from-eclipsecon.html
for example of comparator.
-->
<project
name="createFinalRepo"
default="build"
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"/>
<!-- = = = end standard properties pattern = = = -->
<fail unless="wtp.builder.home"/>
<property file="${wtp.builder.home}/build.properties"/>
<!-- required to get proper value of branch specific values, for example,
baseComparatorRepoDir, since can vary from forward "integration" stream,
and "maintenance" branch -->
<property
name="keyCfgFile"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
<echo
level="info"
message="keyCfgFile: ${keyCfgFile}"/>
<property file="${keyCfgFile}"/>
<fail
unless="baseComparatorRepoDir"
message="baseComparatorRepoDir must be defined for this ant script"/>
<property
name="baseComparatorRepoDirTests"
value="${baseComparatorRepoDir}"/>
<!-- if not otherwise set, use these default properties
<property
name="repoDownloadBaseURL"
value="http://build.eclipse.org/webtools/committers"/> -->
<property
name="repoDownloadBaseURL"
value=".."/>
<fail unless="env.PROJECT_PROJECTS"/>
<fail unless="projectname"/>
<property
name="labelfile"
value="${env.PROJECT_PROJECTS}/${projectname}/workdir/label.properties"/>
<available
file="${labelfile}"
property="labelfileavailable"/>
<fail unless="labelfileavailable"/>
<property file="${labelfile}"/>
<target
name="build"
depends="doMirror,doMirrorTests">
<!-- add the new build to the composite -->
<!--
TODO: after promotion, do we need to delete repo's as directories removed? Or just do occasional cleanup,
if non-existent child repos are ignored
TODO: ok to use absolute file system locations for child repos? (And still access via http, later?
-->
<!--
On build machine, URL's to repositories will look similar to following URL:
http://build.eclipse.org/webtools/committers/wtp-R3.3.0-I/20100914034658/I-3.3.0-20100914034658/repository/
which we translate as follows
repoDownloadBaseURL=http://build.eclipse.org/webtools/committers
${repoDownloadBaseURL}/${projectname}/${timestamp}/${buildLabel}/repository/
repoDownloadBaseURL is machine dependent (will differ from one build machine to another).
Will be different on "download server", as well.
-->
<!-- remember, repoLocation won't exist until later, since it is at the "site", not the
working directory -->
<!-- remember that repos are added to comparator set only when they are promoted to download location -->
<property
name="repoLocation"
value="${repoDownloadBaseURL}/committers/${projectname}/${timestamp}/${buildLabel}/repository/"/>
<echo
message="${line.separator}
created final build repoository at location:${line.separator}
${repoLocation}${line.separator}
"/>
<!--
<p2.composite.repository
destination="file:/${baseComparatorRepoDir}">
<add>
<repository
location="${repoLocation}"/>
</add>
</p2.composite.repository>
-->
</target>
<target name="init">
<available
file="${baseComparatorRepoDir}"
type="dir"
property="baseComparatorRepoDirExists"/>
<!-- we copy the comparator filter file, used only during tests, to build output location,
just so it is always available, even if tests ran later -->
<copy
file="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/comparatorfilter.properties"
todir="${buildDirectory}/${buildLabel}"/>
</target>
<!-- normally, the "prime repository" should be created from previous release,
or similar, but if that hasn't been done, we'll automatically create an empty
composite repo which we've stored away for simplicity.-->
<target
name="primeRepo"
depends="init"
unless="baseComparatorRepoDirExists">
<mkdir dir="${baseComparatorRepoDir}"/>
<copy todir="${baseComparatorRepoDir}">
<fileset dir="${wtp.builder.home}/emptyRepository/"/>
</copy>
<!-- could probably just set to true, but we'll use same logic as in init, just in case -->
<available
file="${baseComparatorRepoDir}"
type="dir"
property="baseComparatorRepoDirExists"/>
</target>
<!-- normally, the "prime repository" should be created from previous release,
or similar, but if that hasn't been done, we'll automatically create an empty
composite repo which we've stored away for simplicity.-->
<target
name="primeTestRepo"
depends="init"
unless="baseComparatorTestRepoDirExists">
<mkdir dir="${baseComparatorTestRepoDir}"/>
<copy todir="${baseComparatorTestRepoDir}">
<fileset dir="${wtp.builder.home}/emptyRepository/"/>
</copy>
<!-- could probably just set to true, but we'll use same logic as in init, just in case -->
<available
file="${baseComparatorTestRepoDir}"
type="dir"
property="baseComparatorTestRepoDirExists"/>
</target>
<target
name="doMirror"
depends="primeRepo">
<property
name="destinationDir"
value="${buildDirectory}/${buildLabel}/repository"/>
<echo message="destinationDir: ${destinationDir}"/>
<p2.mirror
ignoreErrors="true"
verbose="true"
log="${buildDirectory}/${buildLabel}/finalMirrorRepo.log">
<destination
kind="metadata"
location="file:/${destinationDir}"
name="Web Tools Platform Repository ${buildLabel}"/>
<destination
kind="artifact"
location="file:/${destinationDir}"
name="Web Tools Platform Repository ${buildLabel}"/>
<source>
<repository location="file:/${buildDirectory}/${buildLabel}/buildrepository/"/>
</source>
<comparator
comparator="org.eclipse.equinox.p2.repository.tools.jar.comparator"
comparatorLog="${buildDirectory}/${buildLabel}/comparator.log">
<repository location="file:/${baseComparatorRepoDir}"/>
<!-- Note: comparator has fixed this issues in 3.7 stream, but
since we use this same code in maintenance stream, with 3.6 based builder,
then we need to leave these excluded in place (or, make them stream sensitive,
which doesn't seem worth it
-->
<exclude>
<artifact id="org.eclipse.jpt.eclipselink.ui"/>
<artifact id="org.eclipse.jpt.ui"/>
<artifact id="org.eclipse.jst.jsp.core.tests"/>
</exclude>
</comparator>
<!--
followStrict is sort of a safety measure. All our features should be strict, but in case not,
will show up early if not mirrored.
-->
<slicingoptions
followStrict="true"
includeNonGreedy="false"
includeOptional="false"/>
<!--
Specify category and let it pull in its features.
TODO: would be best to make "property[@name='org.eclipse.equinox.p2.type.category']" part of the query,
but a) not sure if/how it will work and b) our names are distinct enough now this suffices.
-->
<iu query="property[@name='org.eclipse.equinox.p2.name' and @value='Web Tools Platform (WTP) ${buildId}']"/>
<iu query="property[@name='org.eclipse.equinox.p2.name' and @value='Web Tools Platform SDK (WTP SDK) ${buildId}']"/>
<!--
<iu
query="property[@name='org.eclipse.equinox.p2.name' and @value='Web Tools Platform SDK (WTP SDK) Patches ${buildId}']"/>
-->
</p2.mirror>
<!-- create archived repo from contents of 'repository' at this point -->
<property
name="zippedrepo"
value="${build.distribution}-repo-${buildLabel}.zip"/>
<zip
destfile="${buildDirectory}/${buildLabel}/${zippedrepo}"
basedir="${buildDirectory}/${buildLabel}/repository"/>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml"
target="createChecksums">
<property
name="archiveName"
value="${zippedrepo}"/>
</ant>
</target>
<target
name="doMirrorTests"
depends="primeTestRepo">
<property
name="destinationDirTests"
value="${buildDirectory}/${buildLabel}/repositoryunittests"/>
<echo message="destinationDirTests: ${destinationDirTests}"/>
<p2.mirror
ignoreErrors="true"
verbose="true"
log="${buildDirectory}/${buildLabel}/finalMirror-unittestrepository.log">
<destination
kind="metadata"
location="file:/${destinationDirTests}"
name="Web Tools Platform Repository for Unit Tests ${buildLabel}"/>
<destination
kind="artifact"
location="file:/${destinationDirTests}"
name="Web Tools Platform Repository for Unit Tests ${buildLabel}"/>
<source>
<repository location="file:/${buildDirectory}/${buildLabel}/buildrepository/"/>
</source>
<comparator
comparator="org.eclipse.equinox.p2.repository.tools.jar.comparator"
comparatorLog="${buildDirectory}/${buildLabel}/comparator-unittest.log">
<repository location="file:/${baseComparatorRepoDir}"/>
<exclude>
<artifact id="org.eclipse.jpt.eclipselink.ui"/>
<artifact id="org.eclipse.jpt.ui"/>
<artifact id="org.eclipse.jst.jsp.core.tests"/>
</exclude>
</comparator>
<slicingoptions
followStrict="true"
includeNonGreedy="false"
includeOptional="false"/>
<!--
Specify category and let it pull in its features.
-->
<iu
query="property[@name='org.eclipse.equinox.p2.name' and (@value='Web Tools Platform Tests (WTP Tests) Patches ${buildId}')]"/>
</p2.mirror>
<!-- create archived repo from contents of 'repository' at this point -->
<property
name="zippedtestsrepo"
value="${build.distribution}-tests-repo-${buildLabel}.zip"/>
<zip
destfile="${buildDirectory}/${buildLabel}/${zippedtestsrepo}"
basedir="${buildDirectory}/${buildLabel}/repositoryunittests"/>
<ant
antfile="${wtp.builder.home}/scripts/build/buildutilitiesp2.xml"
target="createChecksums">
<property
name="archiveName"
value="${zippedtestsrepo}"/>
</ant>
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!--
This script is to create some zips with core features only.
Limited, specialized usefulness, so they are not linked or
advertised. That is, could change at any time.
-->
<project
default="build"
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"/>
<!-- = = = end standard properties pattern = = = -->
<fail unless="wtp.builder.home"/>
<property file="${wtp.builder.home}/build.properties"/>
<!-- required to get proper value of branch specific values, for example,
baseComparatorRepoDir, since can vary from forward "integration" stream,
and "maintenance" branch -->
<property
name="keyCfgFile"
value="${env.PROJECT_BUILDERS}/${projectname}/${env.RELENG}/maps/build.cfg"/>
<echo
level="info"
message="keyCfgFile: ${keyCfgFile}"/>
<property file="${keyCfgFile}"/>
<fail
unless="baseComparatorRepoDir"
message="baseComparatorRepoDir must be defined for this ant script"/>
<!-- if not otherwise set, use these default properties
<property
name="repoDownloadBaseURL"
value="http://build.eclipse.org/webtools/committers"/> -->
<property
name="repoDownloadBaseURL"
value=".."/>
<fail unless="env.PROJECT_PROJECTS"/>
<fail unless="projectname"/>
<property
name="labelfile"
value="${env.PROJECT_PROJECTS}/${projectname}/workdir/label.properties"/>
<available
file="${labelfile}"
property="labelfileavailable"/>
<fail unless="labelfileavailable"/>
<property file="${labelfile}"/>
<!--
These properties are normally set by calling task, but for
"local" tests from command line, they can be set here
-->
<property
name="buildDirectory"
value="/shared/webtools/committers/wtp-R3.2.0-I/20091029001529"/>
<property
name="buildLabel"
value="I-3.2.0-20091029030635"/>
<property
name="wtp.builder.home"
value="/shared/webtools/projectBuilders/wtp-R3.2.0-I/webtools.releng/releng.wtpbuilder"/>
<echo message="buildDirectory: ${buildDirectory}"/>
<echo message="buildLabel: ${buildLabel}"/>
<echo message="wtp.builder.home: ${wtp.builder.home}"/>
<!--
three convenience variables to help avoid typos, etc. Should
never need to be changed
-->
<property
name="tempDir"
value="${buildDirectory}/${buildLabel}/tempdir"/>
<property
name="tempRunnableEclipse"
value="${tempDir}/eclipse"/>
<property
name="tempRepo"
value="${buildDirectory}/${buildLabel}/temprepo"/>
<target name="build">
<antcall target="createCodeZip">
<param
name="newarchiveName"
value="${build.distribution}-${buildLabel}.zip"/>
</antcall>
<!--
<antcall
target="createSDKZip">
<param
name="newarchiveName"
value="${build.distribution}-sdk-${buildLabel}.zip"/>
</antcall>
-->
<antcall target="createTestZip">
<param
name="newarchiveName"
value="${build.distribution}-tests-${buildLabel}.zip"/>
</antcall>
</target>
<!--
Note: this was done as an import, since eventually there may be more than one ... differ by streams? There may be
better ways ... and may not be needed after all, since turning out to be pretty generic ... driven by "categories".
-->
<import file="${wtp.builder.home}/distribution/${build.distribution}.package/createziptasks.xml"/>
</project>
\ No newline at end of file
<project name="mirrortasks">
<target name="createCodeZip">
<ant
antfile="${wtp.builder.home}/scripts/build/ziputils.xml"
target="premirrortasks"/>
<p2.mirror
source="${buildDirectory}/${buildLabel}/repository"
destination="${tempRepo}"
log="${buildDirectory}/${buildLabel}/mirrorlog-${newarchiveName}.log"
verbose="true">
<slicingoptions
followstrict="true"
includeNonGreedy="false"
includeOptional="false"/>
<iu query="property[@name='org.eclipse.equinox.p2.name' and @value='Web Tools Platform (WTP) Patches ${buildId}']"/>
</p2.mirror>
<ant
antfile="${wtp.builder.home}/scripts/build/ziputils.xml"
target="postmirrortasks"/>
</target>
<target name="createSDKZip">
<ant
antfile="${wtp.builder.home}/scripts/build/ziputils.xml"
target="premirrortasks"/>
<p2.mirror
source="${buildDirectory}/${buildLabel}/repository"
destination="${tempRepo}"
log="${buildDirectory}/${buildLabel}/mirrorlog-${newarchiveName}.log"
verbose="true">
<slicingoptions
followstrict="true"
includeNonGreedy="false"
includeOptional="false"/>
<iu query="property[@name='org.eclipse.equinox.p2.name' and @value='Web Tools Platform (WTP SDK) Patches ${buildId}']"/>
</p2.mirror>
<ant
antfile="${wtp.builder.home}/scripts/build/ziputils.xml"
target="postmirrortasks"/>
</target>
<target name="createTestZip">
<ant
antfile="${wtp.builder.home}/scripts/build/ziputils.xml"
target="premirrortasks"/>
<p2.mirror
source="${buildDirectory}/${buildLabel}/repositoryunittests"
destination="${tempRepo}"
log="${buildDirectory}/${buildLabel}/mirrorlog-${newarchiveName}.log"
verbose="true">
<slicingoptions
followstrict="true"
includeNonGreedy="false"
includeOptional="false"/>
<iu
query="property[@name='org.eclipse.equinox.p2.name' and (@value='Web Tools Platform Tests (WTP Tests) Patches ${buildId}')]"/>
</p2.mirror>
<ant
antfile="${wtp.builder.home}/scripts/build/ziputils.xml"
target="postmirrortasks"/>
</target>
</project>
\ No newline at end of file
<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">
<mkdir dir="${buildDirectory}/${buildLabel}"/>
<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="-DdependencyFileLocation=${dependencyFileLocation}"/>
<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="-Dprojectname=${projectname}"/>
<jvmarg value="-Djava.io.tmpdir=${env.RECOMMENDED_TMP_DIR}"/>
<jvmarg value="-Djava.protocol.handler.pkgs=com.ibm.etools.www.protocol"/>
<jvmarg value="-DurlLogLocation=${buildDirectory}/${buildLabel}/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"/>
<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}/label.properties"
tofile="${result}/label.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
<?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
This diff is collapsed.
releng.wtpbuilder/distribution/patches32x.site/staticDropFiles/access_err.gif

906 B

releng.wtpbuilder/distribution/patches32x.site/staticDropFiles/access_warn.gif

146 B

<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 != "..") {
$nameprefixlen=strlen("buildnotes_");
$baseName = substr($anEntry,$nameprefixlen);
$extpos=strrpos($baseName,".html");
$component=substr($baseName,0,$extpos);
$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>
releng.wtpbuilder/distribution/patches32x.site/staticDropFiles/compile_err.gif

167 B

releng.wtpbuilder/distribution/patches32x.site/staticDropFiles/compile_warn.gif

152 B

<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>
releng.wtpbuilder/distribution/patches32x.site/staticDropFiles/junit_err.gif

220 B

<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment