JBoss Tools SVN: r41930 - branches/jbosstools-3.3.x/build/publish.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-06-13 09:24:32 -0400 (Wed, 13 Jun 2012)
New Revision: 41930
Modified:
branches/jbosstools-3.3.x/build/publish/publish.sh
Log:
backport new mvn-based results page generator from trunk instead of ant-based one (JBIDE-6958)
Modified: branches/jbosstools-3.3.x/build/publish/publish.sh
===================================================================
--- branches/jbosstools-3.3.x/build/publish/publish.sh 2012-06-13 13:22:48 UTC (rev 41929)
+++ branches/jbosstools-3.3.x/build/publish/publish.sh 2012-06-13 13:24:32 UTC (rev 41930)
@@ -267,35 +267,16 @@
mkdir -p ${STAGINGDIR}/logs
-if [[ ! $ANT_HOME ]]; then # find ant in PATH - select LAST entry if more than one
- ANT_HOME=$(for d in $(echo ${PATH//:/ }); do if [[ ${d/ant/} != ${d} ]]; then echo -n " ${d%/bin}"; fi; done); ANT_HOME=${ANT_HOME##* }
+# generate results page for an aggregate build only
+if [[ ${JOB_NAME/.aggregate} != ${JOB_NAME} ]] && [[ -d ${WORKSPACE}/sources/results ]]; then
+ pushd ${WORKSPACE}/sources/results >/dev/null
+ export JAVA_HOME=$(find /qa/tools/opt -maxdepth 1 -mindepth 1 -type d -name "jdk1.6.0_*" | sort | tail -1)
+ export M2_HOME=$(find /qa/tools/opt -maxdepth 1 -mindepth 1 -type d -name "apache-maven-3.0.*" | sort | tail -1)
+ ${M2_HOME}/bin/mvn -q -B install -DJOB_NAME=${JOB_NAME} -DBUILD_NUMBER=${BUILD_NUMBER} -DBUILD_ID=${BUILD_ID}
+ mv target/index.html ${STAGINGDIR}/index.html; rm -fr target
+ popd >/dev/null
fi
-ANT_EXEC="ant"
-if [[ -d ${ANT_HOME} ]] && [[ -x ${ANT_HOME}/bin/ant ]]; then
- export ANT_HOME=${ANT_HOME}
- ANT_EXEC=${ANT_HOME}/bin/ant
-fi
-ANT_LIB="" # add COMMON_TOOLS folder to ant's lib folder
-if [[ -d /home/hudson/static_build_env/jbds/tools ]]; then
- ANT_LIB=" -lib /home/hudson/static_build_env/jbds/tools"
-fi
-ANT_PARAMS=" -DZIPSUFFIX=${ZIPSUFFIX} -DJOB_NAME=${JOB_NAME} -Dinput.dir=${STAGINGDIR} -Doutput.dir=${STAGINGDIR}/logs -DWORKSPACE=${WORKSPACE}"
-for buildxml in ${WORKSPACE}/build/results/build.xml ${WORKSPACE}/sources/build/results/build.xml ${WORKSPACE}/sources/results/build.xml; do
- if [[ -f ${buildxml} ]]; then
- ANT_SCRIPT=${buildxml}
- RESULTS_DIR=${buildxml/\/build.xml/}
- fi
-done
-ANT_TARGET="buildResults.single"; if [[ ${JOB_NAME/.aggregate} != ${JOB_NAME} ]]; then ANT_TARGET="buildResults.aggregate"; fi
-if [[ ${ANT_SCRIPT} ]] && [[ -f ${ANT_SCRIPT} ]]; then ${ANT_EXEC}${ANT_LIB} -f ${ANT_SCRIPT} ${ANT_TARGET} ${ANT_PARAMS}; fi
-# copy buildResults.css, buildResults.html to ${STAGINGDIR}/logs
-if [[ ${RESULTS_DIR} ]] && [[ -d ${RESULTS_DIR} ]]; then
- for f in buildResults.html buildResults.css; do
- if [[ -f ${RESULTS_DIR}/${f} ]]; then rsync -arzq ${RESULTS_DIR}/${f} ${STAGINGDIR}/logs/; fi
- done
-fi
-
# purge duplicate zip files in logs/zips/all/*.zip
if [[ -d ${STAGINGDIR}/logs/zips ]]; then rm -f $(find ${STAGINGDIR}/logs/zips -type f -name "*.zip"); fi
@@ -427,6 +408,7 @@
# /builds/staging.previous/${JOB_NAME}/all/repo/
# /builds/staging.previous/${JOB_NAME}.2/all/repo/
now=$(date +%s000)
+ mkdir -p ${STAGINGDIR}/all
echo "<?xml version='1.0' encoding='UTF-8'?>
<?compositeMetadataRepository version='1.0.0'?>
<repository name='JBoss Tools Staging - ${JOB_NAME} Composite' type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository' version='1.0.0'>
13 years, 10 months
JBoss Tools SVN: r41929 - in branches/jbosstools-3.3.x/build/results: DEPRECATED and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-06-13 09:22:48 -0400 (Wed, 13 Jun 2012)
New Revision: 41929
Added:
branches/jbosstools-3.3.x/build/results/DEPRECATED/
branches/jbosstools-3.3.x/build/results/DEPRECATED/.gitignore
branches/jbosstools-3.3.x/build/results/DEPRECATED/OLD/
branches/jbosstools-3.3.x/build/results/DEPRECATED/OLD/buildResults.xsl
branches/jbosstools-3.3.x/build/results/DEPRECATED/build.xml
branches/jbosstools-3.3.x/build/results/DEPRECATED/buildResults.css
branches/jbosstools-3.3.x/build/results/DEPRECATED/buildResults.xsl
branches/jbosstools-3.3.x/build/results/DEPRECATED/collect-test-results.xml
branches/jbosstools-3.3.x/build/results/DEPRECATED/surefire-reports/
branches/jbosstools-3.3.x/build/results/DEPRECATED/surefire-reports/NoTestsRun/
branches/jbosstools-3.3.x/build/results/DEPRECATED/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml
branches/jbosstools-3.3.x/build/results/index-template.html
branches/jbosstools-3.3.x/build/results/pom.xml
Removed:
branches/jbosstools-3.3.x/build/results/OLD/buildResults.xsl
branches/jbosstools-3.3.x/build/results/buildResults.css
branches/jbosstools-3.3.x/build/results/buildResults.xsl
branches/jbosstools-3.3.x/build/results/collect-test-results.xml
branches/jbosstools-3.3.x/build/results/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml
Modified:
branches/jbosstools-3.3.x/build/results/.gitignore
branches/jbosstools-3.3.x/build/results/build.xml
Log:
https://issues.jboss.org/browse/JBIDE-6958 backport from trunk to 33x branch (because we're respinning anyway)
Modified: branches/jbosstools-3.3.x/build/results/.gitignore
===================================================================
--- branches/jbosstools-3.3.x/build/results/.gitignore 2012-06-13 12:56:06 UTC (rev 41928)
+++ branches/jbosstools-3.3.x/build/results/.gitignore 2012-06-13 13:22:48 UTC (rev 41929)
@@ -1,3 +1 @@
-*.out.*
-zips
-buildResults.html
+target
Copied: branches/jbosstools-3.3.x/build/results/DEPRECATED/.gitignore (from rev 41918, branches/jbosstools-3.3.x/build/results/.gitignore)
===================================================================
--- branches/jbosstools-3.3.x/build/results/DEPRECATED/.gitignore (rev 0)
+++ branches/jbosstools-3.3.x/build/results/DEPRECATED/.gitignore 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,3 @@
+*.out.*
+zips
+buildResults.html
Copied: branches/jbosstools-3.3.x/build/results/DEPRECATED/OLD/buildResults.xsl (from rev 41918, branches/jbosstools-3.3.x/build/results/OLD/buildResults.xsl)
===================================================================
--- branches/jbosstools-3.3.x/build/results/DEPRECATED/OLD/buildResults.xsl (rev 0)
+++ branches/jbosstools-3.3.x/build/results/DEPRECATED/OLD/buildResults.xsl 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,264 @@
+<xsl:transform version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan">
+ <xsl:output method="html" indent="yes" xalan:indent-amount="4" />
+ <xsl:template match="/projects">
+
+ <xsl:variable name="baseurl">
+ <xsl:value-of select="@baseurl" />
+ </xsl:variable>
+
+ <html>
+ <head>
+ <title>JBossTools Build Results</title>
+ <link rel="stylesheet" type="text/css" href="buildResults.css" />
+ </head>
+ <body>
+ <div id="header-blue">
+ <table width="100%" height="100%">
+ <tr>
+ <td>
+ <span id="title-blue">JBossTools Build Results</span>
+ <br />
+ <span id="buildName-blue">
+ ${build-type} build
+ ${jbds-build-name}
+ <span id="buildName-blue" style="font-size: x-small;">
+ [Hudson Build
+ <a id="buildName-blue" style="font-size: x-small;"
+ href="http://hudson.qa.jboss.com/hudson/view/DevStudio/job/${hudson-job-name}/$...">#${hudson-build-number},
+ ${hudson-build-id}</a>
+ ]
+ </span>
+ <span id="buildName-blue" style="font-size: x-small; font-style: italic;">
+ <a id="buildName-blue"
+ style="font-size: x-small; font-style: italic; color: black;"
+ href="http://hudson.jboss.org/hudson/view/JBossTools/job/${hudson-job-name}/">Public
+ Hudson Mirror</a>
+ </span>
+ </span>
+ </td>
+ <td align="right">
+ <span id="buildDate-blue">${date}</span>
+ <br />
+ <span id="buildExecTime-blue">${build-time}</span>
+ <br />
+ <a id="buildLog-blue"
+ href="http://download.jboss.org/jbosstools/builds/staging/${hudson-job-name}/logs/">Build Logs</a>
+ </td>
+ </tr>
+ </table>
+ </div>
+
+ <div id="downloads-blue">
+ <table id="links-blue" width="100%">
+ <tr>
+ <td>
+ <a class="blue" href="http://www.jboss.org/tools">JBossTools</a>
+ |
+ <a class="blue" href="http://www.redhat.com/jbds">JBDS</a>
+ |
+ <a class="blue" href="http://tools.hibernate.org">Hibernate Tools</a>
+ |
+ <a class="blue"
+ href="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201">User
+ Forum</a>
+ |
+ <a class="blue"
+ href="http://jboss.com/index.html?module=bb&op=viewforum&f=162">Development
+ Forum</a>
+ |
+ <a class="blue"
+ href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10020">JIRA
+ / Bugs</a>
+ | #jbosstools on irc.freenode.net
+ </td>
+ <td align="right">
+ <a class="blue" href="http://www.redhat.com">
+ <img src="images/redhat.gif" border="0" />
+ </a>
+ <a class="blue" href="http://www.jboss.org">
+ <img src="images/jboss.gif" border="0" />
+ </a>
+ <a class="blue" href="http://www.hibernate.org">
+ <img src="images/hibernate.gif" border="0" />
+ </a>
+ <a class="blue" href="http://www.eclipse.org">
+ <img src="images/eclipse.gif" border="0" />
+ </a>
+ </td>
+ </tr>
+ </table>
+
+ <div id="downloadLinks">
+
+ <table>
+ <tr>
+ <td colspan="2">
+ First time here ? Read
+ <a href="http://www.jboss.org/tools/download/installation.html">How
+ to install JBoss Tools.</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <h1>p2 Repo / Update Site Zips:</h1>
+ </td>
+ </tr>
+
+ <xsl:for-each select="project">
+ <xsl:variable name="rowColor">
+ <xsl:if test="position() mod 2 = 1">
+ #CCCCEE
+ </xsl:if>
+ <xsl:if test="position() mod 2 = 0">
+ #FFFFFF
+ </xsl:if>
+ <xsl:if test="contains(@name,'All')">
+ #CCEECC
+ </xsl:if>
+ <xsl:if test="contains(@name,'Source')">
+ #EECCCC
+ </xsl:if>
+ </xsl:variable>
+
+ <tr bgcolor="{$rowColor}">
+ <td>
+ <img src="images/OK-small.png" />
+ </td>
+ <td class="downloadInfo">
+ <xsl:for-each select=".">
+ <b>
+ <acronym title="{@name} :: {description}">
+ <a class="allLink-blue" href="{$baseurl}/{download/@url}">
+ <xsl:value-of select="concat(@name,' ',@version)" />
+ </a>
+ </acronym>
+ <br />
+ <a class="md5" href="{$baseurl}/{download/(a)url}.MD5">MD5</a>
+ | filesize:
+ <xsl:value-of select="download/@size" />
+ </b>
+ <br />
+ </xsl:for-each>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+
+ </div>
+
+ <div id="rightFrame">
+ <div id="buildDrivers-blue">
+ <b>SVN Revisions</b>
+ <br />
+ See
+ <a
+ href="http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.2_stable...">SVN_REVISION.txt</a>
+ </div>
+ <div id="buildDrivers-blue">
+ <b>Target Platform</b>
+ <table>
+ <tr>
+ <td rowspan="3">
+ Eclipse Helios 3.6.1 +
+ <br />
+ Web Tools 3.2.2 +
+ <br />
+ TPTP + BIRT + DTP ...
+ </td>
+ <td>
+ <a class="blue"
+ href="http://download.jboss.org/jbosstools/updates/target-platform/latest/">Target Platform Update Site</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a class="blue"
+ href="http://download.jboss.org/jbosstools/updates/target-platform/e361-wtp322....">Target Platform Update Zip</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a class="blue"
+ href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/uni...">Target Platform Definition File</a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="unitTestResults-blue">
+ <b>Unit Test Results</b>
+ <br />
+
+ See
+ <a
+ href="http://hudson.qa.jboss.com/hudson/view/DevStudio_Stable_Branch/job/jbosst...">jbosstools-3.2_stable_branch.tests</a>
+ <!-- <table> <tr> <td> <img src="images/test.gif" /> Tests </td> <td
+ align="right">??? </td> </tr> <tr> <td> <img src="images/testerr.gif" />
+ Errors </td> <td align="right">???</td> </tr> <tr> <td> <img src="images/testfail.gif"
+ /> Failures </td> <td align="right">???</td> </tr> <tr> <td colspan="2">
+ <b id="testPassPercentageAmount">%</b> tests passed <div id="testPercentage">
+ <div id="testPassPercentage"> </div> <div id="testFailPercentage"> </div>
+ </div> </td> </tr> </table> -->
+
+ <script>
+ <!-- var tests = 2228; var failures = 0; var errors = 0; var passPercent
+ = Math.floor(((tests-(failures+errors))/tests) * 100); var failPercent =
+ 100 - passPercent; document.getElementById("testPassPercentage").style.width
+ = passPercent + '%'; document.getElementById("testFailPercentage").style.width
+ = failPercent + '%'; document.getElementById("testPassPercentageAmount").innerHTML
+ = passPercent + '%'; -->
+ </script>
+
+ <!-- <div align="right"> <a class="blue" style="align: right;" href="tests/test-results/org.jboss.ide.eclipse.tests.html">See
+ full unit test results</a> </div> <div align="right"> <a class="blue" style="align:
+ right;" href="tests/test-results/test-workspace.log.txt">See unit test workspace
+ log</a> </div> <div id="coverageResults-blue"> <b>Test Coverage Results</b>
+ <br /> <div align="right"> <a class="blue" style="align: right;" href="tests/test-results/emma-coverage/index.html">See
+ test coverage results</a> </div> <div align="right"> <a class="blue" style="align:
+ right;" href="tests/test-results/emma-coverage/coverage.es">See coverage
+ session file</a> </div> </div> -->
+ </div>
+
+ <div id="buildInfo">
+ <p>
+ <b>WARNING</b>
+ </p>
+ <p>This build has been deemed by the JBossTools team to be in
+ good working condition.
+ Please note that this build may be a
+ developer release, and if so
+ should be treated
+ with slightly more
+ understanding and care than a stable release.
+ Please see the
+ release
+ notes on JIRA and/or Sourceforge for further
+ information.
+ (This
+ release is much less likely to
+ set your
+ computer aflame.)</p>
+
+ <p>Any suggestions/issues should be posted on the relevant
+ product
+ forums and should clearly indicate that you are using an
+ integration
+ build. Please take care in making sure that your
+ issue hasn't
+ already been addressed when posting on forums or
+ opening new
+ JIRA issues.</p>
+ </div>
+
+ </div>
+
+ </div>
+
+ </body>
+ </html>
+
+
+
+ </xsl:template>
+</xsl:transform>
\ No newline at end of file
Copied: branches/jbosstools-3.3.x/build/results/DEPRECATED/build.xml (from rev 41918, branches/jbosstools-3.3.x/build/results/build.xml)
===================================================================
--- branches/jbosstools-3.3.x/build/results/DEPRECATED/build.xml (rev 0)
+++ branches/jbosstools-3.3.x/build/results/DEPRECATED/build.xml 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,184 @@
+<project default="buildResults.single">
+
+ <!-- should be set by script or in Hudson -->
+ <property name="ZIPSUFFIX" value="SNAPSHOT" />
+
+ <!-- should be set by Hudson -->
+ <!-- <property name="JOB_NAME" value="jbosstools-3.2.0.M2.continuous" /> -->
+
+ <!-- if ${WORKSPACE}/site folder exists, target that folder; else generate here. -->
+ <condition property="output.dir" value="${WORKSPACE}/results" else="${basedir}">
+ <available file="${WORKSPACE}/results" />
+ </condition>
+
+ <condition property="WORKINGDIR" value="${WORKSPACE}/sources" else="${basedir}/../..">
+ <available file="${WORKSPACE}/sources" type="dir" />
+ </condition>
+ <property name="input.dir" value="${WORKINGDIR}" />
+
+ <mkdir dir="${WORKINGDIR}" />
+
+ <condition property="COMMON_TOOLS" value="/home/hudson/static_build_env/jbds/tools">
+ <available file="/home/hudson/static_build_env/jbds" type="dir" />
+ </condition>
+ <condition property="COMMON_TOOLS" value="${WORKINGDIR}/../tools" else="${java.io.tmpdir}">
+ <available file="${WORKINGDIR}/../tools" type="dir" />
+ </condition>
+ <mkdir dir="${COMMON_TOOLS}" />
+
+ <target name="get.ant-contrib" unless="ant-contrib.jar.exists">
+ <property name="ANTCONTRIB_MIRROR" value="http://downloads.sourceforge.net/ant-contrib/" />
+ <get usetimestamp="true" dest="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" src="${ANTCONTRIB_MIRROR}/ant-contrib-1.0b2-bin.zip" />
+ <touch file="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" />
+ <mkdir dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" />
+ <unzip src="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" dest="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" overwrite="true" />
+ <copy file="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_/ant-contrib/lib/ant-contrib.jar" tofile="${COMMON_TOOLS}/ant-contrib.jar" failonerror="true" />
+ <delete dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" includeemptydirs="true" quiet="true" />
+ </target>
+
+ <target name="get.saxon" unless="saxon.jar.exists">
+ <!-- or use http://downloads.sourceforge.net/saxon/saxonhe9-3-0-4j.zip ? -->
+ <property name="SAXON_MIRROR" value="http://downloads.sourceforge.net/project/saxon/Saxon-HE/9.3/saxonhe9-3-0-..." />
+ <get usetimestamp="true" dest="${COMMON_TOOLS}/saxonhe9-3-0-4j.zip" src="${SAXON_MIRROR}" />
+ <mkdir dir="${java.io.tmpdir}/saxonhe9-3-0-4j.zip_" />
+ <unzip src="${COMMON_TOOLS}/saxonhe9-3-0-4j.zip" dest="${java.io.tmpdir}/saxonhe9-3-0-4j.zip_" overwrite="true" />
+ <copy file="${java.io.tmpdir}/saxonhe9-3-0-4j.zip_/saxon9he.jar" tofile="${COMMON_TOOLS}/saxon.jar" failonerror="true" />
+ <delete dir="${java.io.tmpdir}/saxonhe9-3-0-4j.zip_" includeemptydirs="true" quiet="true" />
+ </target>
+
+ <target name="init">
+ <available file="${COMMON_TOOLS}/ant-contrib.jar" type="file" property="ant-contrib.jar.exists" />
+ <antcall target="get.ant-contrib" />
+ <taskdef resource="net/sf/antcontrib/antlib.xml">
+ <classpath>
+ <pathelement location="${COMMON_TOOLS}/ant-contrib.jar" />
+ </classpath>
+ </taskdef>
+
+ <available file="${COMMON_TOOLS}/saxon.jar" type="file" property="saxon.jar.exists" />
+ <antcall target="get.saxon" />
+
+ <condition property="aggregate_site_build.xml" value="${basedir}/../aggregate/build.xml">
+ <available file="${basedir}/../aggregate/build.xml" type="file" />
+ </condition>
+
+ <macrodef name="get.size">
+ <attribute name="file" />
+ <attribute name="property" />
+ <sequential>
+ <var name="size" unset="true" />
+ <var name="size-in-mb" unset="true" />
+ <if>
+ <available file="@{file}" />
+ <then>
+ <length file="@{file}" property="size" />
+ <math result="size-in-mb">
+ <op op="/">
+ <op op="floor">
+ <op op="*">
+ <op op="/">
+ <num value="${size}" />
+ <num value="1048576" />
+ </op>
+ <num value="100" />
+ </op>
+ </op>
+ <num value="100" />
+ </op>
+ </math>
+
+ <property name="@{property}" value="${size-in-mb}" />
+ </then>
+ <else>
+ <property name="@{property}" value="-1" />
+ </else>
+ </if>
+ </sequential>
+ </macrodef>
+ </target>
+
+ <!-- NEW STUFF HERE -->
+
+ <target name="buildResults.single" depends="init" description="generate buildResults.html from build properties">
+ <ant target="collect.zips" antfile="${aggregate_site_build.xml}">
+ <property name="inputRepos" value="2" />
+ <property name="inputRepo1" value="file://${input.dir}/all/repo/" />
+ <property name="inputRepo2" value="http://download.jboss.org/jbosstools/builds/staging/${JOB_NAME}/all/repo/" />
+ </ant>
+ <ant target="collect.metadata" antfile="${aggregate_site_build.xml}">
+ </ant>
+ <antcall target="buildResults" />
+ </target>
+
+ <target name="buildResults.aggregate" depends="init" description="generate buildResults.html from build properties">
+ <ant target="collect.zips" antfile="${aggregate_site_build.xml}">
+ <property name="inputRepos" value="2" />
+ <property name="inputRepo1" value="file://${input.dir}/all/repo/" />
+ <!-- for trunk use _composite_/trunk; for 3.3_stable_branch, use _composite_/3.3.indigo -->
+ <property name="inputRepo2" value="http://download.jboss.org/jbosstools/builds/staging/_composite_/3.3.indigo/" />
+ </ant>
+ <ant target="collect.metadata" antfile="${aggregate_site_build.xml}">
+ </ant>
+ <antcall target="buildResults" />
+ </target>
+
+ <target name="test.buildResults.aggregate" depends="init" description="generate buildResults.html from build properties">
+ <property name="isTest" value="true" />
+ <ant target="collect.zips" antfile="${aggregate_site_build.xml}">
+ <property name="inputRepos" value="1" />
+ <!-- for trunk use _composite_/trunk; for 3.3_stable_branch, use _composite_/3.3.indigo -->
+ <property name="inputRepo1" value="http://download.jboss.org/jbosstools/builds/staging/_composite_/3.3.indigo/" />
+ </ant>
+ <ant target="collect.metadata" antfile="${aggregate_site_build.xml}">
+ </ant>
+ <antcall target="buildResults" />
+ </target>
+
+ <target name="test.buildResults.single" depends="init" description="generate buildResults.html from build properties">
+ <property name="isTest" value="true" />
+ <ant target="collect.zips" antfile="${aggregate_site_build.xml}">
+ <property name="inputRepos" value="1" />
+ <property name="inputRepo1" value="http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.3_trunk...." />
+ </ant>
+ <ant target="collect.metadata" antfile="${aggregate_site_build.xml}">
+ </ant>
+ <antcall target="buildResults" />
+ </target>
+
+ <target name="buildResults" description="generate buildResults.html from build properties" depends="init">
+ <var name="propertiesFileFound" unset="true" />
+ <for param="propertiesFile" delimiter=", " list="${output.dir}/zips/build.properties.all.xml, zips/build.properties.all.xml, ../../logs/zips/build.properties.all.xml">
+ <sequential>
+ <if>
+ <and>
+ <available file="@{propertiesFile}" type="file" />
+ <not>
+ <isset property="propertiesFileFound" />
+ </not>
+ </and>
+ <then>
+ <var name="propertiesFileFound" value="true" />
+ <delete quiet="true" file="buildResults.html" />
+ <xslt in="@{propertiesFile}" out="buildResults.html" style="buildResults.xsl" force="true">
+ <classpath>
+ <pathelement location="${COMMON_TOOLS}/saxon.jar" />
+ </classpath>
+ </xslt>
+ </then>
+ <else>
+ </else>
+ </if>
+ </sequential>
+ </for>
+ <if>
+ <not>
+ <isset property="propertiesFileFound" />
+ </not>
+ <then>
+ <echo>Could not generate buildResults.html from zips/build.properties.all.xml - file does not exist!</echo>
+ </then>
+ </if>
+ <var name="propertiesFileFound" unset="true" />
+ </target>
+
+</project>
Copied: branches/jbosstools-3.3.x/build/results/DEPRECATED/buildResults.css (from rev 41918, branches/jbosstools-3.3.x/build/results/buildResults.css)
===================================================================
--- branches/jbosstools-3.3.x/build/results/DEPRECATED/buildResults.css (rev 0)
+++ branches/jbosstools-3.3.x/build/results/DEPRECATED/buildResults.css 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,258 @@
+@CHARSET "UTF-8";
+body {
+ font-family: Verdana, Sans-Serif, Helvetica, Arial;
+}
+
+#header, #header-blue {
+ width: 70%;
+ position: absolute;
+ top: 10px;
+ left: 15%;
+ padding: 5px;
+ padding-bottom: 0px;
+ margin-bottom: 0px;
+ color: #fff;
+
+ border-width: 1px;
+ border-style: solid;
+ border-color: #a00000;
+}
+
+#header {
+ background: url(images/gradient-red.png) 0px 0px repeat-x;
+}
+
+#header-blue {
+ background: url(images/gradient-blue.png) 0px 0px repeat-x;
+}
+
+#header table tr td, #header-blue table tr td {
+ font-weight: bold;
+ font-size: 14pt;
+}
+
+#title {
+ color: #f0f0f0;
+}
+
+#title-blue {
+ color: #000000;
+}
+
+#buildName {
+ font-size: 10pt;
+ color: #fc6;
+}
+
+#buildName-blue {
+ font-size: 10pt;
+ color: #0000d0;
+}
+
+#buildDate, #buildExecTime, #buildLog {
+ font-size: 8pt;
+ color: #ccc;
+}
+
+#buildDate-blue, #buildExecTime-blue {
+ font-size: 8pt;
+ color: #303060;
+}
+
+#buildLog-blue {
+ font-size: 8pt;
+ color: #0000d0;
+}
+
+#downloads, #downloads-blue {
+ border-width: 1px;
+ border-style: solid;
+ border-color: #a00000;
+ border-top-width: 0px;
+ padding: 5px;
+
+ width: 70%;
+ position: absolute;
+ top: 61px;
+ left: 15%;
+}
+
+#links, #links-blue {
+ border-width: 0px 0px 1px 0px;
+ border-style: solid;
+ border-color: #a00000;
+ padding-bottom: 4px;
+}
+
+#links tr td {
+ font-size: 8pt;
+}
+
+a {
+ color: #a00000;
+}
+
+a.blue {
+ color: #6060c0;
+}
+
+a:hover {
+ color: #f00000;
+}
+
+a.blue:hover {
+ color: #0000f0;
+}
+
+h1 {
+ font-size: 11pt;
+ color: #300000;
+}
+
+h1.blue {
+ color: #000030;
+}
+
+h2 {
+ font-size: 10pt;
+ color: #d00000;
+}
+
+h2.blue {
+ color: #0000d0;
+}
+
+p {
+ font-size: 8pt;
+ color: #202020;
+}
+
+div.line {
+ background-color: #f00000;
+ height: 1px;
+}
+
+div.line-blue {
+ background-color: #0000f0;
+ height: 1px;
+}
+
+#rightFrame {
+ float: right;
+ padding: 5px;
+}
+
+#buildDrivers, #unitTestResults, #coverageResults, #buildDrivers-blue, #unitTestResults-blue, #coverageResults-blue {
+ font-size: 10pt;
+ color: #000030;
+
+ border-bottom-width: 1px;
+ border-bottom-style: solid;
+ border-bottom-color: #f00000;
+
+ padding-bottom: 3px;
+ margin-bottom: 3px;
+}
+
+#buildDrivers-blue, #unitTestResults-blue, #coverageResults-blue {
+ border-bottom-color: #0000f0;
+}
+
+#buildDrivers table tr td, #buildDrivers-blue table tr td {
+ font-size: 8pt;
+}
+
+#unitTestResults table tr td, #unitTestResults-blue table tr td {
+ font-size: 9pt;
+}
+
+img {
+ vertical-align: middle;
+}
+
+#downloadLinks {
+ padding: 5px;
+ float: left;
+}
+
+#downloadLinks h1 {
+ font-size: 14pt;
+}
+
+.downloadInfo {
+ font-size: 8pt;
+ color: #909090;
+}
+
+a.allLink, a.allLink-blue {
+ padding-left: 5px;
+ font-size: 14pt;
+ font-weight: bold;
+ text-decoration: none;
+ color: #c33;
+}
+
+a.allLink-blue {
+ color: #3030c0;
+}
+
+a.pluginLink, a.pluginLink-blue {
+ padding-left: 5px;
+ font-size: 8pt;
+ font-weight: bold;
+ text-decoration: none;
+ color: #c33;
+}
+
+a.pluginLink-blue {
+ color: #3030c0;
+}
+
+a.md5 {
+ font-size: 8pt;
+ font-weight: bold;
+ color: #666;
+ text-decoration: none;
+}
+
+span.description {
+ font-size: 10pt;
+ color: black;
+ font-weight: bold;
+}
+
+
+#buildInfo {
+ width: 300px;
+}
+
+
+#buildInfo p, #buildInfo b {
+ font-size: 8pt;
+ color: #666;
+}
+
+#testPercentage {
+ border: 1px solid #666;
+ width: 200px;
+ height: 15px;
+
+}
+
+#testPassPercentage {
+ background-color: #21844f;
+ height: 15px;
+ float: left;
+ clear: none;
+}
+
+#testFailPercentage {
+ background-color: #de1f2f;
+ height: 15px;
+ float: left;
+ clear: none;
+}
+
+#header-blue, #downloads-blue, #links-blue {
+ border-color: #0000f0;
+}
\ No newline at end of file
Copied: branches/jbosstools-3.3.x/build/results/DEPRECATED/buildResults.xsl (from rev 41918, branches/jbosstools-3.3.x/build/results/buildResults.xsl)
===================================================================
--- branches/jbosstools-3.3.x/build/results/DEPRECATED/buildResults.xsl (rev 0)
+++ branches/jbosstools-3.3.x/build/results/DEPRECATED/buildResults.xsl 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,326 @@
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/"
+ xmlns="http://www.w3.org/1999/xhtml" extension-element-prefixes="saxon">
+ <xsl:output method="html" indent="yes" />
+ <xsl:template match="/properties">
+ <html>
+ <head>
+ <title>JBossTools Build Results</title>
+ <link rel="stylesheet" type="text/css" href="buildResults.css" />
+ </head>
+ <body>
+ <div id="header-blue">
+ <table width="100%" height="100%">
+ </table>
+ </div>
+
+ <div id="downloads-blue">
+ <table id="links-blue" width="100%">
+ <tr>
+ <td>
+ <a class="blue" href="http://www.jboss.org/tools">JBossTools</a>
+ |
+ <a class="blue" href="http://www.redhat.com/jbds">JBDS</a>
+ |
+ <a class="blue" href="http://tools.hibernate.org">Hibernate Tools</a>
+ |
+ <a class="blue"
+ href="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201">User
+ Forum</a>
+ |
+ <a class="blue"
+ href="http://jboss.com/index.html?module=bb&op=viewforum&f=162">Development
+ Forum</a>
+ |
+ <a class="blue"
+ href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10020">JIRA
+ / Bugs</a>
+ | #jbosstools on irc.freenode.net
+ </td>
+ <td align="right">
+ <a class="blue" href="http://www.redhat.com">
+ <img src="images/redhat.gif" border="0" />
+ </a>
+ <a class="blue" href="http://www.jboss.org">
+ <img src="images/jboss.gif" border="0" />
+ </a>
+ <a class="blue" href="http://www.hibernate.org">
+ <img src="images/hibernate.gif" border="0" />
+ </a>
+ <a class="blue" href="http://www.eclipse.org">
+ <img src="images/eclipse.gif" border="0" />
+ </a>
+ </td>
+ </tr>
+ </table>
+
+ <div id="downloadLinks">
+
+ <table>
+ <tr>
+ <td colspan="2">
+ First time here ? Read
+ <a href="http://www.jboss.org/tools/download/installation.html">How
+ to install JBoss Tools.</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2">
+ <h1>p2 Repo / Update Site Zips:</h1>
+ </td>
+ </tr>
+
+ <!-- three use cases: a regular component build (as, ws, etc.), a
+ different-SVN component build (teiid, pi4soa, savara), and a special component
+ build (xulrunner) -->
+ <xsl:for-each
+ select="//property[contains(@name,'build.properties.JOB_NAME')]">
+ <xsl:variable name="JOB_NAME">
+ <xsl:value-of select="@value" />
+ </xsl:variable>
+ <xsl:variable name="COMPONENT">
+ <xsl:choose>
+ <!-- property name="jbosstools-3.3_trunk.component- -ws-SNAPSHOT.build.properties.JOB_NAME"
+ value="jbosstools-3.3_trunk.component- -ws" -->
+ <xsl:when test="contains(@value,'component--')">
+ <xsl:value-of select="substring-after(@value,'component--')" />
+ </xsl:when>
+
+ <!-- property name="jbosstools-drools-5.2_trunk-SNAPSHOT.build.properties.JOB_NAME"
+ value="jbosstools-drools-5.2_trunk" -->
+ <xsl:when test="contains(@value, '_stable_branch')">
+ <xsl:value-of
+ select="substring-before(substring-after(@value,'jbosstools-'),'_stable_branch')" />
+ </xsl:when>
+ <xsl:when test="contains(@value, '_trunk')">
+ <xsl:value-of
+ select="substring-before(substring-after(@value,'jbosstools-'),'_trunk')" />
+ </xsl:when>
+
+ <!-- property name="xulrunner-1.9.1.2-2011-01-20_20-39-25-H36.build.properties.JOB_NAME"
+ value="xulrunner-1.9.1.2" -->
+ <xsl:otherwise>
+ <xsl:value-of select="@value" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <tr>
+ <td colspan="2">
+ <a href="http://hudson.qa.jboss.com/hudson/job/{$JOB_NAME}/">
+ <xsl:value-of select="$COMPONENT" />
+ </a>
+ </td>
+ </tr>
+
+ <xsl:for-each
+ select="//property[contains(@name,'build.properties.filename') and contains(@name,$COMPONENT)]">
+ <xsl:variable name="rowColor">
+ <xsl:if test="position() mod 2 = 1">
+ #CCCCEE
+ </xsl:if>
+ <xsl:if test="position() mod 2 = 0">
+ #FFFFFF
+ </xsl:if>
+ <xsl:if test="contains(@name,'All')">
+ #CCEECC
+ </xsl:if>
+ <xsl:if test="contains(@name,'Source')">
+ #EECCCC
+ </xsl:if>
+ </xsl:variable>
+
+ <tr bgcolor="{$rowColor}">
+ <!-- <td> <img src="images/OK-small.png" /> </td> -->
+ <td class="downloadInfo">
+ <xsl:for-each select=".">
+ <b>
+ <xsl:variable name="filelabel">
+ <xsl:choose>
+ <!-- property name="jbosstools-3.3_trunk.component- -ws-SNAPSHOT.build.properties.JOB_NAME"
+ value="jbosstools-3.3_trunk.component- -ws" -->
+ <xsl:when test="contains(@value,'component--')">
+ <xsl:value-of select="substring-after(@value,'component--')" />
+ </xsl:when>
+
+ <!-- property name="jbosstools-drools-5.2_trunk-SNAPSHOT.build.properties.JOB_NAME"
+ value="jbosstools-drools-5.2_trunk" -->
+ <xsl:when test="contains(@value, '_stable_branch')">
+ <xsl:value-of
+ select="replace(substring-after(@value,'jbosstools-'),'_stable_branch','')" />
+ </xsl:when>
+ <xsl:when test="contains(@value, '_trunk')">
+ <xsl:value-of
+ select="replace(substring-after(@value,'jbosstools-'),'_trunk','')" />
+ </xsl:when>
+
+ <!-- property name="xulrunner-1.9.1.2-2011-01-20_20-39-25-H36.build.properties.JOB_NAME"
+ value="xulrunner-1.9.1.2" -->
+ <xsl:otherwise>
+ <xsl:value-of select="@value" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <!-- Update, Sources, etc. -->
+ <xsl:variable name="fileType">
+ <xsl:choose>
+ <xsl:when test="contains($filelabel, 'Update')">
+ <xsl:value-of
+ select="'Update'" />
+ </xsl:when>
+ <xsl:when test="contains($filelabel, 'Sources')">
+ <xsl:value-of
+ select="'Sources'" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="'Other'" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <a class="allLink-blue" href="{@value}">
+ <xsl:value-of select="$filelabel" />
+ </a>
+ <ul>
+ <li>
+ md5:
+ <xsl:for-each
+ select="//property[contains(@name,'build.properties.filemd5') and contains(@name,$COMPONENT) and contains(@name,$fileType)]">
+ <xsl:value-of select="@value" />
+ </xsl:for-each>
+ </li><li>size:
+ <xsl:for-each
+ select="//property[contains(@name,'build.properties.filesize') and contains(@name,$COMPONENT) and contains(@name,$fileType)]">
+ <xsl:value-of select="@value" /> bytes
+ </xsl:for-each>
+ </li>
+
+ <xsl:for-each
+ select="tokenize(//property[contains(@name,'build.properties.SVN_REVISION') and contains(@name,$COMPONENT)]/@value,',')">
+ <li>SVN: <xsl:value-of select="." /></li>
+ </xsl:for-each>
+ </ul>
+ </b>
+ </xsl:for-each>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </xsl:for-each>
+ </table>
+
+ </div>
+
+ <div id="rightFrame">
+ <div id="buildDrivers-blue">
+ <b>SVN Revisions</b>
+ <br />
+ See
+ <a
+ href="http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.3_trunk....">SVN_REVISION.txt</a>
+ </div>
+ <div id="buildDrivers-blue">
+ <b>Target Platform</b>
+ <table>
+ <tr>
+ <td rowspan="3">
+ Eclipse Helios 3.7 +
+ <br />
+ Web Tools 3.3 +
+ <br />
+ BIRT + DTP ...
+ </td>
+ <td>
+ <a class="blue"
+ href="http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo/l...">Target Platform Update Site</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a class="blue"
+ href="http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo/e...">Target Platform Update Zip</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a class="blue"
+ href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/uni...">Target Platform Definition File</a>
+ </td>
+ </tr>
+ </table>
+ </div>
+ <div id="unitTestResults-blue">
+ <b>Unit Test Results</b>
+ <br />
+
+ See
+ <a
+ href="http://hudson.qa.jboss.com/hudson/view/DevStudio_Trunk/job/jbosstools-3.3...">jbosstools-3.3_trunk.tests</a>
+ <!-- <table> <tr> <td> <img src="images/test.gif" /> Tests </td> <td
+ align="right">??? </td> </tr> <tr> <td> <img src="images/testerr.gif" />
+ Errors </td> <td align="right">???</td> </tr> <tr> <td> <img src="images/testfail.gif"
+ /> Failures </td> <td align="right">???</td> </tr> <tr> <td colspan="2">
+ <b id="testPassPercentageAmount">%</b> tests passed <div id="testPercentage">
+ <div id="testPassPercentage"> </div> <div id="testFailPercentage"> </div>
+ </div> </td> </tr> </table> -->
+
+ <script>
+ <!-- var tests = 2228; var failures = 0; var errors = 0; var passPercent
+ = Math.floor(((tests-(failures+errors))/tests) * 100); var failPercent =
+ 100 - passPercent; document.getElementById("testPassPercentage").style.width
+ = passPercent + '%'; document.getElementById("testFailPercentage").style.width
+ = failPercent + '%'; document.getElementById("testPassPercentageAmount").innerHTML
+ = passPercent + '%'; -->
+ </script>
+
+ <!-- <div align="right"> <a class="blue" style="align: right;" href="tests/test-results/org.jboss.ide.eclipse.tests.html">See
+ full unit test results</a> </div> <div align="right"> <a class="blue" style="align:
+ right;" href="tests/test-results/test-workspace.log.txt">See unit test workspace
+ log</a> </div> <div id="coverageResults-blue"> <b>Test Coverage Results</b>
+ <br /> <div align="right"> <a class="blue" style="align: right;" href="tests/test-results/emma-coverage/index.html">See
+ test coverage results</a> </div> <div align="right"> <a class="blue" style="align:
+ right;" href="tests/test-results/emma-coverage/coverage.es">See coverage
+ session file</a> </div> </div> -->
+ </div>
+
+ <div id="buildInfo">
+ <p>
+ <b>WARNING</b>
+ </p>
+ <p>This build has been deemed by the JBossTools team to be in
+ good working condition.
+ Please note that this build may be a
+ developer release, and if so
+ should be treated
+ with slightly more
+ understanding and care than a stable release.
+ Please see the
+ release
+ notes on JIRA and/or Sourceforge for further
+ information.
+ (This
+ release is much less likely to
+ set your
+ computer aflame.)</p>
+
+ <p>Any suggestions/issues should be posted on the relevant
+ product
+ forums and should clearly indicate that you are using an
+ integration
+ build. Please take care in making sure that your
+ issue hasn't
+ already been addressed when posting on forums or
+ opening new
+ JIRA issues.</p>
+ </div>
+
+ </div>
+
+ </div>
+
+ </body>
+ </html>
+
+
+ </xsl:template>
+</xsl:stylesheet>
Copied: branches/jbosstools-3.3.x/build/results/DEPRECATED/collect-test-results.xml (from rev 41918, branches/jbosstools-3.3.x/build/results/collect-test-results.xml)
===================================================================
--- branches/jbosstools-3.3.x/build/results/DEPRECATED/collect-test-results.xml (rev 0)
+++ branches/jbosstools-3.3.x/build/results/DEPRECATED/collect-test-results.xml 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,226 @@
+<project default="collect.test.results.for.hudson" basedir="." name="Generate test results even when no tests were run. Prevents build from failing if tests are disabled.">
+ <!-- ****************************** Configuration ****************************** -->
+
+ <!-- override for local build -->
+ <condition property="isInHudson" value="true">
+ <or>
+ <contains string="${user.dir}" substring="hudson" />
+ <contains string="${user.name}" substring="hudson" />
+ <contains string="${user.home}" substring="hudson" />
+ </or>
+ </condition>
+ <target name="local" unless="isInHudson">
+ <property name="WORKINGDIR" value="${basedir}" />
+ <property name="COMMON_TOOLS" value="${java.io.tmpdir}" />
+ </target>
+
+ <target name="get.ant-contrib" unless="ant-contrib.jar.exists">
+ <property name="ANTCONTRIB_MIRROR" value="http://downloads.sourceforge.net/ant-contrib/" />
+ <get usetimestamp="true" dest="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" src="${ANTCONTRIB_MIRROR}/ant-contrib-1.0b2-bin.zip" />
+ <touch file="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" />
+ <mkdir dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" />
+ <unzip src="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" dest="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" overwrite="true" />
+ <copy file="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_/ant-contrib/lib/ant-contrib.jar" tofile="${COMMON_TOOLS}/ant-contrib.jar" failonerror="true" />
+ <delete dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" includeemptydirs="true" quiet="true" />
+ </target>
+
+ <target name="init" depends="local">
+ <!-- https://jira.jboss.org/jira/browse/JBQA-3313 Use static, shared space outside workspace, instead of working directly in the workspace -->
+ <condition property="WORKINGDIR" value="/home/hudson/static_build_env/jbds/tools/sources" else="${basedir}">
+ <available file="/home/hudson/static_build_env/jbds" type="dir" />
+ </condition>
+ <mkdir dir="${WORKINGDIR}" />
+ <echo level="info">WORKINGDIR = ${WORKINGDIR}</echo>
+
+ <condition property="COMMON_TOOLS" value="/home/hudson/static_build_env/jbds/tools" else="${WORKINGDIR}/../tools">
+ <available file="/home/hudson/static_build_env/jbds" type="dir" />
+ </condition>
+ <mkdir dir="${COMMON_TOOLS}" />
+ <echo level="info">COMMON_TOOLS = ${COMMON_TOOLS}</echo>
+
+ <available file="${COMMON_TOOLS}/ant-contrib.jar" type="file" property="ant-contrib.jar.exists" />
+ <antcall target="get.ant-contrib" />
+ <taskdef resource="net/sf/antcontrib/antlib.xml">
+ <classpath>
+ <pathelement location="${COMMON_TOOLS}/ant-contrib.jar" />
+ </classpath>
+ </taskdef>
+
+ </target>
+
+ <!-- ***** The methods below are used in Hudson/Jenkins jobs to generate test results even when no tests were run. Prevents build from failing if tests are disabled. ***** -->
+
+ <!--
+ To run this after a maven build in Hudson, set these properties:
+ basedir=${WORKSPACE}/sources
+ WORKINGDIR=${WORKSPACE}/sources
+ COMPONENT=.
+ move.test.results=true
+ -->
+ <target name="collect.test.results.for.hudson" depends="init" if="isInHudson" description="collect test results after a pure maven build so Hudson has something to see">
+ <property name="basedir" value="${WORKSPACE}/sources" />
+ <property name="WORKINGDIR" value="${WORKSPACE}/sources" />
+ <property name="COMPONENT" value="." />
+ <property name="move.test.results" value="true" />
+ <var name="tests.results.found" value="false" />
+ <echo level="debug">basedir = ${basedir}
+WORKINGDIR = ${WORKINGDIR}
+COMPONENT = ${COMPONENT}</echo>
+ <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
+ <for param="test.xml.files" delimiter=",
+ ">
+ <path>
+ <fileset dir="${WORKINGDIR}" includes="**/target/surefire-reports/TEST-*.xml, **/**/target/surefire-reports/TEST-*.xml" excludes="**/TEST-*NoTestsRun.xml, **/**/TEST-*NoTestsRun.xml" />
+ </path>
+ <sequential>
+ <var name="tests.results.found" value="true" />
+ </sequential>
+ </for>
+ <if>
+ <equals arg1="${tests.results.found}" arg2="true" />
+ <then>
+ <antcall target="collect.test.results">
+ <param name="COMPONENT" value="." />
+ </antcall>
+ <antcall target="collect.all.test.results" />
+ </then>
+ <else>
+ <antcall target="create.empty.test.results.file" />
+ <property name="no.tests.run" value="true" />
+ </else>
+ </if>
+ </target>
+
+ <target name="create.empty.test.results.file">
+ <!-- create fake test result file to avoid Hudson failure -->
+ <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
+ <mkdir dir="${basedir}/surefire-reports/NoTestsRun" />
+ <echo file="${basedir}/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml"><?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.001" errors="0" skipped="0" tests="1" name="org.jboss.tools.NoTestsRun">
+<testcase time="0.001" classname="org.jboss.tools.NoTestsRun" name="NoTestsRun"/>
+</testsuite>
+</echo>
+ </target>
+
+ <target name="collect.test.results">
+ <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
+ <property name="COMPONENT" value="" />
+ <!-- collect test results by copying ${WORKINGDIR}/${COMPONENT}/**/target/surefire-reports/*.xml into ${basedir}/surefire-reports/${COMPONENT} -->
+ <delete dir="${basedir}/surefire-reports/${COMPONENT}" includeemptydirs="true" />
+ <mkdir dir="${basedir}/surefire-reports/${COMPONENT}" />
+ <copy todir="${basedir}/surefire-reports/${COMPONENT}" flatten="true" preservelastmodified="true" overwrite="true">
+ <fileset dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports/TEST-*.xml" />
+ </copy>
+ <if>
+ <isset property="move.test.results" />
+ <then>
+ <delete dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports" />
+ </then>
+ </if>
+ </target>
+
+ <target name="collect.all.test.results" unless="no.tests.run">
+ <var name="test.results.all" value="" />
+ <var name="test.results.errors.failures.skipped" value="" />
+
+ <!-- Parse this: <testsuite errors="0" skipped="0" tests="10" time="0.042" failures="0" name="org.jboss.tools.jmx.ui.JMXUIAllTests"> -->
+ <for param="testresultfile" delimiter=",
+ ">
+ <path>
+ <fileset dir="${basedir}/surefire-reports/" includes="**/TEST-*.xml" />
+ </path>
+ <sequential>
+ <var name="testsuite.name" unset="true" />
+ <var name="testsuite.tests" unset="true" />
+ <var name="testsuite.time" unset="true" />
+ <var name="testsuite.skipped" unset="true" />
+ <var name="testsuite.errors" unset="true" />
+ <var name="testsuite.failures" unset="true" />
+ <xmlproperty file="@{testresultfile}" keepRoot="true" collapseAttributes="true" />
+ <for param="ts" list="testsuite.skipped, testsuite.errors, testsuite.failures" delimiter=", ">
+ <sequential>
+ <propertyregex override="true"
+ property="ts.label"
+ defaultvalue="@{ts}"
+ input="@{ts}"
+ regexp="testsuite\.(.+)"
+ replace="\1"
+ />
+ <if>
+ <isset property="@{ts}" />
+ <then>
+ <if>
+ <equals arg1="${@{ts}}" arg2="0" />
+ <then>
+ <var name="@{ts}" value="" />
+ </then>
+ <else>
+ <var name="@{ts}" value="; ${@{ts}} ${ts.label}" />
+ </else>
+ </if>
+ </then>
+ </if>
+
+ </sequential>
+ </for>
+ <if>
+ <or>
+ <not>
+ <equals arg1="${testsuite.skipped}" arg2="" />
+ </not>
+ <not>
+ <equals arg1="${testsuite.errors}" arg2="" />
+ </not>
+ <not>
+ <equals arg1="${testsuite.failures}" arg2="" />
+ </not>
+ </or>
+ <then>
+ <var name="test.results.errors.failures.skipped"
+ value="${test.results.errors.failures.skipped}${testsuite.name} ran ${testsuite.tests} tests in ${testsuite.time}s${testsuite.skipped}${testsuite.errors}${testsuite.failures}${line.separator}"
+ />
+ </then>
+ </if>
+ <if>
+ <isset property="testsuite.name" />
+ <then>
+ <var name="test.results.all"
+ value="${test.results.all}${testsuite.name} ran ${testsuite.tests} tests in ${testsuite.time}s${testsuite.skipped}${testsuite.errors}${testsuite.failures}${line.separator}"
+ />
+ </then>
+ </if>
+ <var name="testsuite.name" unset="true" />
+ <var name="testsuite.tests" unset="true" />
+ <var name="testsuite.time" unset="true" />
+ <var name="testsuite.skipped" unset="true" />
+ <var name="testsuite.errors" unset="true" />
+ <var name="testsuite.failures" unset="true" />
+ </sequential>
+ </for>
+ <echo level="verbose">-------------------------------------------------------
+ A L L T E S T R E S U L T S
+-------------------------------------------------------
+${test.results.all}
+-------------------------------------------------------
+
+</echo>
+ <if>
+ <and>
+ <isset property="test.results.errors.failures.skipped" />
+ <not>
+ <equals arg1="${test.results.errors.failures.skipped}" arg2="" />
+ </not>
+ </and>
+ <then>
+ <echo level="error">-------------------------------------------------------
+ T E S T R E S U L T S
+-------------------------------------------------------
+${test.results.errors.failures.skipped}
+-------------------------------------------------------
+
+</echo>
+ </then>
+ </if>
+ </target>
+
+</project>
Copied: branches/jbosstools-3.3.x/build/results/DEPRECATED/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml (from rev 41918, branches/jbosstools-3.3.x/build/results/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml)
===================================================================
--- branches/jbosstools-3.3.x/build/results/DEPRECATED/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml (rev 0)
+++ branches/jbosstools-3.3.x/build/results/DEPRECATED/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.001" errors="0" skipped="0" tests="1" name="org.jboss.tools.NoTestsRun">
+<testcase time="0.001" classname="org.jboss.tools.NoTestsRun" name="NoTestsRun"/>
+</testsuite>
Deleted: branches/jbosstools-3.3.x/build/results/OLD/buildResults.xsl
===================================================================
--- branches/jbosstools-3.3.x/build/results/OLD/buildResults.xsl 2012-06-13 12:56:06 UTC (rev 41928)
+++ branches/jbosstools-3.3.x/build/results/OLD/buildResults.xsl 2012-06-13 13:22:48 UTC (rev 41929)
@@ -1,264 +0,0 @@
-<xsl:transform version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xalan">
- <xsl:output method="html" indent="yes" xalan:indent-amount="4" />
- <xsl:template match="/projects">
-
- <xsl:variable name="baseurl">
- <xsl:value-of select="@baseurl" />
- </xsl:variable>
-
- <html>
- <head>
- <title>JBossTools Build Results</title>
- <link rel="stylesheet" type="text/css" href="buildResults.css" />
- </head>
- <body>
- <div id="header-blue">
- <table width="100%" height="100%">
- <tr>
- <td>
- <span id="title-blue">JBossTools Build Results</span>
- <br />
- <span id="buildName-blue">
- ${build-type} build
- ${jbds-build-name}
- <span id="buildName-blue" style="font-size: x-small;">
- [Hudson Build
- <a id="buildName-blue" style="font-size: x-small;"
- href="http://hudson.qa.jboss.com/hudson/view/DevStudio/job/${hudson-job-name}/$...">#${hudson-build-number},
- ${hudson-build-id}</a>
- ]
- </span>
- <span id="buildName-blue" style="font-size: x-small; font-style: italic;">
- <a id="buildName-blue"
- style="font-size: x-small; font-style: italic; color: black;"
- href="http://hudson.jboss.org/hudson/view/JBossTools/job/${hudson-job-name}/">Public
- Hudson Mirror</a>
- </span>
- </span>
- </td>
- <td align="right">
- <span id="buildDate-blue">${date}</span>
- <br />
- <span id="buildExecTime-blue">${build-time}</span>
- <br />
- <a id="buildLog-blue"
- href="http://download.jboss.org/jbosstools/builds/staging/${hudson-job-name}/logs/">Build Logs</a>
- </td>
- </tr>
- </table>
- </div>
-
- <div id="downloads-blue">
- <table id="links-blue" width="100%">
- <tr>
- <td>
- <a class="blue" href="http://www.jboss.org/tools">JBossTools</a>
- |
- <a class="blue" href="http://www.redhat.com/jbds">JBDS</a>
- |
- <a class="blue" href="http://tools.hibernate.org">Hibernate Tools</a>
- |
- <a class="blue"
- href="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201">User
- Forum</a>
- |
- <a class="blue"
- href="http://jboss.com/index.html?module=bb&op=viewforum&f=162">Development
- Forum</a>
- |
- <a class="blue"
- href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10020">JIRA
- / Bugs</a>
- | #jbosstools on irc.freenode.net
- </td>
- <td align="right">
- <a class="blue" href="http://www.redhat.com">
- <img src="images/redhat.gif" border="0" />
- </a>
- <a class="blue" href="http://www.jboss.org">
- <img src="images/jboss.gif" border="0" />
- </a>
- <a class="blue" href="http://www.hibernate.org">
- <img src="images/hibernate.gif" border="0" />
- </a>
- <a class="blue" href="http://www.eclipse.org">
- <img src="images/eclipse.gif" border="0" />
- </a>
- </td>
- </tr>
- </table>
-
- <div id="downloadLinks">
-
- <table>
- <tr>
- <td colspan="2">
- First time here ? Read
- <a href="http://www.jboss.org/tools/download/installation.html">How
- to install JBoss Tools.</a>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <h1>p2 Repo / Update Site Zips:</h1>
- </td>
- </tr>
-
- <xsl:for-each select="project">
- <xsl:variable name="rowColor">
- <xsl:if test="position() mod 2 = 1">
- #CCCCEE
- </xsl:if>
- <xsl:if test="position() mod 2 = 0">
- #FFFFFF
- </xsl:if>
- <xsl:if test="contains(@name,'All')">
- #CCEECC
- </xsl:if>
- <xsl:if test="contains(@name,'Source')">
- #EECCCC
- </xsl:if>
- </xsl:variable>
-
- <tr bgcolor="{$rowColor}">
- <td>
- <img src="images/OK-small.png" />
- </td>
- <td class="downloadInfo">
- <xsl:for-each select=".">
- <b>
- <acronym title="{@name} :: {description}">
- <a class="allLink-blue" href="{$baseurl}/{download/@url}">
- <xsl:value-of select="concat(@name,' ',@version)" />
- </a>
- </acronym>
- <br />
- <a class="md5" href="{$baseurl}/{download/(a)url}.MD5">MD5</a>
- | filesize:
- <xsl:value-of select="download/@size" />
- </b>
- <br />
- </xsl:for-each>
- </td>
- </tr>
- </xsl:for-each>
- </table>
-
- </div>
-
- <div id="rightFrame">
- <div id="buildDrivers-blue">
- <b>SVN Revisions</b>
- <br />
- See
- <a
- href="http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.2_stable...">SVN_REVISION.txt</a>
- </div>
- <div id="buildDrivers-blue">
- <b>Target Platform</b>
- <table>
- <tr>
- <td rowspan="3">
- Eclipse Helios 3.6.1 +
- <br />
- Web Tools 3.2.2 +
- <br />
- TPTP + BIRT + DTP ...
- </td>
- <td>
- <a class="blue"
- href="http://download.jboss.org/jbosstools/updates/target-platform/latest/">Target Platform Update Site</a>
- </td>
- </tr>
- <tr>
- <td>
- <a class="blue"
- href="http://download.jboss.org/jbosstools/updates/target-platform/e361-wtp322....">Target Platform Update Zip</a>
- </td>
- </tr>
- <tr>
- <td>
- <a class="blue"
- href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/uni...">Target Platform Definition File</a>
- </td>
- </tr>
- </table>
- </div>
- <div id="unitTestResults-blue">
- <b>Unit Test Results</b>
- <br />
-
- See
- <a
- href="http://hudson.qa.jboss.com/hudson/view/DevStudio_Stable_Branch/job/jbosst...">jbosstools-3.2_stable_branch.tests</a>
- <!-- <table> <tr> <td> <img src="images/test.gif" /> Tests </td> <td
- align="right">??? </td> </tr> <tr> <td> <img src="images/testerr.gif" />
- Errors </td> <td align="right">???</td> </tr> <tr> <td> <img src="images/testfail.gif"
- /> Failures </td> <td align="right">???</td> </tr> <tr> <td colspan="2">
- <b id="testPassPercentageAmount">%</b> tests passed <div id="testPercentage">
- <div id="testPassPercentage"> </div> <div id="testFailPercentage"> </div>
- </div> </td> </tr> </table> -->
-
- <script>
- <!-- var tests = 2228; var failures = 0; var errors = 0; var passPercent
- = Math.floor(((tests-(failures+errors))/tests) * 100); var failPercent =
- 100 - passPercent; document.getElementById("testPassPercentage").style.width
- = passPercent + '%'; document.getElementById("testFailPercentage").style.width
- = failPercent + '%'; document.getElementById("testPassPercentageAmount").innerHTML
- = passPercent + '%'; -->
- </script>
-
- <!-- <div align="right"> <a class="blue" style="align: right;" href="tests/test-results/org.jboss.ide.eclipse.tests.html">See
- full unit test results</a> </div> <div align="right"> <a class="blue" style="align:
- right;" href="tests/test-results/test-workspace.log.txt">See unit test workspace
- log</a> </div> <div id="coverageResults-blue"> <b>Test Coverage Results</b>
- <br /> <div align="right"> <a class="blue" style="align: right;" href="tests/test-results/emma-coverage/index.html">See
- test coverage results</a> </div> <div align="right"> <a class="blue" style="align:
- right;" href="tests/test-results/emma-coverage/coverage.es">See coverage
- session file</a> </div> </div> -->
- </div>
-
- <div id="buildInfo">
- <p>
- <b>WARNING</b>
- </p>
- <p>This build has been deemed by the JBossTools team to be in
- good working condition.
- Please note that this build may be a
- developer release, and if so
- should be treated
- with slightly more
- understanding and care than a stable release.
- Please see the
- release
- notes on JIRA and/or Sourceforge for further
- information.
- (This
- release is much less likely to
- set your
- computer aflame.)</p>
-
- <p>Any suggestions/issues should be posted on the relevant
- product
- forums and should clearly indicate that you are using an
- integration
- build. Please take care in making sure that your
- issue hasn't
- already been addressed when posting on forums or
- opening new
- JIRA issues.</p>
- </div>
-
- </div>
-
- </div>
-
- </body>
- </html>
-
-
-
- </xsl:template>
-</xsl:transform>
\ No newline at end of file
Modified: branches/jbosstools-3.3.x/build/results/build.xml
===================================================================
--- branches/jbosstools-3.3.x/build/results/build.xml 2012-06-13 12:56:06 UTC (rev 41928)
+++ branches/jbosstools-3.3.x/build/results/build.xml 2012-06-13 13:22:48 UTC (rev 41929)
@@ -1,33 +1,16 @@
-<project default="buildResults.single">
-
- <!-- should be set by script or in Hudson -->
- <property name="ZIPSUFFIX" value="SNAPSHOT" />
-
- <!-- should be set by Hudson -->
- <!-- <property name="JOB_NAME" value="jbosstools-3.2.0.M2.continuous" /> -->
-
+<project default="build" name="jbosstools aggregate sources build.xml">
<!-- if ${WORKSPACE}/site folder exists, target that folder; else generate here. -->
<condition property="output.dir" value="${WORKSPACE}/results" else="${basedir}">
<available file="${WORKSPACE}/results" />
</condition>
- <condition property="WORKINGDIR" value="${WORKSPACE}/sources" else="${basedir}/../..">
- <available file="${WORKSPACE}/sources" type="dir" />
- </condition>
- <property name="input.dir" value="${WORKINGDIR}" />
-
- <mkdir dir="${WORKINGDIR}" />
-
- <condition property="COMMON_TOOLS" value="/home/hudson/static_build_env/jbds/tools">
+ <condition property="COMMON_TOOLS" value="/home/hudson/static_build_env/jbds/tools" else="${java.io.tmpdir}">
<available file="/home/hudson/static_build_env/jbds" type="dir" />
</condition>
- <condition property="COMMON_TOOLS" value="${WORKINGDIR}/../tools" else="${java.io.tmpdir}">
- <available file="${WORKINGDIR}/../tools" type="dir" />
- </condition>
<mkdir dir="${COMMON_TOOLS}" />
<target name="get.ant-contrib" unless="ant-contrib.jar.exists">
- <property name="ANTCONTRIB_MIRROR" value="http://downloads.sourceforge.net/ant-contrib/" />
+ <property name="ANTCONTRIB_MIRROR" value="http://sourceforge.net/projects/ant-contrib/files/ant-contrib/ant-contrib..." />
<get usetimestamp="true" dest="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" src="${ANTCONTRIB_MIRROR}/ant-contrib-1.0b2-bin.zip" />
<touch file="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" />
<mkdir dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" />
@@ -36,17 +19,14 @@
<delete dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" includeemptydirs="true" quiet="true" />
</target>
- <target name="get.saxon" unless="saxon.jar.exists">
- <!-- or use http://downloads.sourceforge.net/saxon/saxonhe9-3-0-4j.zip ? -->
- <property name="SAXON_MIRROR" value="http://downloads.sourceforge.net/project/saxon/Saxon-HE/9.3/saxonhe9-3-0-..." />
- <get usetimestamp="true" dest="${COMMON_TOOLS}/saxonhe9-3-0-4j.zip" src="${SAXON_MIRROR}" />
- <mkdir dir="${java.io.tmpdir}/saxonhe9-3-0-4j.zip_" />
- <unzip src="${COMMON_TOOLS}/saxonhe9-3-0-4j.zip" dest="${java.io.tmpdir}/saxonhe9-3-0-4j.zip_" overwrite="true" />
- <copy file="${java.io.tmpdir}/saxonhe9-3-0-4j.zip_/saxon9he.jar" tofile="${COMMON_TOOLS}/saxon.jar" failonerror="true" />
- <delete dir="${java.io.tmpdir}/saxonhe9-3-0-4j.zip_" includeemptydirs="true" quiet="true" />
- </target>
-
<target name="init">
+ <echo level="verbose">
+This script requires Ant 1.8+ and JDK 1.6+.
+-------------------------------------------
+$ant.version = ${ant.version}
+$ant.home = ${ant.home}
+$ant.java.version = ${ant.java.version}
+$java.home = ${java.home}</echo>
<available file="${COMMON_TOOLS}/ant-contrib.jar" type="file" property="ant-contrib.jar.exists" />
<antcall target="get.ant-contrib" />
<taskdef resource="net/sf/antcontrib/antlib.xml">
@@ -55,130 +35,137 @@
</classpath>
</taskdef>
- <available file="${COMMON_TOOLS}/saxon.jar" type="file" property="saxon.jar.exists" />
- <antcall target="get.saxon" />
+ <!-- run locally, or else target ${STAGINGDIR} folder if called from publish.sh -->
+ <property name="target.dir" value="./target/"/>
+ <delete dir="${target.dir}" quiet="true" />
+ <mkdir dir="${target.dir}" />
+ </target>
- <condition property="aggregate_site_build.xml" value="${basedir}/../aggregate/build.xml">
- <available file="${basedir}/../aggregate/build.xml" type="file" />
+ <target name="build" depends="init">
+
+ <!-- pass in the following variables from Maven -->
+ <condition property="update.site.description_STRING" value="Nightly Build" else="${update.site.description}">
+ <contains string="${update.site.description}" substring="update.site.description" />
</condition>
- <macrodef name="get.size">
- <attribute name="file" />
- <attribute name="property" />
- <sequential>
- <var name="size" unset="true" />
- <var name="size-in-mb" unset="true" />
+ <property name="JOB_NAME" value=""/>
+ <if>
+ <contains string="${TIMESTAMP}" substring="TIMESTAMP"/>
+ <then>
+ <var name="TIMESTAMP" unset="true"/>
+ <var name="TIMESTAMP" value="${maven.build.timestamp}"/>
<if>
- <available file="@{file}" />
+ <contains string="${TIMESTAMP}" substring="maven.build.timestamp"/>
<then>
- <length file="@{file}" property="size" />
- <math result="size-in-mb">
- <op op="/">
- <op op="floor">
- <op op="*">
- <op op="/">
- <num value="${size}" />
- <num value="1048576" />
- </op>
- <num value="100" />
- </op>
- </op>
- <num value="100" />
- </op>
- </math>
-
- <property name="@{property}" value="${size-in-mb}" />
+ <propertyregex property="TIMESTAMP" input="${BUILD_ID}" defaultvalue="${BUILD_ID}" regexp="(\d{4})-(\d{2})-(\d{2})_(\d{2})-(\d{2}).+" replace="\1\2\3-\4\5"/>
+ <if>
+ <contains string="${TIMESTAMP}" substring="BUILD_ID"/>
+ <then>
+ <tstamp>
+ <format property="TIMESTAMP" pattern="yyyyMMdd-HHmm" locale="en,US" timezone="GMT"/>
+ </tstamp>
+ </then>
+ </if>
</then>
- <else>
- <property name="@{property}" value="-1" />
- </else>
</if>
- </sequential>
- </macrodef>
- </target>
+ </then>
+ </if>
+ <condition property="JBT_VERSION_STRING" value="" else="${JBT_VERSION}">
+ <contains string="${JBT_VERSION}" substring="JBT_VERSION" />
+ </condition>
+ <condition property="BUILD_NUMBER_STRING" value="" else="${BUILD_NUMBER}">
+ <contains string="${BUILD_NUMBER}" substring="BUILD_NUMBER" />
+ </condition>
+ <condition property="BUILD_ALIAS_STRING" value="" else="${BUILD_ALIAS}">
+ <contains string="${BUILD_ALIAS}" substring="BUILD_ALIAS" />
+ </condition>
- <!-- NEW STUFF HERE -->
+ <condition property="qualifier" value="${JBT_VERSION_STRING}.v${TIMESTAMP}-${BUILD_ALIAS_STRING}"
+ else="${JBT_VERSION_STRING}.v${TIMESTAMP}-H${BUILD_NUMBER_STRING}-${BUILD_ALIAS_STRING}">
+ <contains string="${BUILD_NUMBER}" substring="BUILD_NUMBER" />
+ </condition>
+ <echo level="verbose">qualifier = ${qualifier}</echo>
+ <if>
+ <contains string="${TIMESTAMP}" substring="TIMESTAMP"/>
+ <then>
+ <var name="TIMESTAMP" unset="true"/>
+ <propertyregex property="TIMESTAMP" input="${qualifier}" defaultvalue="${qualifier}" regexp=".+v(\d{8}-\d{4}).+" select="\1"/>
+ </then>
+ </if>
+ <echo level="verbose">TIMESTAMP = ${TIMESTAMP}</echo>
- <target name="buildResults.single" depends="init" description="generate buildResults.html from build properties">
- <ant target="collect.zips" antfile="${aggregate_site_build.xml}">
- <property name="inputRepos" value="2" />
- <property name="inputRepo1" value="file://${input.dir}/all/repo/" />
- <property name="inputRepo2" value="http://download.jboss.org/jbosstools/builds/staging/${JOB_NAME}/all/repo/" />
- </ant>
- <ant target="collect.metadata" antfile="${aggregate_site_build.xml}">
- </ant>
- <antcall target="buildResults" />
+ <antcall target="generate.html" />
</target>
- <target name="buildResults.aggregate" depends="init" description="generate buildResults.html from build properties">
- <ant target="collect.zips" antfile="${aggregate_site_build.xml}">
- <property name="inputRepos" value="2" />
- <property name="inputRepo1" value="file://${input.dir}/all/repo/" />
- <!-- for trunk use _composite_/trunk; for 3.3_stable_branch, use _composite_/3.3.indigo -->
- <property name="inputRepo2" value="http://download.jboss.org/jbosstools/builds/staging/_composite_/3.3.indigo/" />
- </ant>
- <ant target="collect.metadata" antfile="${aggregate_site_build.xml}">
- </ant>
- <antcall target="buildResults" />
- </target>
+ <target name="generate.html">
+ <echo>Generate index pages using qualifier = ${qualifier}</echo>
- <target name="test.buildResults.aggregate" depends="init" description="generate buildResults.html from build properties">
- <property name="isTest" value="true" />
- <ant target="collect.zips" antfile="${aggregate_site_build.xml}">
- <property name="inputRepos" value="1" />
- <!-- for trunk use _composite_/trunk; for 3.3_stable_branch, use _composite_/3.3.indigo -->
- <property name="inputRepo1" value="http://download.jboss.org/jbosstools/builds/staging/_composite_/3.3.indigo/" />
- </ant>
- <ant target="collect.metadata" antfile="${aggregate_site_build.xml}">
- </ant>
- <antcall target="buildResults" />
- </target>
+ <!-- replace links to jobs w/ correct stream (eg., 3.3_stable_branch, 3.4_stable_branch or 3.4_trunk) -->
+ <condition property="STREAM_SUFFIX" value="_stable_branch" else="_trunk">
+ <contains string="${JOB_NAME}" substring="_stable_branch" />
+ </condition>
+ <condition property="STREAM_NAME" value="3.3.indigo" else="Trunk">
+ <contains string="${JOB_NAME}" substring="_stable_branch" />
+ </condition>
- <target name="test.buildResults.single" depends="init" description="generate buildResults.html from build properties">
- <property name="isTest" value="true" />
- <ant target="collect.zips" antfile="${aggregate_site_build.xml}">
- <property name="inputRepos" value="1" />
- <property name="inputRepo1" value="http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.3_trunk...." />
- </ant>
- <ant target="collect.metadata" antfile="${aggregate_site_build.xml}">
- </ant>
- <antcall target="buildResults" />
- </target>
+ <condition property="WARNING" value="This nightly build is a direct build from SVN/CVS and is provided as-is with no guarantees. Be advised that while there is no prior proof, if this build sets fire to your computer, you were sufficiently warned!" else="This build has been deemed by the JBossTools team to be in good working condition. Please note that this build may be a developer release, and if so should be treated with slightly more understanding and care than a stable release. Please see the release notes on JIRA and/or Sourceforge for further information.">
+ <contains string="${update.site.description_STRING}" substring="Nightly"/>
+ </condition>
- <target name="buildResults" description="generate buildResults.html from build properties" depends="init">
- <var name="propertiesFileFound" unset="true" />
- <for param="propertiesFile" delimiter=", " list="${output.dir}/zips/build.properties.all.xml, zips/build.properties.all.xml, ../../logs/zips/build.properties.all.xml">
- <sequential>
- <if>
- <and>
- <available file="@{propertiesFile}" type="file" />
- <not>
- <isset property="propertiesFileFound" />
- </not>
- </and>
- <then>
- <var name="propertiesFileFound" value="true" />
- <delete quiet="true" file="buildResults.html" />
- <xslt in="@{propertiesFile}" out="buildResults.html" style="buildResults.xsl" force="true">
- <classpath>
- <pathelement location="${COMMON_TOOLS}/saxon.jar" />
- </classpath>
- </xslt>
- </then>
- <else>
- </else>
- </if>
- </sequential>
- </for>
- <if>
- <not>
- <isset property="propertiesFileFound" />
- </not>
- <then>
- <echo>Could not generate buildResults.html from zips/build.properties.all.xml - file does not exist!</echo>
- </then>
- </if>
- <var name="propertiesFileFound" unset="true" />
+ <!-- set IDs for the chart widgets from the views -->
+ <!-- TODO: will later need to add a third case for 6.0 stable_branch -->
+ <condition property="PORTLET.1" value="10" else="3">
+ <contains string="${JOB_NAME}" substring="_stable_branch" />
+ </condition>
+ <condition property="PORTLET.2" value="11" else="4">
+ <contains string="${JOB_NAME}" substring="_stable_branch" />
+ </condition>
+
+ <!-- use locally built files with relative paths -->
+ <copy todir="${target.dir}" overwrite="true">
+ <fileset file="index-template.html" />
+ <mapper type="merge" to="index.html" />
+ <filterchain>
+ <expandproperties />
+ </filterchain>
+ </copy>
</target>
+<!-- macros -->
+
+ <macrodef name="get.size">
+ <attribute name="file" />
+ <attribute name="property" />
+ <sequential>
+ <var name="size" unset="true" />
+ <var name="size-in-mb" unset="true" />
+ <if>
+ <available file="@{file}" />
+ <then>
+ <length file="@{file}" property="size" />
+
+ <math result="size-in-mb">
+ <op op="/">
+ <op op="floor">
+ <op op="*">
+ <op op="/">
+ <num value="${size}" />
+ <num value="1048576" />
+ </op>
+ <num value="100" />
+ </op>
+ </op>
+ <num value="100" />
+ </op>
+ </math>
+
+ <property name="@{property}" value="${size-in-mb}" />
+ </then>
+ <else>
+ <property name="@{property}" value="-1" />
+ </else>
+ </if>
+ </sequential>
+ </macrodef>
+
</project>
Deleted: branches/jbosstools-3.3.x/build/results/buildResults.css
===================================================================
--- branches/jbosstools-3.3.x/build/results/buildResults.css 2012-06-13 12:56:06 UTC (rev 41928)
+++ branches/jbosstools-3.3.x/build/results/buildResults.css 2012-06-13 13:22:48 UTC (rev 41929)
@@ -1,258 +0,0 @@
-@CHARSET "UTF-8";
-body {
- font-family: Verdana, Sans-Serif, Helvetica, Arial;
-}
-
-#header, #header-blue {
- width: 70%;
- position: absolute;
- top: 10px;
- left: 15%;
- padding: 5px;
- padding-bottom: 0px;
- margin-bottom: 0px;
- color: #fff;
-
- border-width: 1px;
- border-style: solid;
- border-color: #a00000;
-}
-
-#header {
- background: url(images/gradient-red.png) 0px 0px repeat-x;
-}
-
-#header-blue {
- background: url(images/gradient-blue.png) 0px 0px repeat-x;
-}
-
-#header table tr td, #header-blue table tr td {
- font-weight: bold;
- font-size: 14pt;
-}
-
-#title {
- color: #f0f0f0;
-}
-
-#title-blue {
- color: #000000;
-}
-
-#buildName {
- font-size: 10pt;
- color: #fc6;
-}
-
-#buildName-blue {
- font-size: 10pt;
- color: #0000d0;
-}
-
-#buildDate, #buildExecTime, #buildLog {
- font-size: 8pt;
- color: #ccc;
-}
-
-#buildDate-blue, #buildExecTime-blue {
- font-size: 8pt;
- color: #303060;
-}
-
-#buildLog-blue {
- font-size: 8pt;
- color: #0000d0;
-}
-
-#downloads, #downloads-blue {
- border-width: 1px;
- border-style: solid;
- border-color: #a00000;
- border-top-width: 0px;
- padding: 5px;
-
- width: 70%;
- position: absolute;
- top: 61px;
- left: 15%;
-}
-
-#links, #links-blue {
- border-width: 0px 0px 1px 0px;
- border-style: solid;
- border-color: #a00000;
- padding-bottom: 4px;
-}
-
-#links tr td {
- font-size: 8pt;
-}
-
-a {
- color: #a00000;
-}
-
-a.blue {
- color: #6060c0;
-}
-
-a:hover {
- color: #f00000;
-}
-
-a.blue:hover {
- color: #0000f0;
-}
-
-h1 {
- font-size: 11pt;
- color: #300000;
-}
-
-h1.blue {
- color: #000030;
-}
-
-h2 {
- font-size: 10pt;
- color: #d00000;
-}
-
-h2.blue {
- color: #0000d0;
-}
-
-p {
- font-size: 8pt;
- color: #202020;
-}
-
-div.line {
- background-color: #f00000;
- height: 1px;
-}
-
-div.line-blue {
- background-color: #0000f0;
- height: 1px;
-}
-
-#rightFrame {
- float: right;
- padding: 5px;
-}
-
-#buildDrivers, #unitTestResults, #coverageResults, #buildDrivers-blue, #unitTestResults-blue, #coverageResults-blue {
- font-size: 10pt;
- color: #000030;
-
- border-bottom-width: 1px;
- border-bottom-style: solid;
- border-bottom-color: #f00000;
-
- padding-bottom: 3px;
- margin-bottom: 3px;
-}
-
-#buildDrivers-blue, #unitTestResults-blue, #coverageResults-blue {
- border-bottom-color: #0000f0;
-}
-
-#buildDrivers table tr td, #buildDrivers-blue table tr td {
- font-size: 8pt;
-}
-
-#unitTestResults table tr td, #unitTestResults-blue table tr td {
- font-size: 9pt;
-}
-
-img {
- vertical-align: middle;
-}
-
-#downloadLinks {
- padding: 5px;
- float: left;
-}
-
-#downloadLinks h1 {
- font-size: 14pt;
-}
-
-.downloadInfo {
- font-size: 8pt;
- color: #909090;
-}
-
-a.allLink, a.allLink-blue {
- padding-left: 5px;
- font-size: 14pt;
- font-weight: bold;
- text-decoration: none;
- color: #c33;
-}
-
-a.allLink-blue {
- color: #3030c0;
-}
-
-a.pluginLink, a.pluginLink-blue {
- padding-left: 5px;
- font-size: 8pt;
- font-weight: bold;
- text-decoration: none;
- color: #c33;
-}
-
-a.pluginLink-blue {
- color: #3030c0;
-}
-
-a.md5 {
- font-size: 8pt;
- font-weight: bold;
- color: #666;
- text-decoration: none;
-}
-
-span.description {
- font-size: 10pt;
- color: black;
- font-weight: bold;
-}
-
-
-#buildInfo {
- width: 300px;
-}
-
-
-#buildInfo p, #buildInfo b {
- font-size: 8pt;
- color: #666;
-}
-
-#testPercentage {
- border: 1px solid #666;
- width: 200px;
- height: 15px;
-
-}
-
-#testPassPercentage {
- background-color: #21844f;
- height: 15px;
- float: left;
- clear: none;
-}
-
-#testFailPercentage {
- background-color: #de1f2f;
- height: 15px;
- float: left;
- clear: none;
-}
-
-#header-blue, #downloads-blue, #links-blue {
- border-color: #0000f0;
-}
\ No newline at end of file
Deleted: branches/jbosstools-3.3.x/build/results/buildResults.xsl
===================================================================
--- branches/jbosstools-3.3.x/build/results/buildResults.xsl 2012-06-13 12:56:06 UTC (rev 41928)
+++ branches/jbosstools-3.3.x/build/results/buildResults.xsl 2012-06-13 13:22:48 UTC (rev 41929)
@@ -1,326 +0,0 @@
-<xsl:stylesheet version="2.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/"
- xmlns="http://www.w3.org/1999/xhtml" extension-element-prefixes="saxon">
- <xsl:output method="html" indent="yes" />
- <xsl:template match="/properties">
- <html>
- <head>
- <title>JBossTools Build Results</title>
- <link rel="stylesheet" type="text/css" href="buildResults.css" />
- </head>
- <body>
- <div id="header-blue">
- <table width="100%" height="100%">
- </table>
- </div>
-
- <div id="downloads-blue">
- <table id="links-blue" width="100%">
- <tr>
- <td>
- <a class="blue" href="http://www.jboss.org/tools">JBossTools</a>
- |
- <a class="blue" href="http://www.redhat.com/jbds">JBDS</a>
- |
- <a class="blue" href="http://tools.hibernate.org">Hibernate Tools</a>
- |
- <a class="blue"
- href="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201">User
- Forum</a>
- |
- <a class="blue"
- href="http://jboss.com/index.html?module=bb&op=viewforum&f=162">Development
- Forum</a>
- |
- <a class="blue"
- href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10020">JIRA
- / Bugs</a>
- | #jbosstools on irc.freenode.net
- </td>
- <td align="right">
- <a class="blue" href="http://www.redhat.com">
- <img src="images/redhat.gif" border="0" />
- </a>
- <a class="blue" href="http://www.jboss.org">
- <img src="images/jboss.gif" border="0" />
- </a>
- <a class="blue" href="http://www.hibernate.org">
- <img src="images/hibernate.gif" border="0" />
- </a>
- <a class="blue" href="http://www.eclipse.org">
- <img src="images/eclipse.gif" border="0" />
- </a>
- </td>
- </tr>
- </table>
-
- <div id="downloadLinks">
-
- <table>
- <tr>
- <td colspan="2">
- First time here ? Read
- <a href="http://www.jboss.org/tools/download/installation.html">How
- to install JBoss Tools.</a>
- </td>
- </tr>
-
- <tr>
- <td colspan="2">
- <h1>p2 Repo / Update Site Zips:</h1>
- </td>
- </tr>
-
- <!-- three use cases: a regular component build (as, ws, etc.), a
- different-SVN component build (teiid, pi4soa, savara), and a special component
- build (xulrunner) -->
- <xsl:for-each
- select="//property[contains(@name,'build.properties.JOB_NAME')]">
- <xsl:variable name="JOB_NAME">
- <xsl:value-of select="@value" />
- </xsl:variable>
- <xsl:variable name="COMPONENT">
- <xsl:choose>
- <!-- property name="jbosstools-3.3_trunk.component- -ws-SNAPSHOT.build.properties.JOB_NAME"
- value="jbosstools-3.3_trunk.component- -ws" -->
- <xsl:when test="contains(@value,'component--')">
- <xsl:value-of select="substring-after(@value,'component--')" />
- </xsl:when>
-
- <!-- property name="jbosstools-drools-5.2_trunk-SNAPSHOT.build.properties.JOB_NAME"
- value="jbosstools-drools-5.2_trunk" -->
- <xsl:when test="contains(@value, '_stable_branch')">
- <xsl:value-of
- select="substring-before(substring-after(@value,'jbosstools-'),'_stable_branch')" />
- </xsl:when>
- <xsl:when test="contains(@value, '_trunk')">
- <xsl:value-of
- select="substring-before(substring-after(@value,'jbosstools-'),'_trunk')" />
- </xsl:when>
-
- <!-- property name="xulrunner-1.9.1.2-2011-01-20_20-39-25-H36.build.properties.JOB_NAME"
- value="xulrunner-1.9.1.2" -->
- <xsl:otherwise>
- <xsl:value-of select="@value" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <tr>
- <td colspan="2">
- <a href="http://hudson.qa.jboss.com/hudson/job/{$JOB_NAME}/">
- <xsl:value-of select="$COMPONENT" />
- </a>
- </td>
- </tr>
-
- <xsl:for-each
- select="//property[contains(@name,'build.properties.filename') and contains(@name,$COMPONENT)]">
- <xsl:variable name="rowColor">
- <xsl:if test="position() mod 2 = 1">
- #CCCCEE
- </xsl:if>
- <xsl:if test="position() mod 2 = 0">
- #FFFFFF
- </xsl:if>
- <xsl:if test="contains(@name,'All')">
- #CCEECC
- </xsl:if>
- <xsl:if test="contains(@name,'Source')">
- #EECCCC
- </xsl:if>
- </xsl:variable>
-
- <tr bgcolor="{$rowColor}">
- <!-- <td> <img src="images/OK-small.png" /> </td> -->
- <td class="downloadInfo">
- <xsl:for-each select=".">
- <b>
- <xsl:variable name="filelabel">
- <xsl:choose>
- <!-- property name="jbosstools-3.3_trunk.component- -ws-SNAPSHOT.build.properties.JOB_NAME"
- value="jbosstools-3.3_trunk.component- -ws" -->
- <xsl:when test="contains(@value,'component--')">
- <xsl:value-of select="substring-after(@value,'component--')" />
- </xsl:when>
-
- <!-- property name="jbosstools-drools-5.2_trunk-SNAPSHOT.build.properties.JOB_NAME"
- value="jbosstools-drools-5.2_trunk" -->
- <xsl:when test="contains(@value, '_stable_branch')">
- <xsl:value-of
- select="replace(substring-after(@value,'jbosstools-'),'_stable_branch','')" />
- </xsl:when>
- <xsl:when test="contains(@value, '_trunk')">
- <xsl:value-of
- select="replace(substring-after(@value,'jbosstools-'),'_trunk','')" />
- </xsl:when>
-
- <!-- property name="xulrunner-1.9.1.2-2011-01-20_20-39-25-H36.build.properties.JOB_NAME"
- value="xulrunner-1.9.1.2" -->
- <xsl:otherwise>
- <xsl:value-of select="@value" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <!-- Update, Sources, etc. -->
- <xsl:variable name="fileType">
- <xsl:choose>
- <xsl:when test="contains($filelabel, 'Update')">
- <xsl:value-of
- select="'Update'" />
- </xsl:when>
- <xsl:when test="contains($filelabel, 'Sources')">
- <xsl:value-of
- select="'Sources'" />
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="'Other'" />
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <a class="allLink-blue" href="{@value}">
- <xsl:value-of select="$filelabel" />
- </a>
- <ul>
- <li>
- md5:
- <xsl:for-each
- select="//property[contains(@name,'build.properties.filemd5') and contains(@name,$COMPONENT) and contains(@name,$fileType)]">
- <xsl:value-of select="@value" />
- </xsl:for-each>
- </li><li>size:
- <xsl:for-each
- select="//property[contains(@name,'build.properties.filesize') and contains(@name,$COMPONENT) and contains(@name,$fileType)]">
- <xsl:value-of select="@value" /> bytes
- </xsl:for-each>
- </li>
-
- <xsl:for-each
- select="tokenize(//property[contains(@name,'build.properties.SVN_REVISION') and contains(@name,$COMPONENT)]/@value,',')">
- <li>SVN: <xsl:value-of select="." /></li>
- </xsl:for-each>
- </ul>
- </b>
- </xsl:for-each>
- </td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </table>
-
- </div>
-
- <div id="rightFrame">
- <div id="buildDrivers-blue">
- <b>SVN Revisions</b>
- <br />
- See
- <a
- href="http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.3_trunk....">SVN_REVISION.txt</a>
- </div>
- <div id="buildDrivers-blue">
- <b>Target Platform</b>
- <table>
- <tr>
- <td rowspan="3">
- Eclipse Helios 3.7 +
- <br />
- Web Tools 3.3 +
- <br />
- BIRT + DTP ...
- </td>
- <td>
- <a class="blue"
- href="http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo/l...">Target Platform Update Site</a>
- </td>
- </tr>
- <tr>
- <td>
- <a class="blue"
- href="http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo/e...">Target Platform Update Zip</a>
- </td>
- </tr>
- <tr>
- <td>
- <a class="blue"
- href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/uni...">Target Platform Definition File</a>
- </td>
- </tr>
- </table>
- </div>
- <div id="unitTestResults-blue">
- <b>Unit Test Results</b>
- <br />
-
- See
- <a
- href="http://hudson.qa.jboss.com/hudson/view/DevStudio_Trunk/job/jbosstools-3.3...">jbosstools-3.3_trunk.tests</a>
- <!-- <table> <tr> <td> <img src="images/test.gif" /> Tests </td> <td
- align="right">??? </td> </tr> <tr> <td> <img src="images/testerr.gif" />
- Errors </td> <td align="right">???</td> </tr> <tr> <td> <img src="images/testfail.gif"
- /> Failures </td> <td align="right">???</td> </tr> <tr> <td colspan="2">
- <b id="testPassPercentageAmount">%</b> tests passed <div id="testPercentage">
- <div id="testPassPercentage"> </div> <div id="testFailPercentage"> </div>
- </div> </td> </tr> </table> -->
-
- <script>
- <!-- var tests = 2228; var failures = 0; var errors = 0; var passPercent
- = Math.floor(((tests-(failures+errors))/tests) * 100); var failPercent =
- 100 - passPercent; document.getElementById("testPassPercentage").style.width
- = passPercent + '%'; document.getElementById("testFailPercentage").style.width
- = failPercent + '%'; document.getElementById("testPassPercentageAmount").innerHTML
- = passPercent + '%'; -->
- </script>
-
- <!-- <div align="right"> <a class="blue" style="align: right;" href="tests/test-results/org.jboss.ide.eclipse.tests.html">See
- full unit test results</a> </div> <div align="right"> <a class="blue" style="align:
- right;" href="tests/test-results/test-workspace.log.txt">See unit test workspace
- log</a> </div> <div id="coverageResults-blue"> <b>Test Coverage Results</b>
- <br /> <div align="right"> <a class="blue" style="align: right;" href="tests/test-results/emma-coverage/index.html">See
- test coverage results</a> </div> <div align="right"> <a class="blue" style="align:
- right;" href="tests/test-results/emma-coverage/coverage.es">See coverage
- session file</a> </div> </div> -->
- </div>
-
- <div id="buildInfo">
- <p>
- <b>WARNING</b>
- </p>
- <p>This build has been deemed by the JBossTools team to be in
- good working condition.
- Please note that this build may be a
- developer release, and if so
- should be treated
- with slightly more
- understanding and care than a stable release.
- Please see the
- release
- notes on JIRA and/or Sourceforge for further
- information.
- (This
- release is much less likely to
- set your
- computer aflame.)</p>
-
- <p>Any suggestions/issues should be posted on the relevant
- product
- forums and should clearly indicate that you are using an
- integration
- build. Please take care in making sure that your
- issue hasn't
- already been addressed when posting on forums or
- opening new
- JIRA issues.</p>
- </div>
-
- </div>
-
- </div>
-
- </body>
- </html>
-
-
- </xsl:template>
-</xsl:stylesheet>
Deleted: branches/jbosstools-3.3.x/build/results/collect-test-results.xml
===================================================================
--- branches/jbosstools-3.3.x/build/results/collect-test-results.xml 2012-06-13 12:56:06 UTC (rev 41928)
+++ branches/jbosstools-3.3.x/build/results/collect-test-results.xml 2012-06-13 13:22:48 UTC (rev 41929)
@@ -1,226 +0,0 @@
-<project default="collect.test.results.for.hudson" basedir="." name="Generate test results even when no tests were run. Prevents build from failing if tests are disabled.">
- <!-- ****************************** Configuration ****************************** -->
-
- <!-- override for local build -->
- <condition property="isInHudson" value="true">
- <or>
- <contains string="${user.dir}" substring="hudson" />
- <contains string="${user.name}" substring="hudson" />
- <contains string="${user.home}" substring="hudson" />
- </or>
- </condition>
- <target name="local" unless="isInHudson">
- <property name="WORKINGDIR" value="${basedir}" />
- <property name="COMMON_TOOLS" value="${java.io.tmpdir}" />
- </target>
-
- <target name="get.ant-contrib" unless="ant-contrib.jar.exists">
- <property name="ANTCONTRIB_MIRROR" value="http://downloads.sourceforge.net/ant-contrib/" />
- <get usetimestamp="true" dest="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" src="${ANTCONTRIB_MIRROR}/ant-contrib-1.0b2-bin.zip" />
- <touch file="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" />
- <mkdir dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" />
- <unzip src="${COMMON_TOOLS}/ant-contrib-1.0b2-bin.zip" dest="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" overwrite="true" />
- <copy file="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_/ant-contrib/lib/ant-contrib.jar" tofile="${COMMON_TOOLS}/ant-contrib.jar" failonerror="true" />
- <delete dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" includeemptydirs="true" quiet="true" />
- </target>
-
- <target name="init" depends="local">
- <!-- https://jira.jboss.org/jira/browse/JBQA-3313 Use static, shared space outside workspace, instead of working directly in the workspace -->
- <condition property="WORKINGDIR" value="/home/hudson/static_build_env/jbds/tools/sources" else="${basedir}">
- <available file="/home/hudson/static_build_env/jbds" type="dir" />
- </condition>
- <mkdir dir="${WORKINGDIR}" />
- <echo level="info">WORKINGDIR = ${WORKINGDIR}</echo>
-
- <condition property="COMMON_TOOLS" value="/home/hudson/static_build_env/jbds/tools" else="${WORKINGDIR}/../tools">
- <available file="/home/hudson/static_build_env/jbds" type="dir" />
- </condition>
- <mkdir dir="${COMMON_TOOLS}" />
- <echo level="info">COMMON_TOOLS = ${COMMON_TOOLS}</echo>
-
- <available file="${COMMON_TOOLS}/ant-contrib.jar" type="file" property="ant-contrib.jar.exists" />
- <antcall target="get.ant-contrib" />
- <taskdef resource="net/sf/antcontrib/antlib.xml">
- <classpath>
- <pathelement location="${COMMON_TOOLS}/ant-contrib.jar" />
- </classpath>
- </taskdef>
-
- </target>
-
- <!-- ***** The methods below are used in Hudson/Jenkins jobs to generate test results even when no tests were run. Prevents build from failing if tests are disabled. ***** -->
-
- <!--
- To run this after a maven build in Hudson, set these properties:
- basedir=${WORKSPACE}/sources
- WORKINGDIR=${WORKSPACE}/sources
- COMPONENT=.
- move.test.results=true
- -->
- <target name="collect.test.results.for.hudson" depends="init" if="isInHudson" description="collect test results after a pure maven build so Hudson has something to see">
- <property name="basedir" value="${WORKSPACE}/sources" />
- <property name="WORKINGDIR" value="${WORKSPACE}/sources" />
- <property name="COMPONENT" value="." />
- <property name="move.test.results" value="true" />
- <var name="tests.results.found" value="false" />
- <echo level="debug">basedir = ${basedir}
-WORKINGDIR = ${WORKINGDIR}
-COMPONENT = ${COMPONENT}</echo>
- <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
- <for param="test.xml.files" delimiter=",
- ">
- <path>
- <fileset dir="${WORKINGDIR}" includes="**/target/surefire-reports/TEST-*.xml, **/**/target/surefire-reports/TEST-*.xml" excludes="**/TEST-*NoTestsRun.xml, **/**/TEST-*NoTestsRun.xml" />
- </path>
- <sequential>
- <var name="tests.results.found" value="true" />
- </sequential>
- </for>
- <if>
- <equals arg1="${tests.results.found}" arg2="true" />
- <then>
- <antcall target="collect.test.results">
- <param name="COMPONENT" value="." />
- </antcall>
- <antcall target="collect.all.test.results" />
- </then>
- <else>
- <antcall target="create.empty.test.results.file" />
- <property name="no.tests.run" value="true" />
- </else>
- </if>
- </target>
-
- <target name="create.empty.test.results.file">
- <!-- create fake test result file to avoid Hudson failure -->
- <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
- <mkdir dir="${basedir}/surefire-reports/NoTestsRun" />
- <echo file="${basedir}/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml"><?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="0" time="0.001" errors="0" skipped="0" tests="1" name="org.jboss.tools.NoTestsRun">
-<testcase time="0.001" classname="org.jboss.tools.NoTestsRun" name="NoTestsRun"/>
-</testsuite>
-</echo>
- </target>
-
- <target name="collect.test.results">
- <delete dir="${basedir}/surefire-reports/NoTestsRun" includeemptydirs="true" />
- <property name="COMPONENT" value="" />
- <!-- collect test results by copying ${WORKINGDIR}/${COMPONENT}/**/target/surefire-reports/*.xml into ${basedir}/surefire-reports/${COMPONENT} -->
- <delete dir="${basedir}/surefire-reports/${COMPONENT}" includeemptydirs="true" />
- <mkdir dir="${basedir}/surefire-reports/${COMPONENT}" />
- <copy todir="${basedir}/surefire-reports/${COMPONENT}" flatten="true" preservelastmodified="true" overwrite="true">
- <fileset dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports/TEST-*.xml" />
- </copy>
- <if>
- <isset property="move.test.results" />
- <then>
- <delete dir="${WORKINGDIR}/${COMPONENT}" includes="**/target/surefire-reports" />
- </then>
- </if>
- </target>
-
- <target name="collect.all.test.results" unless="no.tests.run">
- <var name="test.results.all" value="" />
- <var name="test.results.errors.failures.skipped" value="" />
-
- <!-- Parse this: <testsuite errors="0" skipped="0" tests="10" time="0.042" failures="0" name="org.jboss.tools.jmx.ui.JMXUIAllTests"> -->
- <for param="testresultfile" delimiter=",
- ">
- <path>
- <fileset dir="${basedir}/surefire-reports/" includes="**/TEST-*.xml" />
- </path>
- <sequential>
- <var name="testsuite.name" unset="true" />
- <var name="testsuite.tests" unset="true" />
- <var name="testsuite.time" unset="true" />
- <var name="testsuite.skipped" unset="true" />
- <var name="testsuite.errors" unset="true" />
- <var name="testsuite.failures" unset="true" />
- <xmlproperty file="@{testresultfile}" keepRoot="true" collapseAttributes="true" />
- <for param="ts" list="testsuite.skipped, testsuite.errors, testsuite.failures" delimiter=", ">
- <sequential>
- <propertyregex override="true"
- property="ts.label"
- defaultvalue="@{ts}"
- input="@{ts}"
- regexp="testsuite\.(.+)"
- replace="\1"
- />
- <if>
- <isset property="@{ts}" />
- <then>
- <if>
- <equals arg1="${@{ts}}" arg2="0" />
- <then>
- <var name="@{ts}" value="" />
- </then>
- <else>
- <var name="@{ts}" value="; ${@{ts}} ${ts.label}" />
- </else>
- </if>
- </then>
- </if>
-
- </sequential>
- </for>
- <if>
- <or>
- <not>
- <equals arg1="${testsuite.skipped}" arg2="" />
- </not>
- <not>
- <equals arg1="${testsuite.errors}" arg2="" />
- </not>
- <not>
- <equals arg1="${testsuite.failures}" arg2="" />
- </not>
- </or>
- <then>
- <var name="test.results.errors.failures.skipped"
- value="${test.results.errors.failures.skipped}${testsuite.name} ran ${testsuite.tests} tests in ${testsuite.time}s${testsuite.skipped}${testsuite.errors}${testsuite.failures}${line.separator}"
- />
- </then>
- </if>
- <if>
- <isset property="testsuite.name" />
- <then>
- <var name="test.results.all"
- value="${test.results.all}${testsuite.name} ran ${testsuite.tests} tests in ${testsuite.time}s${testsuite.skipped}${testsuite.errors}${testsuite.failures}${line.separator}"
- />
- </then>
- </if>
- <var name="testsuite.name" unset="true" />
- <var name="testsuite.tests" unset="true" />
- <var name="testsuite.time" unset="true" />
- <var name="testsuite.skipped" unset="true" />
- <var name="testsuite.errors" unset="true" />
- <var name="testsuite.failures" unset="true" />
- </sequential>
- </for>
- <echo level="verbose">-------------------------------------------------------
- A L L T E S T R E S U L T S
--------------------------------------------------------
-${test.results.all}
--------------------------------------------------------
-
-</echo>
- <if>
- <and>
- <isset property="test.results.errors.failures.skipped" />
- <not>
- <equals arg1="${test.results.errors.failures.skipped}" arg2="" />
- </not>
- </and>
- <then>
- <echo level="error">-------------------------------------------------------
- T E S T R E S U L T S
--------------------------------------------------------
-${test.results.errors.failures.skipped}
--------------------------------------------------------
-
-</echo>
- </then>
- </if>
- </target>
-
-</project>
Added: branches/jbosstools-3.3.x/build/results/index-template.html
===================================================================
--- branches/jbosstools-3.3.x/build/results/index-template.html (rev 0)
+++ branches/jbosstools-3.3.x/build/results/index-template.html 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,175 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+<title>JBoss Tools - Core - Nightly Build: ${qualifier}</title>
+<style>
+@import url("http://download.jboss.org/jbosstools/updates/web/site.css");
+</style>
+</head>
+<body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">
+<center>
+<table marginheight="0" marginwidth="0" leftmargin="0" topmargin="0"
+ cellspacing="0" cellpadding="0" width="920" class="bodyText">
+ <tr>
+ <td colspan="3"><img
+ src="https://www.jboss.org/dms/tools/images/tools-banner.png" />
+
+<table width="100%">
+ <tr>
+ <td><small>
+ <a href="http://www.redhat.com/jbds">JBDS</a> | <a href="http://tools.hibernate.org">Hibernate Tools</a> | <a href="http://www.jboss.com/index.html?module=bb&op=viewforum&f=201">User
+ Forum</a> | <a href="http://jboss.com/index.html?module=bb&op=viewforum&f=162">Developer
+ Forum</a> | <a href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10020">JIRA Issues</a> | #jbosstools on <a href="http://webchat.freenode.net/">irc.freenode.net</a></small>
+ </td>
+ <td align="right">
+ <a href="http://www.redhat.com"><img src="https://devstudio.jboss.com/images/redhat.gif" border="0" height="16" width="16"/></a>
+ <a href="http://www.jboss.org"><img src="https://devstudio.jboss.com/images/jboss.gif" border="0" height="16" width="16"/></a>
+ <a href="http://www.hibernate.org"><img src="https://devstudio.jboss.com/images/hibernate.gif" border="0" height="16" width="16"/></a>
+ <a href="http://www.eclipse.org"><img src="https://devstudio.jboss.com/images/eclipse.gif" border="0" height="16" width="16"/></a>
+ </td>
+ <td align="right"><small>
+ <a id="buildName" href="http://hudson.jboss.org/hudson/job/${JOB_NAME}/${BUILD_NUMBER_STRING}/">
+ <span style="font-size: x-small;">Build ${qualifier}</span>
+ </a>
+ </td>
+ </tr>
+ </table> </td>
+ </tr>
+ <tr>
+ <td>      </td>
+ <td>      </td>
+ <td>      </td>
+ </tr>
+ <tr>
+<td colspan="3">
+<div style="background-color:#eeeecc; width:880px;padding:10px;margin:0px;padding-top:0px;margin-top:0px;border:1px #aaaaaa solid;z-index:1;position:relative;float:left">
+<h2 class="prime">JBoss Tools - ${update.site.description_STRING}: ${qualifier}
+ </span></h2>
+
+ <ul>
+ <li><a href="all/repo/">Aggregate Update Site</a>, <a href="all/">Site Zip</a> & <a href="all/">Sources Zip</a></li>
+ <li><a href="components/">Component Update Site Zips</a></li>
+ <li><a href="logs/">Logs & metadata</a></li>
+ </ul>
+
+</div>
+<p style="clear:both"> </p>
+
+<hr/>
+
+ <h4>Logs</h4>
+ <p>
+ <small>
+ <i>Logs are for <b>
+ <a class="blue" href="http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/">${JOB_NAME}</a>.
+ </b>
+ </i>
+ </small>
+ </p>
+ <div align="right">
+ <a class="blue" style="align: right;" href="http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/${BUILD_NUMBER_STRING}/...">This Console</a>
+ </div>
+
+ <div align="right">
+ <a class="blue" style="align: right;" href="http://hudson.qa.jboss.com/hudson/job/${JOB_NAME}/lastBuild/console">Lastest Console</a> (!)
+ </div>
+
+ <h4>SVN Revisions</h4>
+ <p>
+ <small>
+ <i>SVN Revision is for upstream <b>
+ <a class="blue" href="http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.aggr...">jbosstools-3.3${STREAM_SUFFIX}.aggregate</a>
+ </b>
+ <br />
+job. Results are live,
+not specific to this build.</i>
+ </small>
+ </p>
+ <div align="right">
+ <a class="blue" style="align: right;" href="http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.3${STREA...">SVN Revision</a> (!)
+ </div>
+
+ <h4>Target Platform: Indigo SR2 (incl. Eclipse 3.7.2 + Web Tools 3.3.2)</h4>
+ <p>
+ <small>
+ <i>Target Platforms are built upstream via these jobs: <br />
+ <b>
+ <a class="blue" href="http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.targ...">jbosstools-3.3${STREAM_SUFFIX}.target-platform</a>
+ </b>
+ <br />
+ </i>
+ </small>
+ </p>
+
+ <div align="right">
+ <a class="blue" style="align: right;" href="http://download.jboss.org/jbosstools/updates/target-platform_3.3.indigo.SR2/">JBT Target Platform Update Site</a> (!)
+ </div>
+ <div align="right">
+ <a class="blue" style="align: right;" href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-platform/uni...">JBT Target Platform Definition File</a> (!)
+ </div>
+
+ <h4>Test Results</h4>
+ <p>
+ <small>
+ <i>Test results at <b style="font-weight:bold;font-size:12px">right</b> are for upstream <b>
+ <a class="blue" href="http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/">jbosstools-3.3${STREAM_SUFFIX}.tests</a>
+ </b>
+job. <br/>
+Test results <b style="font-weight:bold;font-size:12px">below</b> are cumulative across all jobs in the <a href="http://hudson.jboss.org/hudson/view/JBossTools/view/JBossTools_${STREAM_N...">DevStudio_${STREAM_NAME} view</a></i>.<br/>
+Results are live, not specific to this build.
+ </small>
+ </p>
+
+<p>
+ <div style="float:right">
+ <a class="blue" style="align: right" href="http://hudson.jboss.org/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/t..."><img src="http://hudson.jboss.org/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/t..." border="0"></a> (!)
+ <br/>
+ <a class="blue" style="align: right" href="http://hudson.jboss.org/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/t..."><img src="http://hudson.jboss.org/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/t..." border="0"></a> (!)
+ <br/>
+ <a class="blue" style="align: right;" href="http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.test...">Unit test report</a> (!)
+ <br/>
+ <a class="blue" style="align: right;" href="http://hudson.jboss.org/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/w...">Unit test workspace logs</a> (!)
+ </div>
+
+ <img src="http://hudson.jboss.org/hudson/view/JBossTools/view/JBossTools_${STREAM_N..."/>
+ <br/>
+ <img src="http://hudson.jboss.org/hudson/view/JBossTools/view/JBossTools_${STREAM_N..."/>
+</p>
+
+ <h4>Test Coverage Results</h4>
+ <p>
+ <small>
+ <i>Test coverage is of upstream <b>
+ <a class="blue" href="http://hudson.qa.jboss.com/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/">jbosstools-3.3${STREAM_SUFFIX}.tests</a>
+ </b>
+ <br />
+job. Results are live,
+not specific to this build.</i>
+ </small>
+ </p>
+ <div align="right">
+ <a class="blue" style="align: right;" href="http://hudson.jboss.org/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/w...">Test
+coverage results</a> (!)
+ </div>
+ <div align="right">
+ <a class="blue" style="align: right;" href="http://hudson.jboss.org/hudson/job/jbosstools-3.3${STREAM_SUFFIX}.tests/w...">Coverage.es
+session files</a> (!)
+ </div>
+
+ <h4>WARNING</h4>
+
+ <p>${WARNING}</p>
+
+ <p>Any suggestions/issues should be posted on the relevant product forums and should clearly indicate that you are using a <b>${update.site.description_STRING}</b>. Please take care in making sure that your issue hasn't already been addressed when posting on forums or opening new JIRA issues.</p>
+
+ <small>
+ <i>Note: Links tagged with (!) are live and will change with subsequent builds to show the latest results. See also <a style="color:#FF9933" href="http://download.jboss.org/jbosstools/builds/cascade/trunk.html">Build Job Cascade & Results</a>
+ </i>
+ </small>
+<p> </p>
+<hr/>
+
+ </tr>
+</table>
+</body>
+</html>
Added: branches/jbosstools-3.3.x/build/results/pom.xml
===================================================================
--- branches/jbosstools-3.3.x/build/results/pom.xml (rev 0)
+++ branches/jbosstools-3.3.x/build/results/pom.xml 2012-06-13 13:22:48 UTC (rev 41929)
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>parent</artifactId>
+ <version>3.4.0.M1-SNAPSHOT</version>
+ <relativePath>../parent/pom.xml</relativePath>
+ </parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.buildresults</artifactId>
+ <name>JBoss Tools Build Results</name>
+ <description>
+ Generates index.html linking to jars and zips, plus provides other metadata
+ </description>
+ <packaging>pom</packaging>
+
+ <!--
+ To build locally while generating installers/sources, must set a number of variables:
+ mvn install -DJOB_NAME=jbosstools-3.3_stable_branch.aggregate
+ To build locally against previously built installers/sources, must set more variables:
+ mvn install -DJOB_NAME=jbosstools-3.3_stable_branch.aggregate -DTIMESTAMP=20120608-1840 -Dupdate.site.description="Development Milestone"
+ -->
+
+ <properties>
+ <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>install</id>
+ <phase>install</phase>
+ <configuration>
+ <quiet>true</quiet>
+ <tasks>
+ <ant antfile="build.xml" target="build" dir="./">
+ <property name="update.site.description" value="${update.site.description}"/>
+ <property name="JOB_NAME" value="${JOB_NAME}" />
+ <property name="JBT_VERSION" value="${JBT_VERSION}"/>
+ <property name="TIMESTAMP" value="${TIMESTAMP}"/>
+ <property name="maven.build.timestamp" value="${maven.build.timestamp}"/>
+ <property name="BUILD_NUMBER" value="${BUILD_NUMBER}"/>
+ <property name="BUILD_ALIAS" value="${BUILD_ALIAS}"/>
+ </ant>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.8.2</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-net</groupId>
+ <artifactId>commons-net</artifactId>
+ <version>1.4.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-nodeps</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-trax</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-commons-net</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ant</groupId>
+ <artifactId>ant-apache-regexp</artifactId>
+ <version>1.7.1</version>
+ </dependency>
+ <dependency>
+ <groupId>ant-contrib</groupId>
+ <artifactId>ant-contrib</artifactId>
+ <version>1.0b3</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
Deleted: branches/jbosstools-3.3.x/build/results/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml
===================================================================
--- branches/jbosstools-3.3.x/build/results/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml 2012-06-13 12:56:06 UTC (rev 41928)
+++ branches/jbosstools-3.3.x/build/results/surefire-reports/NoTestsRun/TEST-org.jboss.tools.NoTestsRun.xml 2012-06-13 13:22:48 UTC (rev 41929)
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<testsuite failures="0" time="0.001" errors="0" skipped="0" tests="1" name="org.jboss.tools.NoTestsRun">
-<testcase time="0.001" classname="org.jboss.tools.NoTestsRun" name="NoTestsRun"/>
-</testsuite>
13 years, 10 months
JBoss Tools SVN: r41928 - trunk/build/results.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-06-13 08:56:06 -0400 (Wed, 13 Jun 2012)
New Revision: 41928
Modified:
trunk/build/results/build.xml
Log:
fix chart portlet IDs for public site
Modified: trunk/build/results/build.xml
===================================================================
--- trunk/build/results/build.xml 2012-06-13 10:49:33 UTC (rev 41927)
+++ trunk/build/results/build.xml 2012-06-13 12:56:06 UTC (rev 41928)
@@ -114,10 +114,10 @@
<!-- set IDs for the chart widgets from the views -->
<!-- TODO: will later need to add a third case for 6.0 stable_branch -->
- <condition property="PORTLET.1" value="125" else="118">
+ <condition property="PORTLET.1" value="10" else="3">
<contains string="${JOB_NAME}" substring="_stable_branch" />
</condition>
- <condition property="PORTLET.2" value="126" else="119">
+ <condition property="PORTLET.2" value="11" else="4">
<contains string="${JOB_NAME}" substring="_stable_branch" />
</condition>
13 years, 10 months
JBoss Tools SVN: r41927 - in trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test: tests and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-06-13 06:49:33 -0400 (Wed, 13 Jun 2012)
New Revision: 41927
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/InterfaceAndAbstractValidationTest.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
Log:
new test InterfaceAndAbstractValidationTest implemented and added into test suite
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-06-13 10:42:16 UTC (rev 41926)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-06-13 10:49:33 UTC (rev 41927)
@@ -16,6 +16,7 @@
import org.jboss.tools.cdi.seam3.bot.test.tests.ExactAnnotationTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.FullyQualifiedTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.GenericOpenOnTest;
+import org.jboss.tools.cdi.seam3.bot.test.tests.InterfaceAndAbstractValidationTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.LoggerSupportTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.NamedPackagesTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.RequiresAnnotationTest;
@@ -41,6 +42,7 @@
NamedPackagesTest.class,
FullyQualifiedTest.class,
LoggerSupportTest.class,
+ InterfaceAndAbstractValidationTest.class
})
public class CDISeam3AllBotTests extends AbstractTestSuite {
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/InterfaceAndAbstractValidationTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/InterfaceAndAbstractValidationTest.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/InterfaceAndAbstractValidationTest.java 2012-06-13 10:49:33 UTC (rev 41927)
@@ -0,0 +1,93 @@
+/*******************************************************************************
+ * Copyright (c) 2010-2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.seam3.bot.test.tests;
+
+import org.eclipse.core.resources.IMarker;
+import org.jboss.tools.cdi.bot.test.CDIConstants;
+import org.jboss.tools.cdi.seam3.bot.test.base.Seam3TestBase;
+import org.jboss.tools.cdi.seam3.bot.test.util.SeamLibrary;
+import org.jboss.tools.ui.bot.ext.Timing;
+import org.jboss.tools.ui.bot.ext.helper.MarkerHelper;
+import org.junit.After;
+import org.junit.Test;
+
+/**
+ *
+ * @author jjankovi
+ *
+ */
+public class InterfaceAndAbstractValidationTest extends Seam3TestBase {
+
+ @After
+ public void cleanWS() {
+ projectExplorer.deleteAllProjects();
+ }
+
+ @Test
+ public void testInterfaceValidation() {
+
+ /* import test project */
+ String projectName = "interface1";
+ importSeam3ProjectWithLibrary(projectName, SeamLibrary.SOLDER_3_1);
+ bot.sleep(Timing.time3S()); // necessary to CDI Validation computation
+
+ /* get markers for beans.xml */
+ IMarker[] markers = getMarkersForResource(CDIConstants.BEANS_XML, projectName,
+ CDIConstants.WEBCONTENT, CDIConstants.WEB_INF);
+
+ /* assert expected count */
+ assertExpectedCount(markers.length ,1);
+
+ /* assert message contains expected value */
+ assertMessageContainsExpectedValue(MarkerHelper.getMarkerMessage(markers[0]),
+ "Interface ", "cannot be configured as a bean");
+
+ }
+
+ @Test
+ public void testAbstractTypeValidation() {
+
+ /* import test project */
+ String projectName = "abstract1";
+ importSeam3ProjectWithLibrary(projectName, SeamLibrary.SOLDER_3_1);
+ bot.sleep(Timing.time3S()); // necessary to CDI Validation computation
+
+ /* get markers for beans.xml */
+ IMarker[] markers = getMarkersForResource(CDIConstants.BEANS_XML, projectName,
+ CDIConstants.WEBCONTENT, CDIConstants.WEB_INF);
+
+ /* assert expected count */
+ assertExpectedCount(markers.length ,1);
+
+ /* assert message contains expected value */
+ assertMessageContainsExpectedValue(MarkerHelper.getMarkerMessage(markers[0]),
+ "Abstract type", "cannot be configured as a bean");
+
+ }
+
+ private void assertMessageContainsExpectedValue(String message,
+ String... expectedValues) {
+ for (String value : expectedValues) {
+ assertContains(value, message);
+ }
+ }
+
+ private IMarker[] getMarkersForResource(String resource, String ... path) {
+ MarkerHelper markerHelper = new MarkerHelper(resource, path);
+ return markerHelper.getMarkers();
+ }
+
+ private void assertExpectedCount(int realCount, int expectedCount) {
+ assertTrue("Expected count: " + expectedCount + " real count: " + realCount,
+ realCount == expectedCount);
+ }
+
+}
13 years, 10 months
JBoss Tools SVN: r41925 - in trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects: abstract1/.settings and 14 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-06-13 06:40:22 -0400 (Wed, 13 Jun 2012)
New Revision: 41925
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.project
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/.jsdtscope
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.common.component
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.jboss.ide.eclipse.as.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/META-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/WEB-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/WEB-INF/beans.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/WEB-INF/lib/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/build/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/src/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/src/cdi/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/src/cdi/seam/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/src/cdi/seam/AbstractBean.java
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.classpath
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.project
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/.jsdtscope
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.common.component
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.jboss.ide.eclipse.as.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/META-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/WEB-INF/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/WEB-INF/beans.xml
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/WEB-INF/lib/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/build/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/src/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/src/cdi/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/src/cdi/seam/
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/src/cdi/seam/MyInter.java
Log:
new test projects for seam3 bot tests
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.classpath
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.classpath (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.classpath 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_04">
+ <attributes>
+ <attribute name="owner.project.facets" value="java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 7.1 Runtime">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.project
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.project (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.project 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>abstract1</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.cdi.core.cdibuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ <nature>org.jboss.tools.cdi.core.cdinature</nature>
+ </natures>
+</projectDescription>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/.jsdtscope
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/.jsdtscope (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/.jsdtscope 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="WebContent"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.jdt.core.prefs 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.common.component 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="abstract1">
+ <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
+ <property name="java-output-path" value="/abstract1/build/classes"/>
+ <property name="context-root" value="abstract1"/>
+ </wb-module>
+</project-modules>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.common.project.facet.core.xml 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 7.1 Runtime"/>
+ <fixed facet="java"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="wst.jsdt.web"/>
+ <installed facet="java" version="1.6"/>
+ <installed facet="jst.web" version="3.0"/>
+ <installed facet="wst.jsdt.web" version="1.0"/>
+</faceted-project>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.jboss.ide.eclipse.as.core.prefs
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.jboss.ide.eclipse.as.core.prefs (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/.settings/org.jboss.ide.eclipse.as.core.prefs 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.jboss.ide.eclipse.as.core.singledeployable.deployableList=
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/META-INF/MANIFEST.MF 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/WEB-INF/beans.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/WEB-INF/beans.xml (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/WebContent/WEB-INF/beans.xml 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<beans xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd"
+ xmlns:test="urn:java:cdi.seam">
+
+ <test:AbstractBean>
+ </test:AbstractBean>
+
+ </beans>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/src/cdi/seam/AbstractBean.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/src/cdi/seam/AbstractBean.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/abstract1/src/cdi/seam/AbstractBean.java 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,5 @@
+package cdi.seam;
+
+public abstract class AbstractBean {
+
+}
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.classpath
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.classpath (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.classpath 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_04">
+ <attributes>
+ <attribute name="owner.project.facets" value="java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 7.1 Runtime">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.web"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.project
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.project (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.project 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>interface1</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.jst.web.kb.kbbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.cdi.core.cdibuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>org.jboss.tools.jst.web.kb.kbnature</nature>
+ <nature>org.jboss.tools.cdi.core.cdinature</nature>
+ </natures>
+</projectDescription>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/.jsdtscope
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/.jsdtscope (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/.jsdtscope 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="WebContent"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.jdt.core.prefs 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,7 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.common.component 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="interface1">
+ <wb-resource deploy-path="/" source-path="/WebContent" tag="defaultRootSource"/>
+ <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
+ <property name="java-output-path" value="/interface1/build/classes"/>
+ <property name="context-root" value="interface1"/>
+ </wb-module>
+</project-modules>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.common.project.facet.core.xml 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 7.1 Runtime"/>
+ <fixed facet="java"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="wst.jsdt.web"/>
+ <installed facet="java" version="1.6"/>
+ <installed facet="jst.web" version="3.0"/>
+ <installed facet="wst.jsdt.web" version="1.0"/>
+</faceted-project>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.jsdt.ui.superType.container 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.eclipse.wst.jsdt.ui.superType.name 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.jboss.ide.eclipse.as.core.prefs
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.jboss.ide.eclipse.as.core.prefs (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/.settings/org.jboss.ide.eclipse.as.core.prefs 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.jboss.ide.eclipse.as.core.singledeployable.deployableList=
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/META-INF/MANIFEST.MF 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/WEB-INF/beans.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/WEB-INF/beans.xml (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/WebContent/WEB-INF/beans.xml 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<beans xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://jboss.org/schema/cdi/beans_1_0.xsd"
+ xmlns:test="urn:java:cdi.seam">
+
+ <test:MyInter>
+ </test:MyInter>
+
+ </beans>
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/src/cdi/seam/MyInter.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/src/cdi/seam/MyInter.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/resources/projects/interface1/src/cdi/seam/MyInter.java 2012-06-13 10:40:22 UTC (rev 41925)
@@ -0,0 +1,5 @@
+package cdi.seam;
+
+public interface MyInter {
+
+}
13 years, 10 months
JBoss Tools SVN: r41923 - in trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test: tests and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jjankovi
Date: 2012-06-13 04:42:21 -0400 (Wed, 13 Jun 2012)
New Revision: 41923
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/LoggerSupportTest.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
Log:
new test LoggerSupportTest implemented and added into test suite
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-06-13 08:41:44 UTC (rev 41922)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/CDISeam3AllBotTests.java 2012-06-13 08:42:21 UTC (rev 41923)
@@ -16,6 +16,7 @@
import org.jboss.tools.cdi.seam3.bot.test.tests.ExactAnnotationTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.FullyQualifiedTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.GenericOpenOnTest;
+import org.jboss.tools.cdi.seam3.bot.test.tests.LoggerSupportTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.NamedPackagesTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.RequiresAnnotationTest;
import org.jboss.tools.cdi.seam3.bot.test.tests.ResourceOpenOnTest;
@@ -39,6 +40,7 @@
RequiresAnnotationTest.class,
NamedPackagesTest.class,
FullyQualifiedTest.class,
+ LoggerSupportTest.class,
})
public class CDISeam3AllBotTests extends AbstractTestSuite {
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/LoggerSupportTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/LoggerSupportTest.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam3.bot.test/src/org/jboss/tools/cdi/seam3/bot/test/tests/LoggerSupportTest.java 2012-06-13 08:42:21 UTC (rev 41923)
@@ -0,0 +1,50 @@
+/*******************************************************************************
+ * Copyright (c) 2010-2012 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.seam3.bot.test.tests;
+
+import org.jboss.tools.cdi.bot.test.annotations.ValidationType;
+import org.jboss.tools.cdi.bot.test.quickfix.validators.BeanValidationProvider;
+import org.jboss.tools.cdi.bot.test.quickfix.validators.IValidationProvider;
+import org.jboss.tools.cdi.seam3.bot.test.base.Seam3TestBase;
+import org.jboss.tools.cdi.seam3.bot.test.util.SeamLibrary;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ *
+ * @author jjankovi
+ *
+ */
+public class LoggerSupportTest extends Seam3TestBase {
+
+ private static String projectName = "logger1";
+ private IValidationProvider validationProvider = new BeanValidationProvider();
+
+ @BeforeClass
+ public static void setup() {
+ importSeam3ProjectWithLibrary(projectName, SeamLibrary.SOLDER_3_1);
+ }
+
+ @Test
+ public void testLoggerSupport() {
+
+ /* test there is not any validation error */
+ assertLoggerIsInjectable();
+
+ }
+
+ private void assertLoggerIsInjectable() {
+ assertNull("There is not bean eligible for injection to injection point Logger",
+ quickFixHelper.getProblem(
+ ValidationType.NO_BEAN_ELIGIBLE, projectName, validationProvider));
+ }
+
+}
13 years, 10 months