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 15: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 17:28 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 580
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 18: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: Tue Sep 30 15:51:15 GMT 2014

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

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