diff options
author | Jonathan Nieder <jrn@google.com> | 2013-05-24 16:57:10 -0700 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2013-05-24 16:57:10 -0700 |
commit | a544ff72dbf62671d2530f4cfca0e8f9dd693d78 (patch) | |
tree | a1e218715829d52bf90fe5823b6a0905fb268173 /org.eclipse.jgit.pgm/resources/org | |
parent | cfc15dd9dce2252baad9dc8ce0828203a205c2cf (diff) | |
download | jgit-a544ff72dbf62671d2530f4cfca0e8f9dd693d78.tar.gz jgit-a544ff72dbf62671d2530f4cfca0e8f9dd693d78.zip |
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
Diffstat (limited to 'org.eclipse.jgit.pgm/resources/org')
-rw-r--r-- | org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties b/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties index 3fa167e95a..4a1548134f 100644 --- a/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties +++ b/org.eclipse.jgit.pgm/resources/org/eclipse/jgit/pgm/internal/CLIText.properties @@ -7,6 +7,8 @@ N=N alreadyOnBranch=Already on ''{0}'' alreadyUpToDate=Already up-to-date. +archiveFormatAlreadyRegistered=Archive format already registered: {0} +archiveFormatAlreadyAbsent=Archive format already absent: {0} authorInfo=Author: {0} <{1}> averageMSPerRead=average {0} ms/read branchAlreadyExists=A branch named ''{0}'' already exists. |