Author: nickboldt
Date: 2010-07-12 15:19:43 -0400 (Mon, 12 Jul 2010)
New Revision: 23373
Added:
trunk/build/results/
trunk/build/results/buildResults.xml
trunk/build/results/download-template.xml
trunk/build/results/download.xsl
Log:
new results page generator (first draft)
Added: trunk/build/results/buildResults.xml
===================================================================
--- trunk/build/results/buildResults.xml (rev 0)
+++ trunk/build/results/buildResults.xml 2010-07-12 19:19:43 UTC (rev 23373)
@@ -0,0 +1,88 @@
+<project default="build.results">
+
+ <property name="ZIPSUFFIX" value="SNAPSHOT" />
+
+ <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">
+ <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}" />
+ <echo level="info">COMMON_TOOLS = ${COMMON_TOOLS}</echo>
+
+ <target name="init">
+ <ant antfile="${build.xml}" target="init" />
+ <taskdef resource="net/sf/antcontrib/antlib.xml">
+ <classpath>
+ <pathelement location="${COMMON_TOOLS}/ant-contrib.jar" />
+ </classpath>
+ </taskdef>
+ </target>
+
+ <target name="build.results" depends="init">
+ <!--
+ 1. resolve variables in download-template.xml to produce download.xml
+ 2. XSL transform download.xml to produce download.snippet.txt
+ 3. manually copy the contents of this file into
+
http://www.jboss.org/tools/downloads/stable.html or
+
http://www.jboss.org/tools/downloads/dev.html, as applicable
+ -->
+
+ <!-- TODO: resolve variables for ZIPSUFFIX and *-filename, *-filesize, where * =
component names -->
+ <for param="UPDATEZIP">
+ <path>
+ <fileset dir="${WORKINGDIR}">
+ <include name="*-Update-${ZIPSUFFIX}.zip" />
+ <include name="*-Sources-${ZIPSUFFIX}.zip" />
+ </fileset>
+ </path>
+ <sequential>
+ <propertyregex property="COMPONENT"
+ input="@{UPDATEZIP}"
+ defaultvalue="@{UPDATEZIP}"
+ regexp=".+/([^/]+\.zip)"
+ replace="\1"
+ casesensitive="false"
+ override="true"
+ />
+ <propertyregex property="COMPONENT"
+ input="@{COMPONENT}"
+ defaultvalue="@{COMPONENT}"
+ regexp="(.+)-(Update|Sources)-${ZIPSUFFIX}\.zip)"
+ replace="\1"
+ casesensitive="false"
+ override="true"
+ />
+ <echo level="info">UPDATEZIP = @{UPDATEZIP}
+COMPONENT = ${COMPONENT}</echo>
+ <var name="filesize" unset="true" />
+ <get.size file="@{UPDATEZIP}" property="${COMPONENT}-filesize"
/>
+ <propertycopy from="${repoFilename}.features"
property="filesize" override="true" silent="true" />
+ <echo level="info">filesize = ${filesize}</echo>
+ <var name="filesize" unset="true" />
+ </sequential>
+ </for>
+
+ <copy todir="${product.build.directory}" overwrite="true">
+ <fileset file="download-template.xml" />
+ <mapper type="merge" to="download.xml" />
+ <filterchain>
+ <expandproperties />
+ </filterchain>
+ </copy>
+ <xslt in="${product.build.directory}/download.xml"
+ out="${product.build.directory}/download-snippet.txt"
+ style="download.xsl"
+ />
+ <delete file="${product.build.directory}/download.xml" />
+ </target>
+
+</project>
Property changes on: trunk/build/results/buildResults.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/build/results/download-template.xml
===================================================================
--- trunk/build/results/download-template.xml (rev 0)
+++ trunk/build/results/download-template.xml 2010-07-12 19:19:43 UTC (rev 23373)
@@ -0,0 +1,153 @@
+<projects
baseurl="http://downloads.sourceforge.net/jboss/">
+<project name="All Plugins (repo)" 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"/>
+</project>
+
+<project name="JBoss Archive Tools" version="${ZIPSUFFIX}">
+ <description>For incremental archiving and packaging</description>
+ <download os="All platforms" url="${archives-filename}"
size="${archives-filesize} MB"/>
+</project>
+
+<project name="JBoss AS Tools" version="${ZIPSUFFIX}">
+ <description>For running deploying to, and configuring JBoss
AS</description>
+ <download os="All platforms" url="${as-filename}"
size="${as-filesize} MB"/>
+</project>
+
+<project name="JBoss BIRT Tools" version="${ZIPSUFFIX}">
+ <description>Hibernate and Seam extensions for Eclipse BIRT</description>
+ <download os="All platforms" url="${birt-filename}"
size="${birt-filesize} MB"/>
+</project>
+
+<project name="JBoss BPEL Editor" version="${ZIPSUFFIX}">
+ <description>JBoss BPEL Editor</description>
+ <download os="All platforms" url="${bpel-filename}"
size="${bpel-filesize} MB"/>
+</project>
+
+<project name="Context and Dependency Injection Tools"
version="${ZIPSUFFIX}">
+ <description>Context and Dependency Injection Tools</description>
+ <download os="All platforms" url="${cdi-filename}"
size="${cdi-filesize} MB"/>
+</project>
+
+<project name="Common Frameworks" version="${ZIPSUFFIX}">
+ <description>Common JBoss Tools Frameworks, used by several JBoss Tools
components</description>
+ <download os="All platforms" url="${common-filename}"
size="${common-filesize} MB"/>
+</project>
+
+<project name="Drools IDE" version="${ZIPSUFFIX}">
+ <description>For Drools Rules and Drools Ruleflow</description>
+ <download os="All platforms" url="${drools-filename}"
size="${drools-filesize} MB"/>
+</project>
+
+<project name="JBoss ESB Tools" version="${ZIPSUFFIX}" >
+ <description>Project wizards, editors and deployment JBoss's Enterprise
Service Bus</description>
+ <download os="All platforms" url="${esb-filename}"
size="${esb-filesize} MB"/>
+</project>
+
+<project name="Project Examples" version="${ZIPSUFFIX}">
+ <description>Tooling for easy installation of Examples + Project Examples from the
JBoss Community</description>
+ <download os="All platforms" url="${examples-filename}"
size="${examples-filesize} MB"/>
+</project>
+
+<project name="Flow Languages Common Tools"
version="${ZIPSUFFIX}">
+ <description>Flow Languages Common Tools, used by jBPM
component</description>
+ <download os="All platforms" url="${jbpm-filename}"
size="${jbpm-filesize} MB"/>
+</project>
+
+<project name="FreeMarker IDE" version="${ZIPSUFFIX}" >
+ <description>Syntax highlighting Editor for Freemarker files</description>
+ <download os="All platforms" url="${freemarker-filename}"
size="${freemarker-filesize} MB"/>
+</project>
+
+<project name="Hibernate Tools" version="${ZIPSUFFIX}" >
+ <description>Hibernate wizards, query editor, reverse engineering and
more</description>
+ <download os="All platforms" url="${hibernatetools-filename}"
size="${hibernatetools-filesize} MB"/>
+</project>
+
+<project name="jBPM + jBPM Convert" version="${ZIPSUFFIX}">
+ <description>Support for jBPM, including conversion from BPMN
files</description>
+ <download os="All platforms" url="${jbpm-filename}"
size="${jbpm-filesize} MB"/>
+</project>
+
+<project name="JMX Tools" version="${ZIPSUFFIX}">
+ <description>Java Management Extensions (JMX) Console in
Eclipse</description>
+ <download os="All platforms" url="${jmx-filename}"
size="${jmx-filesize} MB"/>
+</project>
+
+<project name="JBoss Tools JSF" version="${ZIPSUFFIX}">
+ <description>JBoss Tools JSF - see also JST and VPE
components</description>
+ <download os="All platforms" url="${jsf-filename}"
size="${jsf-filesize} MB"/>
+</project>
+
+<project name="JBoss Tools Java Standard Tools"
version="${ZIPSUFFIX}">
+ <description>JBoss Tools Java Standard Tools - see also JSF and VPE
components</description>
+ <download os="All platforms" url="${jst-filename}"
size="${jst-filesize} MB"/>
+</project>
+
+<project name="JBoss Maven Tools" version="${ZIPSUFFIX}">
+ <description>Maven support in Eclipse (m2eclipse)</description>
+ <download os="All platforms" url="${maven-filename}"
size="${maven-filesize} MB"/>
+</project>
+
+<project name="ModeShape JCR REST Tools"
version="${ZIPSUFFIX}">
+ <description>Provides a resource publishing and unpublishing capability to
ModeShape repositories</description>
+ <download os="All platforms" url="${modeshape-filename}"
size="${modeshape-filesize} MB"/>
+</project>
+
+<project name="Portlet Tools" version="${ZIPSUFFIX}">
+ <description>For supporting JBoss Portal and JSR-286 portlets</description>
+ <download os="All platforms" url="${portlet-filename}"
size="${portlet-filesize} MB"/>
+</project>
+
+<project name="JBoss Profiler" version="${ZIPSUFFIX}">
+ <description>Provides profiling for JBoss</description>
+ <download os="All platforms" url="${profiler-filename}"
size="${profiler-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"/>
+</project>
+
+<project name="Smooks Tools" version="${ZIPSUFFIX}" >
+ <description>transformation editor</description>
+ <download os="All platforms" url="${smooks-filename}"
size="${smooks-filesize} MB"/>
+</project>
+
+<project name="Struts Tools" version="${ZIPSUFFIX}">
+ <description>For Struts 1.x framework</description>
+ <download os="All platforms" url="${struts-filename}"
size="${struts-filesize} MB"/>
+</project>
+
+<project name="Teiid Designer" version="${ZIPSUFFIX}">
+ <description>To create metadata models that describe your enterprise information
systems</description>
+ <download os="All platforms" url="${teiid-filename}"
size="${teiid-filesize} MB"/>
+</project>
+
+<project name="JBoss AS TPTP Tools" version="${ZIPSUFFIX}" >
+ <description>TPTP support for JBoss AS servers</description>
+ <download os="All platforms" url="${tptp-filename}"
size="${tptp-filesize} MB"/>
+</project>
+
+<project name="Visual Page Editor" version="${ZIPSUFFIX}">
+ <description>Visual Page Editor - see also JST and JSF
components</description>
+ <download os="All platforms" url="${vpe-filename}"
size="${vpe-filesize} MB"/>
+</project>
+
+<project name="JBoss WS Tools" version="${ZIPSUFFIX}">
+ <description>Enables Web Services support in Eclipse for JBoss
WS</description>
+ <download os="All platforms" url="${ws-filename}"
size="${ws-filesize} MB"/>
+</project>
+
+<project name="XulRunner" version="${ZIPSUFFIX}">
+ <description>Provides a common back-end for XUL applications</description>
+ <download os="All platforms" url="${xulrunner-filename}"
size="${xulrunner-filesize} MB"/>
+</project>
+
+<project name="Sources" version="${ZIPSUFFIX}">
+ <description>JBoss Tools - all sources (excluding tests)</description>
+ <download os="All platforms" url="${sources-filename}"
size="${sources-filesize} MB"/>
+</project>
+
+</projects>
\ No newline at end of file
Property changes on: trunk/build/results/download-template.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/build/results/download.xsl
===================================================================
--- trunk/build/results/download.xsl (rev 0)
+++ trunk/build/results/download.xsl 2010-07-12 19:19:43 UTC (rev 23373)
@@ -0,0 +1,47 @@
+<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>
+
+<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>
+
+</xsl:template>
+</xsl:transform>
\ No newline at end of file
Property changes on: trunk/build/results/download.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain