public class GitCloner extends Object
| Constructor and Description |
|---|
GitCloner() |
| Modifier and Type | Method and Description |
|---|---|
static String |
cloneRepository(String uri,
String destDir,
boolean shortPath)
Clone Git repository (git protocol, eg. github or gitlab)
|
public static String cloneRepository(String uri, String destDir, boolean shortPath) throws IOException
uri - The clone URI (generally https://)destDir - The destination directoryshortPath - If true, project dir name is determined by the ".git" part of the URI. If false, it is the full URI path.IOExceptionCopyright © 2020 OW2. All Rights Reserved.