|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.repository.RepositoryCloner
public class RepositoryCloner
Class used for cloning repository.
Constructor Summary | |
---|---|
RepositoryCloner(java.lang.String url)
Initialize cloner with source repository configuration loaded from default and destination repository cloner loaded from url. |
Method Summary | |
---|---|
void |
clone(java.lang.String uris,
boolean seekDeps,
boolean dryRun)
Clones source repository into destination repository. |
void |
cloneEntity(java.lang.String name,
java.lang.String oldVersion,
java.lang.String newVersion)
Creates a copy of VersionedEntity in source repository with specified new version. |
static void |
main(java.lang.String[] args)
Standard entry point of cloner. |
void |
mergeEntity(java.lang.String name,
java.lang.String version)
Merges specified VersionedEntity back to the source repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryCloner(java.lang.String url) throws java.io.IOException
url
- Destination repository configuration file.
java.io.IOException
Method Detail |
---|
public static void main(java.lang.String[] args)
args
- Three arguments must be on input. Otherwise info si printed to error log.public void mergeEntity(java.lang.String name, java.lang.String version) throws RepositoryClonerException
name
- Name of VersionedEntityversion
- String representation of Version of VersionedEntity
RepositoryClonerException
public void cloneEntity(java.lang.String name, java.lang.String oldVersion, java.lang.String newVersion) throws RepositoryClonerException
name
- Name of VersionedEntityoldVersion
- Version of VersionedEntity in source repositorynewVersion
- Version of copy of VersionedEntity in destination repository
RepositoryClonerException
public void clone(java.lang.String uris, boolean seekDeps, boolean dryRun) throws RepositoryClonerException
uris
- VersionedEntities with name and version suiting to these URIs are clonedseekDeps
- Seek dependencies hierarchically?dryRun
- Don't clone anything, only print, what should be cloned.
RepositoryClonerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |