Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » CloneCommand doesnt extrtact downloaded files
CloneCommand doesnt extrtact downloaded files [message #759682] Tue, 29 November 2011 10:27 Go to next message
crashtua is currently offline crashtua
Messages: 2
Registered: November 2011
Junior Member
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
Matthias Sohn is currently offline Matthias Sohn
Messages: 556
Registered: July 2009
Senior Member
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
crashtua is currently offline crashtua
Messages: 2
Registered: November 2011
Junior Member
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: Sat Aug 23 05:32:05 EDT 2014

Powered by FUDForum. Page generated in 0.11972 seconds