Opened 15 years ago
Closed 15 years ago
#5251 closed defect (fixed)
JOSM ignores manifest in plugin jars
Reported by: | bilbo | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
I have discovered that JOSM refused to load undelete plugin - I found out, that there is bad main class (Undelete.Undelete) specified in the plugin manifest, while it should be "org.openstreetmap.josm.plugins.undelete.Undelete"
I fixed the Plugin-Class: in the manifest, but then I got still the same message, that "Undelete.Undelete" cannot be found!
I found out the Plugin-Class: is also present in local file (cached) in the JOSM settings directory: 0-site-http_josm.openstreetmap.de_plugin.txt
Once I deleted the Plugin-Class: from that file, I received no more errors at JOSM startup.
I think the Plugin-Class attribute should be taken only from the plugin .jar and not from the list of plugins, as local version of plugin may differ from what is in the list and the main class (and perhaps other attributes too) may be different.
This bug is quite annoying, as you need to manually fix the local copy of the plugin list after every update of the plugin list.
(In [o22365] - fix main class)