|
|
Re: CloneCommand doesnt extrtact downloaded files [message #759727 is a reply to message #759712] |
Tue, 29 November 2011 13:58  |
Eclipse User |
|
|
|
I looked through org.eclipse.jgit.api.CloneCommandTest but there was many code that i dont understand. Here is my code, what i missed? static private String uri="git://github.com/CyanogenMod/android_packages_apps_Bluetooth";
static private File destination=new File("C:\\androidsources\\packages\\apps\\Bluetooth");
static private boolean bare=false;
static private String branch = "gingerbread";
/**
* @param args
*/
public static void main(String[] args) {
destination.mkdir();
CloneCommand clone = Git.cloneRepository();
try {
clone.setURI(uri).setDirectory(destination).setBranch(branch).setBare(bare);
clone.call();
} catch (RuntimeException e) {
System.out.println(e.toString());
}
}
|
|
|
Powered by
FUDForum. Page generated in 0.03989 seconds