[jbosstools-commits] JBoss Tools SVN: r40765 - branches/jbosstools-3.3.0.Beta3/build/aggregate.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu May 3 15:31:02 EDT 2012


Author: nickboldt
Date: 2012-05-03 15:31:02 -0400 (Thu, 03 May 2012)
New Revision: 40765

Added:
   branches/jbosstools-3.3.0.Beta3/build/aggregate/site.xml.xsl
Modified:
   branches/jbosstools-3.3.0.Beta3/build/aggregate/build.xml
   branches/jbosstools-3.3.0.Beta3/build/aggregate/pom.xml
Log:
JBIDE-10469 apply patch JBIDE10469.patch.txt and create new XSLT script

Modified: branches/jbosstools-3.3.0.Beta3/build/aggregate/build.xml
===================================================================
--- branches/jbosstools-3.3.0.Beta3/build/aggregate/build.xml	2012-05-03 19:30:50 UTC (rev 40764)
+++ branches/jbosstools-3.3.0.Beta3/build/aggregate/build.xml	2012-05-03 19:31:02 UTC (rev 40765)
@@ -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/zip.list.txt; 

Modified: branches/jbosstools-3.3.0.Beta3/build/aggregate/pom.xml
===================================================================
--- branches/jbosstools-3.3.0.Beta3/build/aggregate/pom.xml	2012-05-03 19:30:50 UTC (rev 40764)
+++ branches/jbosstools-3.3.0.Beta3/build/aggregate/pom.xml	2012-05-03 19:31:02 UTC (rev 40765)
@@ -23,5 +23,11 @@
 		mvn clean install -f coretests-site/pom.xml
 		mvn clean install -f soatests-site/pom.xml
 		...
+
+	     to build against local sources, use these properties:
+
+		mvn clean install ... \
+			-Djbosstools-nightly-staging-composite=file:///home/nboldt/tru/build/aggregate/local-site/ \
+			-Djboss-requirements-composite-mirror=file:///home/nboldt/tru/build/target-platform/REPO/
 	-->
 </project>

Added: branches/jbosstools-3.3.0.Beta3/build/aggregate/site.xml.xsl
===================================================================
--- branches/jbosstools-3.3.0.Beta3/build/aggregate/site.xml.xsl	                        (rev 0)
+++ branches/jbosstools-3.3.0.Beta3/build/aggregate/site.xml.xsl	2012-05-03 19:31:02 UTC (rev 40765)
@@ -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}_{@version}.jar" id="{@id}" version="{@version}"><xsl:apply-templates select="*"/></feature></xsl:template>
+</xsl:stylesheet>



More information about the jbosstools-commits mailing list