]> source.dussan.org Git - jgit.git/commit
OSGi: move plugin localization to subdirectory 99/204299/1
authorThomas Wolf <twolf@apache.org>
Mon, 11 Sep 2023 18:58:15 +0000 (20:58 +0200)
committerThomas Wolf <twolf@apache.org>
Tue, 12 Sep 2023 18:27:59 +0000 (20:27 +0200)
commite3798df6e810ab08d821f158e83fe0fd3fd0eb18
treec9e4f6fd4fc5aaede9754bd394a157b3784489f9
parent82c6638c72cd9525bab94b02438c167747132be9
OSGi: move plugin localization to subdirectory

OSGi can have its plugin localization at an arbitrary place; there is
no need to have it in a top-level plugin.properties file. In non-OSGi
environments having the files at the root level may mean that these
files clash with each other, or, as in the referenced bug, with some
third-party plug-in's plugin.properties, which may not even have
anything to do with localization.

Move our OSGi localization to a subfolder OSGI-INF/l10n. For OSGi
environments, that's just as good, and for non-OSGi environments it
avoid clashes with other root level items on the classpath or in a fat
JAR.

For fragments, use neither plugin.properties (which would clash with the
host plug-in's plugin.properties) nor fragment.properties (which might
clash with other fragments for the same fragment host bundle). Instead
use names "relative" to the host bundle.

Bug: 582394
Change-Id: Ifbcd046d912e2cfe86c0f7259c5ca8de599d9aa1
Signed-off-by: Thomas Wolf <twolf@apache.org>
65 files changed:
org.eclipse.jgit.ant/META-INF/MANIFEST.MF
org.eclipse.jgit.ant/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.ant/build.properties
org.eclipse.jgit.ant/plugin.properties [deleted file]
org.eclipse.jgit.archive/META-INF/MANIFEST.MF
org.eclipse.jgit.archive/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.archive/build.properties
org.eclipse.jgit.archive/plugin.properties [deleted file]
org.eclipse.jgit.gpg.bc/META-INF/MANIFEST.MF
org.eclipse.jgit.gpg.bc/OSGI-INF/l10n/gpg_bc.properties [new file with mode: 0644]
org.eclipse.jgit.gpg.bc/build.properties
org.eclipse.jgit.gpg.bc/plugin.properties [deleted file]
org.eclipse.jgit.http.apache/META-INF/MANIFEST.MF
org.eclipse.jgit.http.apache/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.http.apache/build.properties
org.eclipse.jgit.http.apache/plugin.properties [deleted file]
org.eclipse.jgit.http.server/META-INF/MANIFEST.MF
org.eclipse.jgit.http.server/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.http.server/build.properties
org.eclipse.jgit.http.server/plugin.properties [deleted file]
org.eclipse.jgit.junit.http/META-INF/MANIFEST.MF
org.eclipse.jgit.junit.http/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.junit.http/build.properties
org.eclipse.jgit.junit.http/plugin.properties [deleted file]
org.eclipse.jgit.junit.ssh/META-INF/MANIFEST.MF
org.eclipse.jgit.junit.ssh/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.junit.ssh/build.properties
org.eclipse.jgit.junit.ssh/plugin.properties [deleted file]
org.eclipse.jgit.junit/META-INF/MANIFEST.MF
org.eclipse.jgit.junit/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.junit/build.properties
org.eclipse.jgit.junit/plugin.properties [deleted file]
org.eclipse.jgit.lfs.server/META-INF/MANIFEST.MF
org.eclipse.jgit.lfs.server/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.lfs.server/build.properties
org.eclipse.jgit.lfs.server/plugin.properties [deleted file]
org.eclipse.jgit.lfs/META-INF/MANIFEST.MF
org.eclipse.jgit.lfs/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.lfs/build.properties
org.eclipse.jgit.lfs/plugin.properties [deleted file]
org.eclipse.jgit.pgm/META-INF/MANIFEST.MF
org.eclipse.jgit.pgm/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.pgm/build.properties
org.eclipse.jgit.pgm/plugin.properties [deleted file]
org.eclipse.jgit.ssh.apache.agent/META-INF/MANIFEST.MF
org.eclipse.jgit.ssh.apache.agent/OSGI-INF/l10n/agent.properties [new file with mode: 0644]
org.eclipse.jgit.ssh.apache.agent/build.properties
org.eclipse.jgit.ssh.apache.agent/plugin.properties [deleted file]
org.eclipse.jgit.ssh.apache/META-INF/MANIFEST.MF
org.eclipse.jgit.ssh.apache/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.ssh.apache/build.properties
org.eclipse.jgit.ssh.apache/plugin.properties [deleted file]
org.eclipse.jgit.ssh.jsch/META-INF/MANIFEST.MF
org.eclipse.jgit.ssh.jsch/OSGI-INF/l10n/jsch.properties [new file with mode: 0644]
org.eclipse.jgit.ssh.jsch/build.properties
org.eclipse.jgit.ssh.jsch/plugin.properties [deleted file]
org.eclipse.jgit.ui/META-INF/MANIFEST.MF
org.eclipse.jgit.ui/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit.ui/build.properties
org.eclipse.jgit.ui/plugin.properties [deleted file]
org.eclipse.jgit/META-INF/MANIFEST.MF
org.eclipse.jgit/OSGI-INF/l10n/plugin.properties [new file with mode: 0644]
org.eclipse.jgit/build.properties
org.eclipse.jgit/plugin.properties [deleted file]
pom.xml