Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 227364 Details for
Bug 397850
[CBI] use the correct group IDs for all artifacts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
XSL that can fix the groupId in a pom
fix-pom.xsl (text/plain), 1.48 KB, created by
Paul Webster
on 2013-02-20 15:48:36 EST
(
hide
)
Description:
XSL that can fix the groupId in a pom
Filename:
MIME Type:
Creator:
Paul Webster
Created:
2013-02-20 15:48:36 EST
Size:
1.48 KB
patch
obsolete
><?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="2.0"> > <!--xsl:output omit-xml-declaration="yes" indent="yes"/--> > <xsl:output indent="yes"/> > <xsl:strip-space elements="*"/> > ><xsl:template name="group-id"> > <xsl:param name="pText" select="."/> > <xsl:param name="pCount" select="0"/> > <xsl:if test="$pCount < 3"> > <xsl:value-of select="substring-before(concat($pText, '.'), '.')"/> > <xsl:if test="$pCount < 2"><xsl:text>.</xsl:text></xsl:if> > <xsl:call-template name="group-id"> > <xsl:with-param name="pText" select="substring-after($pText, '.')"/> > <xsl:with-param name="pCount" select="$pCount + 1"/> > </xsl:call-template> > </xsl:if> ></xsl:template> > ><xsl:template match="/my:project/my:groupId"> > <groupId xmlns="http://maven.apache.org/POM/4.0.0"><xsl:call-template name="group-id"> ><xsl:with-param name="pText" select="/my:project/my:artifactId/text()"/> ><xsl:with-param name="pCount" select="0"/> ></xsl:call-template></groupId> ></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>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 397850
:
227364
|
227368
|
227369
|
227370
|
227371
|
227570
|
227571
|
227572
|
227573