dion        2003/09/11 21:41:21

  Modified:    src/java/org/apache/maven/project Repository.java
  Log:
  Applied MAVEN-756: cvs-usage.xml breaks on non-cvs scm URL
  
  Revision  Changes    Path
  1.18      +12 -1     maven/src/java/org/apache/maven/project/Repository.java
  
  Index: Repository.java
  ===================================================================
  RCS file: /home/cvs/maven/src/java/org/apache/maven/project/Repository.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Repository.java   10 Sep 2003 08:39:46 -0000      1.17
  +++ Repository.java   12 Sep 2003 04:41:21 -0000      1.18
  @@ -146,6 +146,17 @@
       }
   
       /**
  +     * Get the SCM type
  +     */
  +    public String getScmType() {
  +        if ( isValid( getConnection() ) )
  +        {
  +            return getConnection().substring( 4, connection.indexOf( ":", 4 ) );
  +        }
  +        return null;
  +    }
  +
  +    /**
        * Get cvs root.
        *
        * @return CVS root.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to