]> source.dussan.org Git - jgit.git/commit
Remove dependency by ArchiveCommand on archive formats 63/12563/4
authorJonathan Nieder <jrn@google.com>
Fri, 24 May 2013 23:57:10 +0000 (16:57 -0700)
committerJonathan Nieder <jrn@google.com>
Fri, 24 May 2013 23:57:10 +0000 (16:57 -0700)
commita544ff72dbf62671d2530f4cfca0e8f9dd693d78
treea1e218715829d52bf90fe5823b6a0905fb268173
parentcfc15dd9dce2252baad9dc8ce0828203a205c2cf
Remove dependency by ArchiveCommand on archive formats

Provide static registerFormat and unregisterFormat methods to allow
formats to register themselves without the ArchiveCommand code being
aware of them.

Register the basic "zip" and "tar" support at bundle activation time
(and deregister them when unloading the bundle).  For anyone using
this code as an OSGi plugin it should continue to just work.

The jgit program does not load org.eclipse.jgit.pgm as an OSGi bundle,
so let the Archive command register the formats it uses explicitly
with registerFormat.

Change-Id: Id39c03ea6923d0aed8316ed7b6bd04d5ced570a7
org.eclipse.jgit.pgm/META-INF/MANIFEST.MF
org.eclipse.jgit.pgm/pom.xml
org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/ArchiveCommand.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/FormatActivator.java [new file with mode: 0644]
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/TarFormat.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/archive/ZipFormat.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/internal/CLIText.java
pom.xml