Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » CloneCommand doesnt extrtact downloaded files
CloneCommand doesnt extrtact downloaded files [message #759682] Tue, 29 November 2011 10:27 Go to next message
Eclipse UserFriend
Hello. I use CloneCommand to clone git repo. It downloads packs, but doesnt extract them. What I missed?
Re: CloneCommand doesnt extrtact downloaded files [message #759712 is a reply to message #759682] Tue, 29 November 2011 12:28 Go to previous messageGo to next message
Eclipse UserFriend
Look at org.eclipse.jgit.api.CloneCommandTest, maybe this helps to find out what you are missing ?
Re: CloneCommand doesnt extrtact downloaded files [message #759727 is a reply to message #759712] Tue, 29 November 2011 13:58 Go to previous message
Eclipse UserFriend
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());
		}
	}
Previous Topic:Collaboration and excluding files
Next Topic:When to Use setCredentialsProvider
Goto Forum:
  


Current Time: Wed Jun 18 21:33:40 EDT 2025

Powered by FUDForum. Page generated in 0.03989 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top