[josm-dev] How external plugins are added to plugin list

Paul Hartmann phaaurlt at googlemail.com
Mon Feb 27 18:13:36 GMT 2012


On 02/27/2012 06:25 PM, Josh Doe wrote:
> On Mon, Feb 27, 2012 at 11:49 AM, Dirk Stöcker
> <openstreetmap at dstoecker.de> wrote:
>> On Mon, 27 Feb 2012, Josh Doe wrote:
>>
>>> I can't seem to find how the plugin list [0] is generated,
>>> specifically how "external plugins" are added to this list. Presumably
>>> there is some script which generates that file, which I can't find.
>>> I'd like to move my work-in-progress conflation plugin out of SVN and
>>> onto Github, but don't understand how I would add it to the plugin
>>> list. Currently I see four such external plugins.
>>> -Josh
>>>
>>> [0]: http://josm.openstreetmap.de/plugin
>>
>>
>> http://josm.openstreetmap.de/wiki/Plugins
>>
>> You should be aware of the drawbacks:
>> a) Plugin is marked as "bad external" in JOSM
>> b) It is not translated
>> c) Core changes aren't incorporated into it when they appear
>> d) Shortcuts won't be listed in overview and thus also very likely be used
>>   by others very fast.
>> e) There is no automatic history handling for older JOSM versions.
> 
> Those are certainly drawbacks to consider. I've added a section on the
> wiki regarding this:
> https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins#Publishingaplugin
> 
> What script generates the plugin list? And since there are previous
> versions for two of the external plugins, I take it that you're
> updating that by hand?

It is possible to have history handling for external plugins, but you
have to care for it yourself. This is done by adding information for
previous versions in the Manifest. See
https://github.com/Gubaer/josm-scripting-plugin for an example.

Paul



More information about the josm-dev mailing list