[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:
dennisl 2006-08-07 23:33:17 +00:00
parent 8d9abeed9f
commit 2a1dbbe9d6
3 changed files with 35 additions and 3 deletions

View File

@ -24,7 +24,7 @@
<pomVersion>3</pomVersion> <pomVersion>3</pomVersion>
<id>maven-idea-plugin</id> <id>maven-idea-plugin</id>
<name>Maven IDEA Plugin</name> <name>Maven IDEA Plugin</name>
<currentVersion>1.6</currentVersion> <currentVersion>1.7-SNAPSHOT</currentVersion>
<shortDescription>IDEA Plugin for Maven</shortDescription> <shortDescription>IDEA Plugin for Maven</shortDescription>
<description>IDEA Plugin for Maven.</description> <description>IDEA Plugin for Maven.</description>
<versions> <versions>

View File

@ -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"> <project version="4" relativePaths="true">
<component name="LvcsProjectConfiguration"> <component name="LvcsProjectConfiguration">
@ -244,7 +244,36 @@
</configuration> </configuration>
</component> </component>
<component name="VcsManagerConfiguration"> <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>
<component name="VssConfiguration"> <component name="VssConfiguration">
<CheckoutOptions> <CheckoutOptions>

View File

@ -24,6 +24,9 @@
<author email="michal.maczka@dimatic.com">Michal Maczka</author> <author email="michal.maczka@dimatic.com">Michal Maczka</author>
</properties> </properties>
<body> <body>
<release version="1.7-SNAPSHOT" date="In SVN">
<action dev="dennisl" type="add" issue="MPIDEA-43">Autodetect which version control system to use</action>
</release>
<release version="1.6" date="2005-06-15"> <release version="1.6" date="2005-06-15">
<action dev="brett" type="update" issue="MPIDEA-25">Use relative paths for projects and modules for projects easier to check into SCM</action> <action dev="brett" type="update" issue="MPIDEA-25">Use relative paths for projects and modules for projects easier to check into SCM</action>
<action dev="brett" type="update" issue="MPIDEA-7" due-to="David Jencks">Make projects within the reactor set IDEA module dependencies, but keep all others as JAR dependencies</action> <action dev="brett" type="update" issue="MPIDEA-7" due-to="David Jencks">Make projects within the reactor set IDEA module dependencies, but keep all others as JAR dependencies</action>