[josm-dev] Publishing a plugin with external dependency

2011-03-07 Thread M S
I have written a plugin displaying GeoTiff images in JOSM and am thinking
about publishing it.
But since it depends on JNI bindings to GDAL/OGR (http://gdal.org) I am
slightly confused what the best way would be to do that.
Should I bundle just the Java part with the plugin and rely on the user to
get the right native jars?
Only set the class path in the manifest and bundle nothing? Maybe even
download the correct version if it not already present?

The code resides on github for now:
https://github.com/mostlyuseful/josm-geotiffovl

Any advice welcome.

Sincerely, MP Sonnemann
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Publishing a plugin with external dependency

2011-03-07 Thread Matthias Meißer
For my plugin (Videomapping) I decided to bundle all external jars. Even 
this isn't that nice from a package management view, it is the easiest 
way to deploy it with less troubles on versioning etc. I guess 
autoupdating isn't nescessary cause the release cycles of OSM are pretty 
short. But I'm not that experiencend in the deployment stuff.


bye
Matthias

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Publishing a plugin with external dependency

2011-03-07 Thread Frederik Ramm

Hi,

M S wrote:

I have written a plugin displaying GeoTiff images in JOSM and am thinking
about publishing it.


Does the ImportImage plugin not do that already - or if it doesn't, 
could it maybe be extended instead of adding a new plugin? I think 
ImportImage already depends on a sh*tload of external projection 
libraries which are bundled with the plugin.


Bye
Frederik

--
Frederik Ramm  ##  eMail frede...@remote.org  ##  N49°00'09 E008°23'33

___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev


Re: [josm-dev] Publishing a plugin with external dependency

2011-03-07 Thread M S
Hi,

M S wrote:

 I have written a plugin displaying GeoTiff images in JOSM and am thinking
 about publishing it.


 Does the ImportImage plugin not do that already - or if it doesn't, could
 it maybe be extended instead of adding a new plugin? I think ImportImage
 already depends on a sh*tload of external projection libraries which are
 bundled with the plugin.


ImportImage does not work at all for me. Either it throws uncatched
exceptions or it displays (properly referenced) GeoTiffs at the wrong place
with the wrong scale or not at all. After looking through its source I
figured it would be much easier to start from scratch.
With my current knowledge of the source of ImportImage I am not sure how
long it would take to extend (slash fix) it.
___
josm-dev mailing list
josm-dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/josm-dev