[MPIDEA-43] Autodetect which version control system to use.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@429511 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
8d9abeed9f
commit
2a1dbbe9d6
3 files changed
+35
-3
No files matched your search
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
-->
|
||||
|
||||
<j:whitespace xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns="dummy" trim="true">
|
||||
<j:whitespace xmlns:ant="jelly:ant" xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns="dummy" trim="true">
|
||||
|
||||
<project version="4" relativePaths="true">
|
||||
<component name="LvcsProjectConfiguration">
|
||||
@@ -244,7 +244,36 @@
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="VcsManagerConfiguration">
|
||||
<option name="ACTIVE_VCS_NAME" value="" /> <!-- TODO: CVS value -->
|
||||
<j:set var="scmConnection" value="${pom.repository.connection}"/>
|
||||
<j:if test="${empty(scmConnection)}">
|
||||
<j:set var="scmConnection" value="${pom.repository.developerConnection}"/>
|
||||
</j:if>
|
||||
<j:choose>
|
||||
<j:when test="${empty(scmConnection)}">
|
||||
<j:set var="vcsName" value=""/>
|
||||
</j:when>
|
||||
<j:when test="${5 > scmConnection.length()}">
|
||||
<j:set var="vcsName" value=""/>
|
||||
<ant:echo>Invalid SCM Connection. Unable to determine VCS name.</ant:echo>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<j:set var="scmNoPrefix" value="${scmConnection.substring(4)}"/>
|
||||
<j:set var="scmEndIndex" value="${scmNoPrefix.indexOf('|')}" />
|
||||
<j:if test="${0 > scmEndIndex}">
|
||||
<j:set var="scmEndIndex" value="${scmNoPrefix.indexOf(':')}" />
|
||||
</j:if>
|
||||
<j:choose>
|
||||
<j:when test="${0 > scmEndIndex}">
|
||||
<j:set var="vcsName" value=""/>
|
||||
<ant:echo>Invalid SCM Connection. Unable to determine VCS name.</ant:echo>
|
||||
</j:when>
|
||||
<j:otherwise>
|
||||
<j:set var="vcsName" value="${scmNoPrefix.substring(0, scmEndIndex)}"/>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
</j:otherwise>
|
||||
</j:choose>
|
||||
<option name="ACTIVE_VCS_NAME" value="${vcsName}" />
|
||||
</component>
|
||||
<component name="VssConfiguration">
|
||||
<CheckoutOptions>
|
||||
|
||||
Reference in new issue
Block a user