[josm-dev] JOSM, plugins and Eclipse (was: Patch for sorting members in the relation editor)

Bodo Meissner bodo at bodo-m.de
Sat Aug 16 23:37:24 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Robin Rattay wrote, on 16.08.2008 21:21:
|
| I haven't found a way to debug a plug-in yet. Does anyone know how you
| do that with Eclipse?

I once got this hint from Frederik:

I added all the plugins I want to use (and debug) to JOSM (no need to
run it from Eclipse) using the normal plugin configuration stuff.

Then I checked out the JOSM project and plugin projects to the Eclipse
workspace.

To build the plugins with the .jar files created by the JOSM project in
Eclipse, I added the JOSM project to the plugin's build classpath.

To make JOSM use the plugins from the Eclipse workspace instead of the
.jar files from the plugin directory, I created a run configuration for
JOSM (with main class org.openstreetmap.josm.gui.MainApplication) and
added all plugin projects to "User Entries" with the "Add Projects" button.


Though I don't know what is the best way to build the plugins from Eclipse:

The first possibility is to checkout the whole tree from
svn.openstreetmap.org using Subclipse. With this I don't get project
configurations for the plugins and cannot build plugins inside Eclipse.
Running the ant scripts directly might work. When I import the
individual plugin projects from this tree I can build the plugins inside
Eclipse and the .jar files will be created in the correct directories,
but I cannot use the team functions in these plugin projects. (I have to
switch to the full OSM tree to use team functions.)

The second possibility is to checkout the individual plugin subtrees
from svn.openstreetmap.org. Eclipse finds project configurations for the
plugins automatically and I can build the plugins and use the team
functions, but the .jar files will be located outside the project tree
because of "../../dist" in the build scripts.


Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkinVqQACgkQnMz9fgzDSqcQFACfaIIx03x3Fk+u3S6t37I1kewM
RWMAmgM214sJ5zVpGWKmdEatHYbUe4tl
=2CBf
-----END PGP SIGNATURE-----




More information about the josm-dev mailing list