Skip to content
Snippets Groups Projects
Commit 4a022dd4 authored by david_williams's avatar david_williams
Browse files

build wtp jee product

parent f834605a
No related branches found
No related tags found
No related merge requests found
Showing
with 2042 additions and 1 deletion
......@@ -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"
......
......@@ -20,7 +20,7 @@
-->
<property
name="componentpropertyfile"
value="wtpcap.properties"/>
value="wtpjee.properties"/>
<property
file="${componentpropertyfile}"/>
<!--
......
# '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
###############################################################################
# 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
<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
<?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
<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
<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
<?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/wtpjee.site/staticDropFiles/access_err.gif

906 B

releng.wtpbuilder/distribution/wtpjee.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 != "..") {
//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>
releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/compile_err.gif

167 B

releng.wtpbuilder/distribution/wtpjee.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/wtpjee.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>
<?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;
}
?>
releng.wtpbuilder/distribution/wtpjee.site/staticDropFiles/pending.gif

365 B

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