public class MirrorTool extends java.lang.Object implements MirrorToolListener
| Modifier and Type | Class and Description |
|---|---|
static class |
MirrorTool.MirrorToolsJob |
static class |
MirrorTool.P2DownloadType |
| Constructor and Description |
|---|
MirrorTool() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
mirrorDebugger()
Mirror a P2 repository for debug purposes.
|
static void |
mirrorP2Repository(MirrorTool.P2DownloadType downloadType,
java.lang.String sourceLocation,
java.lang.String destinationDirectory,
MirrorToolListener listener)
Mirrors the specified P2 repositories metadata or artifacts to the destination directory.
|
static void |
mirrorProjectRepository(java.lang.String sourceLocation,
java.lang.String destinationDirectory,
MirrorToolListener listener)
Mirror project repository.
|
void |
onMirroringFinaliized(MirrorTool.MirrorToolsJob job,
boolean successful)
On mirroring finalized will be invoked if a mirroring is done.
|
protected void mirrorDebugger()
public void onMirroringFinaliized(MirrorTool.MirrorToolsJob job, boolean successful)
MirrorToolListeneronMirroringFinaliized in interface MirrorToolListenerjob - the job that was executedsuccessful - true, if the mirroring was successfulpublic static void mirrorProjectRepository(java.lang.String sourceLocation,
java.lang.String destinationDirectory,
MirrorToolListener listener)
sourceLocation - the source locationdestinationDirectory - the destination directorylistener - the MirrorToolListener to inform after the procedurepublic static void mirrorP2Repository(MirrorTool.P2DownloadType downloadType, java.lang.String sourceLocation, java.lang.String destinationDirectory, MirrorToolListener listener)
downloadType - the download typesourceLocation - the source locationdestinationDirectory - the destination directorylistener - the MirrorToolListener to inform after the procedure