summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/pom.xml
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.pgm/pom.xml
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.pgm/pom.xml')
-rw-r--r--org.eclipse.jgit.pgm/pom.xml10
1 files changed, 3 insertions, 7 deletions
diff --git a/org.eclipse.jgit.pgm/pom.xml b/org.eclipse.jgit.pgm/pom.xml
index fe1c3b2a15..40adc7a410 100644
--- a/org.eclipse.jgit.pgm/pom.xml
+++ b/org.eclipse.jgit.pgm/pom.xml
@@ -72,8 +72,9 @@
</dependency>
<dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-compress</artifactId>
+ <groupId>org.eclipse.jgit</groupId>
+ <artifactId>org.eclipse.jgit.archive</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
@@ -87,11 +88,6 @@
<artifactId>org.eclipse.jgit.ui</artifactId>
<version>${project.version}</version>
</dependency>
-
- <dependency>
- <groupId>org.osgi</groupId>
- <artifactId>org.osgi.core</artifactId>
- </dependency>
</dependencies>
<profiles>