Author: dgolovin
Date: 2011-01-18 18:31:17 -0500 (Tue, 18 Jan 2011)
New Revision: 28373
Added:
branches/jbosstools-3.2.0.CR1/build/aggregate/site/remove-uncategorized.xsl
Modified:
branches/jbosstools-3.2.0.CR1/build/aggregate/site/build.xml
Log:
https://issues.jboss.org/browse/JBIDE-8029 Unable to install VPE on MacOSX 10.5 64bit
workaround for issue. xsl transformation is used to remove Uncategorized category from
content.xml.
added to task intended to add references to save time
Modified: branches/jbosstools-3.2.0.CR1/build/aggregate/site/build.xml
===================================================================
--- branches/jbosstools-3.2.0.CR1/build/aggregate/site/build.xml 2011-01-18 23:22:44 UTC
(rev 28372)
+++ branches/jbosstools-3.2.0.CR1/build/aggregate/site/build.xml 2011-01-18 23:31:17 UTC
(rev 28373)
@@ -207,6 +207,9 @@
<echo file="${update.site.source.dir}/content.xml"
append="true"> </references>
</repository>
</echo>
+
+ <xslt style="remove-uncategorized.xsl"
in="${update.site.source.dir}/content.xml"
out="${update.site.source.dir}/content.new.xml" />
+ <move file="${update.site.source.dir}/content.new.xml"
tofile="${update.site.source.dir}/content.xml" overwrite="true" />
<zip destfile="${update.site.source.dir}/content.jar"
basedir="${update.site.source.dir}" includes="content.xml" />
<delete file="${update.site.source.dir}/content.xml" />
</then>
@@ -354,4 +357,13 @@
<delete dir="${aggegate.zips.dir}" quiet="true" />
</target>
+ <target name="remove-uncategorized" >
+ <!-- content.jar - full path to content.jar -->
+ <property name="content.jar"
value="/home/eskimo/Temp/content.jar" />
+ <mkdir dir="${java.io.tmpdir}/content"/>
+ <unzip src="${content.jar}" dest="${java.io.tmpdir}/content"
/>
+
+ <xslt style="remove-uncategorized.xsl"
in="${java.io.tmpdir}/content/content.xml"
out="${java.io.tmpdir}/content/content.xml">
+ </xslt>
+ </target>
</project>
Added: branches/jbosstools-3.2.0.CR1/build/aggregate/site/remove-uncategorized.xsl
===================================================================
--- branches/jbosstools-3.2.0.CR1/build/aggregate/site/remove-uncategorized.xsl
(rev 0)
+++ branches/jbosstools-3.2.0.CR1/build/aggregate/site/remove-uncategorized.xsl 2011-01-18
23:31:17 UTC (rev 28373)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
+
+<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="unit[contains((a)id,'site.xml.Default')]" />
+
+</xsl:stylesheet>
\ No newline at end of file
Property changes on:
branches/jbosstools-3.2.0.CR1/build/aggregate/site/remove-uncategorized.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain