public abstract class ScmProviderRepository extends Object
Constructor and Description |
---|
ScmProviderRepository() |
Modifier and Type | Method and Description |
---|---|
ScmProviderRepository |
getParent()
Get a
ScmProviderRepository that represents the parent folder in the repository. |
String |
getPassword() |
String |
getRelativePath(ScmProviderRepository ancestor)
Get the relative path between the repository provided as argument and the current repository.
|
String |
getUser() |
String |
getWorkItem()
Deprecated.
|
boolean |
isPersistCheckout()
Deprecated.
|
boolean |
isPushChanges()
Should distributed changes be pushed to the central repository?
For many distributed SCMs like Git, a change like a commit
is only stored in your local copy of the repository.
|
void |
setPassword(String password)
Set the password.
|
void |
setPersistCheckout(boolean persistCheckout)
Deprecated.
|
void |
setPushChanges(boolean pushChanges) |
void |
setUser(String user)
Set the user.
|
void |
setWorkItem(String workItem)
Deprecated.
|
public ScmProviderRepository()
public String getPassword()
public void setPassword(String password)
password
- The user passwordpublic boolean isPushChanges()
public void setPushChanges(boolean pushChanges)
pushChanges
- TODO@Deprecated public String getWorkItem()
@Deprecated public void setWorkItem(String workItem)
workItem
- The workItem.@Deprecated public boolean isPersistCheckout()
This setting can be overriden by using the system property "maven.scm.persistcheckout" to true.
The default is false. See SCM-113 for more detail.
@Deprecated public void setPersistCheckout(boolean persistCheckout)
public ScmProviderRepository getParent()
ScmProviderRepository
that represents the parent folder in the repository.
Useful when the repository does not exist yet and we need to create it from the parent.UnsupportedOperationException
- unless overridden by subclasspublic String getRelativePath(ScmProviderRepository ancestor)
ancestor
- another repository that should be ancestor of this onenull
if it can't be resolvedUnsupportedOperationException
- unless overridden by subclassCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.