Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'production/sdk/xslUtilityScripts/fix-pom-parent-version.xsl')
-rw-r--r--production/sdk/xslUtilityScripts/fix-pom-parent-version.xsl24
1 files changed, 24 insertions, 0 deletions
diff --git a/production/sdk/xslUtilityScripts/fix-pom-parent-version.xsl b/production/sdk/xslUtilityScripts/fix-pom-parent-version.xsl
new file mode 100644
index 00000000..4529cb09
--- /dev/null
+++ b/production/sdk/xslUtilityScripts/fix-pom-parent-version.xsl
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:my="http://maven.apache.org/POM/4.0.0" exclude-result-prefixes="my xs" version="1.0">
+ <!--xsl:output omit-xml-declaration="yes" indent="yes"/>
+ <xsl:output indent="yes"/>
+ <xsl:strip-space elements="*"/-->
+ <xsl:output method="xml" encoding="UTF-8"/>
+ <xsl:param name="new-version" select="'0.14.0-SNAPSHOT'"/>
+ <xsl:template match="/my:project/my:parent/my:version">
+ <xsl:element name="version" namespace="http://maven.apache.org/POM/4.0.0"><xsl:value-of select="$new-version"/></xsl:element>
+ </xsl:template>
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+ <!--xsl:template match="node()|@*">
+ <xsl:copy>
+ <xsl:apply-templates select="node()|@*">
+ <xsl:sort select="name()" />
+ <xsl:sort select="@*" />
+ </xsl:apply-templates>
+ </xsl:copy>
+</xsl:template-->
+</xsl:stylesheet>

Back to the top