Author: nickboldt
Date: 2012-05-03 15:43:01 -0400 (Thu, 03 May 2012)
New Revision: 40769
Added:
trunk/build/aggregate/site.xml.xsl
Modified:
trunk/build/aggregate/build.xml
Log:
when generating site, put REAL VALUES into the site.xml file (instead of 0.0.0)
Modified: trunk/build/aggregate/build.xml
===================================================================
--- trunk/build/aggregate/build.xml 2012-05-03 19:42:52 UTC (rev 40768)
+++ trunk/build/aggregate/build.xml 2012-05-03 19:43:01 UTC (rev 40769)
@@ -562,6 +562,10 @@
<copy todir="${update.site.source.dir}" overwrite="true">
<fileset dir="${output.dir}" includes="${web.content.files}"
/>
</copy>
+
+ <!-- use updated site.xml instead of version with 0.0.0 -->
+ <move file="${update.site.source.dir}/site.out.xml"
tofile="${update.site.source.dir}/site.xml" overwrite="true"/>
+
</target>
<target name="generate.site.properties">
@@ -610,6 +614,11 @@
<loadfile property="site.contents"
srcfile="${update.site.source.dir}/site.html" failonerror="false"
/>
<property name="site.contents" value="" />
<delete file="${update.site.source.dir}/site.html" quiet="true"
/>
+
+ <!-- update site.xml to replace 0.0.0 with actual versions -->
+ <xslt style="site.xml.xsl"
in="${update.site.source.dir}/site.xml"
out="${update.site.source.dir}/site.out.xml" force="true">
+ <classpath location="${COMMON_TOOLS}/saxon.jar" />
+ </xslt>
</target>
<!-- look for
http://download.jboss.org/jbosstools/builds/staging/jbosstools-3.*/logs/z...;
Added: trunk/build/aggregate/site.xml.xsl
===================================================================
--- trunk/build/aggregate/site.xml.xsl (rev 0)
+++ trunk/build/aggregate/site.xml.xsl 2012-05-03 19:43:01 UTC (rev 40769)
@@ -0,0 +1,16 @@
+<xsl:stylesheet version="2.0"
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"
+
xmlns:saxon="http://saxon.sf.net/"
xmlns="http://www.w3.org/1999/xhtml"
+ extension-element-prefixes="saxon" exclude-result-prefixes="xsl xalan
saxon xmlns">
+ <xsl:output method="html" indent="no" />
+ <xsl:template match="/"><xsl:apply-templates
select="*"/></xsl:template>
+ <xsl:template match="*">
+ <xsl:copy >
+ <xsl:for-each select="@*">
+ <xsl:copy />
+ </xsl:for-each>
+ <xsl:apply-templates />
+ </xsl:copy>
+ </xsl:template>
+ <xsl:template match="feature"><feature
url="features/{@id}_{(a)version}.jar" id="{@id}"
version="{@version}"><xsl:apply-templates
select="*"/></feature></xsl:template>
+</xsl:stylesheet>