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()
IRepositorygetAuthenticationInfo in interface IRepositorypublic String getUrl()
IRepositorygetUrl in interface IRepositorypublic String getId()
IRepositorygetId in interface IRepositorypublic String getMirrorId()
IRepositorygetMirrorId in interface IRepositorypublic String getMirrorOf()
IRepositorygetMirrorOf in interface IRepositorypublic 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()
IRepositorygetUid in interface IRepositorypublic String getProtocol()
IRepositorygetProtocol in interface IRepositorypublic File getBasedir()
IRepositorygetBasedir in interface IRepositorypublic boolean isScope(int scope)
isScope in interface IRepositorypublic String toString()
IRepositorytoString in interface IRepositorytoString in class ObjectCopyright © 2005–2021 Eclipse Foundation. All rights reserved.