PR: MPCHANGELOG-72
Submitted by: Pascal Larin Auto select factory from connection doesn't work if provider name length different from 3. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@370646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
cdc08c40ad
commit
ab73751157
2 files changed
+11
-3
No files matched your search
@@ -503,15 +503,22 @@ public class ChangeLog
|
||||
{
|
||||
if ( clFactoryClass == null )
|
||||
{
|
||||
if ( ( connection == null ) || ( connection.length() < 7 )
|
||||
//Connection Format: scm:<provider>[:<provider specific connection string>]
|
||||
if ( ( connection == null ) || ( connection.length() < 5 )
|
||||
|| !connection.startsWith( "scm:" ) )
|
||||
{
|
||||
LOG.warn( "Connection does not appear valid" );
|
||||
}
|
||||
else
|
||||
{
|
||||
clFactoryClass =
|
||||
(String) FACTORIES.get( connection.substring( 4, 7 ) );
|
||||
int iProviderEnd = connection.indexOf( ":", 4 );
|
||||
if ( iProviderEnd == -1 )
|
||||
{
|
||||
// Connection = scm:<provider>
|
||||
iProviderEnd = connection.length();
|
||||
}
|
||||
|
||||
clFactoryClass = (String) FACTORIES.get( connection.substring( 4, iProviderEnd ) );
|
||||
}
|
||||
|
||||
if ( clFactoryClass == null )
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.9-SNAPSHOT" date="in SVN">
|
||||
<action dev="ltheussl" type="fix" issue="MPCHANGELOG-72" due-to="Pascal Larin">Auto select factory from connection doesn't work if provider name length different from 3.</action>
|
||||
<action dev="ltheussl" type="add" issue="MPCHANGELOG-80" due-to="Christoph Jerolimov">Add MKS SI support.</action>
|
||||
<action dev="ltheussl" type="fix" issue="MPCHANGELOG-69">Changelog returns 0 entries on Windows with CVS (not CVSNT). New property <code>maven.changelog.quoteDate</code>.</action>
|
||||
<action dev="ltheussl" type="fix" issue="MPCHANGELOG-74">Changelog plugin creates wrong links for Subversion repositories. New property <code>maven.changelog.svn.baseurl</code>.</action>
|
||||
|
||||
Reference in new issue
Block a user