public class RepositoryInfo extends Object implements IRepository
Constructor and Description |
---|
RepositoryInfo(String id,
String repositoryUrl,
File basedir,
int scope,
org.apache.maven.wagon.authentication.AuthenticationInfo authInfo) |
RepositoryInfo(String id,
String repositoryUrl,
int scope,
org.apache.maven.wagon.authentication.AuthenticationInfo authInfo) |
Modifier and Type | Method and Description |
---|---|
void |
addProject(org.eclipse.core.runtime.IPath project) |
org.apache.maven.wagon.authentication.AuthenticationInfo |
getAuthenticationInfo()
Repository access credentials.
|
File |
getBasedir()
For local repositories, returns basedir of repository contents.
|
static File |
getBasedir(String repositoryUrl) |
String |
getId()
Repository id element as defined in settings.xml or pom.xml file.
|
String |
getMirrorId()
Indicates that repository id matches mirrorOf clause of a mirror.
|
String |
getMirrorOf()
For repository mirrors, returns value of mirrorOf element as defined in settings.xml.
|
Set<org.eclipse.core.runtime.IPath> |
getProjects() |
String |
getProtocol()
Protocol part of repository url, i.e.
|
static String |
getProtocol(String repositoryUrl) |
String |
getUid()
Unique repository id.
|
static String |
getUid(String id,
String repositoryUrl,
String username) |
String |
getUrl()
Repository URL
|
boolean |
isScope(int scope) |
void |
removeProject(org.eclipse.core.runtime.IPath project) |
void |
setMirrorId(String mirrorId) |
void |
setMirrorOf(String mirrorOf) |
String |
toString()
Human readable repository identifier
|
public RepositoryInfo(String id, String repositoryUrl, int scope, org.apache.maven.wagon.authentication.AuthenticationInfo authInfo)
public org.apache.maven.wagon.authentication.AuthenticationInfo getAuthenticationInfo()
IRepository
getAuthenticationInfo
in interface IRepository
public String getUrl()
IRepository
getUrl
in interface IRepository
public String getId()
IRepository
getId
in interface IRepository
public String getMirrorId()
IRepository
getMirrorId
in interface IRepository
public String getMirrorOf()
IRepository
getMirrorOf
in interface IRepository
public void setMirrorOf(String mirrorOf)
public void setMirrorId(String mirrorId)
public Set<org.eclipse.core.runtime.IPath> getProjects()
public void addProject(org.eclipse.core.runtime.IPath project)
public void removeProject(org.eclipse.core.runtime.IPath project)
public String getUid()
IRepository
getUid
in interface IRepository
public String getProtocol()
IRepository
getProtocol
in interface IRepository
public File getBasedir()
IRepository
getBasedir
in interface IRepository
public boolean isScope(int scope)
isScope
in interface IRepository
public String toString()
IRepository
toString
in interface IRepository
toString
in class Object
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.