Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » 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 crashtuaFriend
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 SohnFriend
Messages: 1268
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 crashtuaFriend
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 Mar 19 09:35:59 GMT 2024

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

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

Back to the top