summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.archive/plugin.properties
diff options
context:
space:
mode:
authorJonathan Nieder <jrn@google.com>2013-05-24 17:30:18 -0700
committerJonathan Nieder <jrn@google.com>2013-05-24 17:30:18 -0700
commit56276d053f44209f25951d3acfba226c563a81f0 (patch)
tree9eb091e509cf57eefd22d8b099438757d9510b56 /org.eclipse.jgit.archive/plugin.properties
parenta544ff72dbf62671d2530f4cfca0e8f9dd693d78 (diff)
downloadjgit-56276d053f44209f25951d3acfba226c563a81f0.tar.gz
jgit-56276d053f44209f25951d3acfba226c563a81f0.zip
Move ArchiveCommand into standard porcelain API
Allow use of ArchiveCommand without depending on the jgit command-line tools. To avoid complicating the process of installing and upgrading JGit, this does not add a dependency by the org.eclipse.jgit bundle on commons-compress. Instead, the caller is responsible for registering any formats they want to use by calling ArchiveCommand.registerFormat. This patch puts functionality that requires an archiver into a separate org.eclipse.jgit.archive bundle for people who want it. One can use it by calling ArchiveCommand.registerFormat directly to register its formats or by relying on OSGi class loading to load org.eclipse.jgit.archive.FormatActivator, which takes care of registration automatically. Once the appropriate formats are registered, you can make a tar or zip from a git tree object as follows: ArchiveCommand cmd = git.archive(); try { cmd.setTree(tree).setFormat(fmt).setOutputStream(out).call(); } finally { cmd.release(); } Change-Id: I418e7e7d76422dc6f010d0b3b624d7bec3b20c6e
Diffstat (limited to 'org.eclipse.jgit.archive/plugin.properties')
-rw-r--r--org.eclipse.jgit.archive/plugin.properties2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.archive/plugin.properties b/org.eclipse.jgit.archive/plugin.properties
new file mode 100644
index 0000000000..f4269b7c55
--- /dev/null
+++ b/org.eclipse.jgit.archive/plugin.properties
@@ -0,0 +1,2 @@
+plugin_name=JGit Archive Formats
+provider_name=Eclipse JGit