Author: nickboldt
Date: 2010-11-10 18:22:36 -0500 (Wed, 10 Nov 2010)
New Revision: 26440
Added:
trunk/build/results/.gitignore
trunk/build/results/buildResults.css
trunk/build/results/buildResults.xsl
Modified:
trunk/build/results/build.xml
trunk/build/results/download-template.xml
trunk/build/results/download.xsl
Log:
JBIDE-6958 JBIDE-7045 JBIDE-7444 initial pass
Added: trunk/build/results/.gitignore
===================================================================
--- trunk/build/results/.gitignore (rev 0)
+++ trunk/build/results/.gitignore 2010-11-10 23:22:36 UTC (rev 26440)
@@ -0,0 +1 @@
+*.out.*
Modified: trunk/build/results/build.xml
===================================================================
--- trunk/build/results/build.xml 2010-11-10 23:22:27 UTC (rev 26439)
+++ trunk/build/results/build.xml 2010-11-10 23:22:36 UTC (rev 26440)
@@ -110,20 +110,8 @@
</path>
<sequential>
<var name="filename" unset="true" />
- <propertyregex property="filename"
- input="@{UPDATEZIP}"
- defaultvalue="@{UPDATEZIP}"
- regexp=".+/([^/]+\.zip)"
- replace="\1"
- casesensitive="false"
- override="true" />
- <propertyregex property="COMPONENT"
- input="${filename}"
- defaultvalue="${filename}"
- regexp="(.+)-(Update|Sources)-${ZIPSUFFIX}\.zip"
- replace="\1"
- casesensitive="false"
- override="true" />
+ <propertyregex property="filename" input="@{UPDATEZIP}"
defaultvalue="@{UPDATEZIP}" regexp=".+/([^/]+\.zip)"
replace="\1" casesensitive="false" override="true" />
+ <propertyregex property="COMPONENT" input="${filename}"
defaultvalue="${filename}"
regexp="(.+)-(Update|Sources)-${ZIPSUFFIX}\.zip" replace="\1"
casesensitive="false" override="true" />
<if>
<and>
<isset property="JOB_NAME" />
@@ -183,6 +171,7 @@
</filterchain>
</copy>
<xslt in="${output.dir}/download.xml"
out="${output.dir}/download-snippet.txt" style="download.xsl" />
+ <xslt in="${output.dir}/download.xml"
out="${output.dir}/buildResults.html" style="buildResults.xsl" />
<delete file="${output.dir}/download.xml" />
</then>
<elseif>
@@ -193,12 +182,7 @@
<contains string="${template.file}" substring="ftp:" />
</or>
<then>
- <propertyregex property="template.file.cleaned"
- input="${template.file}"
- defaultvalue="${template.file}"
- regexp=".+/([^/]+)"
- replace="\1"
- override="true" />
+ <propertyregex property="template.file.cleaned"
input="${template.file}" defaultvalue="${template.file}"
regexp=".+/([^/]+)" replace="\1" override="true" />
<get src="${template.file}"
dest="${output.dir}/${template.file.cleaned}.in" ignoreerrors="true"
/>
<if>
<available file="${output.dir}/${template.file.cleaned}.in"
type="file" />
@@ -223,9 +207,7 @@
<expandproperties />
</filterchain>
</copy>
- <xslt in="${output.dir}/download.xml"
- out="${output.dir}/download-snippet.txt"
- style="download.xsl" />
+ <xslt in="${output.dir}/download.xml"
out="${output.dir}/download-snippet.txt" style="download.xsl" />
<delete file="${output.dir}/download.xml" />
</else>
</if>
@@ -234,4 +216,9 @@
</if>
</target>
+ <target name="test.xslt">
+ <xslt in="download-template.xml" out="download-snippet.out.html"
style="download.xsl" />
+ <xslt in="download-template.xml" out="buildResults.out.html"
style="buildResults.xsl" />
+ </target>
+
</project>
Added: trunk/build/results/buildResults.css
===================================================================
--- trunk/build/results/buildResults.css (rev 0)
+++ trunk/build/results/buildResults.css 2010-11-10 23:22:36 UTC (rev 26440)
@@ -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
Added: trunk/build/results/buildResults.xsl
===================================================================
--- trunk/build/results/buildResults.xsl (rev 0)
+++ trunk/build/results/buildResults.xsl 2010-11-10 23:22:36 UTC (rev 26440)
@@ -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-...,
+ ${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-jo...
+ 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-j...
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...
+ Forum</a>
+ |
+ <a class="blue"
+
href="http://jboss.com/index.html?module=bb&op=viewforum&...
+ Forum</a>
+ |
+ <a class="blue"
+
href="http://jira.jboss.com/jira/secure/BrowseProject.jspa?id=10020&...
+ / 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">...
+ 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...
+ </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/l...
Platform Update Site</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a class="blue"
+
href="http://download.jboss.org/jbosstools/updates/target-platform/e...
Platform Update Zip</a>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <a class="blue"
+
href="http://anonsvn.jboss.org/repos/jbosstools/trunk/build/target-p...
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_Tycho/job/jbo...
+ <!-- <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: trunk/build/results/download-template.xml
===================================================================
--- trunk/build/results/download-template.xml 2010-11-10 23:22:27 UTC (rev 26439)
+++ trunk/build/results/download-template.xml 2010-11-10 23:22:36 UTC (rev 26440)
@@ -1,5 +1,5 @@
<projects
baseurl="http://downloads.sourceforge.net/jboss/">
-<project name="All Plugins (repo)" version="${ZIPSUFFIX}">
+<project name="All Plugins" version="${ZIPSUFFIX}">
<description>A p2 repo (update site) bundle of all JBoss Tools plugins -
</description>
<a
href="http://www.jboss.org/tools/download/update.html#fromzip"&...
instructions</a>
<download os="All platforms" url="${update-filename}"
size="${update-filesize} MB"/>
@@ -125,6 +125,11 @@
<download os="All platforms" url="${runtime-filename}"
size="${runtime-filesize} MB"/>
</project>
+<project name="Savara Tools" version="${ZIPSUFFIX}">
+ <description>Provides Savara Tools</description>
+ <download os="All platforms" url="${savara-filename}"
size="${savara-filesize} MB"/>
+</project>
+
<project name="Seam Tools" version="${ZIPSUFFIX}" >
<description>For creating Seam Components and Projects</description>
<download os="All platforms" url="${seam-filename}"
size="${seam-filesize} MB"/>
Modified: trunk/build/results/download.xsl
===================================================================
--- trunk/build/results/download.xsl 2010-11-10 23:22:27 UTC (rev 26439)
+++ trunk/build/results/download.xsl 2010-11-10 23:22:36 UTC (rev 26440)
@@ -1,47 +1,68 @@
-<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: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>
+ <xsl:variable name="baseurl">
+ <xsl:value-of select="@baseurl" />
+ </xsl:variable>
-<table cellspacing="1" cellpadding="0" border="0"
align="left"
-style="width: 100%;" class="simpletablestyle">
- <thead>
- <tr class="header">
- <th>Description</th>
- <th>Version</th>
- <th>Download</th>
- </tr>
- </thead>
- <tbody>
- <xsl:for-each select="project">
- <xsl:variable name="rowClass">
- <xsl:if test="position() mod 2 = 1">oddRow</xsl:if>
- <xsl:if test="position() mod 2 = 0">evenRow</xsl:if>
- </xsl:variable>
-
- <tr>
- <xsl:attribute name="class">
- <xsl:value-of select="$rowClass"/>
- </xsl:attribute>
- <td class="rowLine"><xsl:value-of select="@name"/> -
<xsl:value-of select="description"/><xsl:if test="string(a) !=
''"><xsl:copy-of select="a"/></xsl:if></td>
- <td class="rowLine"><xsl:value-of
select="substring-before(@version,'-')"/></td>
- <td class="rowLine">
- <xsl:for-each select="download">
- <b><a>
- <xsl:attribute name="href"><xsl:value-of
select="$baseurl"/><xsl:value-of
select="@url"/></xsl:attribute>
- <xsl:attribute
name="onclick">javascript:pageTracker._trackPageview('/downloads/<xsl:value-of
select="@url"/>');turnOnModal(this); return false;</xsl:attribute>
- <xsl:value-of select="@os"/>
- </a>
- (<xsl:value-of select="@size"/>)
- </b>
- <br/>
- </xsl:for-each>
- </td>
- </tr>
- </xsl:for-each>
- </tbody>
-</table>
+ <table cellspacing="1" cellpadding="0" border="0"
align="left"
+ style="width: 100%;" class="simpletablestyle">
+ <thead>
+ <tr class="header">
+ <th>Download</th>
+ <th>Size</th>
+ <th>Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:for-each select="project">
+ <xsl:variable name="rowClass">
+ <xsl:if test="position() mod 2 = 1">
+ oddRow
+ </xsl:if>
+ <xsl:if test="position() mod 2 = 0">
+ evenRow
+ </xsl:if>
+ </xsl:variable>
+ <xsl:variable name="rowColor">
+ <xsl:if test="contains(@name,'All')">
+ #CCEECC
+ </xsl:if>
+ <xsl:if test="contains(@name,'Sources')">
+ #EECCCC
+ </xsl:if>
+ </xsl:variable>
-</xsl:template>
+ <tr class="{$rowClass}" bgcolor="{$rowColor}">
+ <td class="rowLine">
+ <xsl:for-each select=".">
+ <b>
+ <a href="{$baseurl}/{download/@url}"
+ onclick="javascript:pageTracker._trackPageview('/downloads/{@url}');turnOnModal(this);
return false;">
+ <xsl:value-of select="@name" />
+ </a>
+ </b>
+ <br />
+ </xsl:for-each>
+ </td>
+ <td class="rowLine">
+ <xsl:for-each select=".">
+ <xsl:value-of select="download/@size" />
+ </xsl:for-each>
+ </td>
+ <td class="rowLine">
+ <xsl:value-of select="@name" />
+ -
+ <xsl:value-of select="description" />
+ <xsl:if test="string(a) != ''">
+ <xsl:copy-of select="a" />
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
</xsl:transform>
\ No newline at end of file