org.mule.devkit.maven
Class RepositoryUtils

java.lang.Object
  extended by org.mule.devkit.maven.RepositoryUtils

public class RepositoryUtils
extends Object

Repository utilities

Author:
Kevin Sawicki (kevin@github.com)

Constructor Summary
RepositoryUtils()
           
 
Method Summary
static org.eclipse.egit.github.core.RepositoryId extractRepositoryFromScmUrl(String url)
          Extra repository id from given SCM URL
static org.eclipse.egit.github.core.RepositoryId getRepository(org.apache.maven.project.MavenProject project, String owner, String name)
          Get repository
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryUtils

public RepositoryUtils()
Method Detail

extractRepositoryFromScmUrl

public static org.eclipse.egit.github.core.RepositoryId extractRepositoryFromScmUrl(String url)
Extra repository id from given SCM URL

Parameters:
url -
Returns:
repository id or null if extraction fails

getRepository

public static org.eclipse.egit.github.core.RepositoryId getRepository(org.apache.maven.project.MavenProject project,
                                                                      String owner,
                                                                      String name)
Get repository

Parameters:
project -
owner -
name -
Returns:
repository id or null if none configured


Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.