obile.ios.mios.xcode-maven-plugin.1.14.4.source-code.versionInfoCensorTransformation.xml Maven / Gradle / Ivy
Go to download
This plugin is used to run iOS Xcode builds with Maven. It also uses the Maven integration with a
central artifact repository and the dependency resolution.
<!-- #%L xcode-maven-plugin %% Copyright (C) 2012 SAP AG %% Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. #L% --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="@*|node()"> <xsl:copy> <xsl:choose> <xsl:when test="name()='connection'"> <xsl:choose> <xsl:when test="starts-with(., 'scm:perforce')"> <xsl:param name="fullNodeText" select="."/> <xsl:param name="withoutSCM" select="substring-after($fullNodeText, ':' )"/> <xsl:param name="perforceURL" select="substring-after($withoutSCM, ':' )"/> <xsl:param name="portAndPath" select="substring-after($perforceURL, ':' )"/> <xsl:param name="perforcePort" select="substring-before($portAndPath, ':' )"/> <xsl:choose>" <xsl:when test="string-length($perforcePort) = 0"> THE PERFORCE URL DOES NOT MATCH THE EXPECTED FORMAT: <perforceHost><perforcePort><path></xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space($portAndPath)" /> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:when test="starts-with(., 'scm:git')"> <xsl:param name="fullNodeTextGIT" select="."/> <xsl:param name="withoutSCMGIT" select="substring-after($fullNodeTextGIT, ':' )"/> <xsl:param name="withoutGit" select="substring-after($withoutSCMGIT, ':' )"/> <xsl:param name="withoutSSH" select="substring-after($withoutGit, ':' )"/> <xsl:param name="gitPort" select="substring-after($withoutSSH, ':' )"/> <xsl:choose>" <xsl:when test="string-length($gitPort) = 0"> THE GIT URL DOES NOT MATCH THE EXPECTED FORMAT: ssh://<gitHost><gitPort><path></xsl:when> <xsl:otherwise> <xsl:value-of select="normalize-space($gitPort)" /> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> THE SCM OF THAT PROJECT IS NOT SUPPORTED </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:apply-templates select="@*|node()"/> </xsl:otherwise> </xsl:choose> </xsl:copy> </xsl:template> </xsl:stylesheet>