Changes between Version 66 and Version 67 of DevelopersGuide/DevelopingPlugins


Ignore:
Timestamp:
2014-09-26T21:50:11+02:00 (11 years ago)
Author:
bastiK
Comment:

update

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/DevelopingPlugins

    v66 v67  
    1010 * Check out the plugin environment into an empty directory called {{{josm}}}
    1111{{{
    12 svn co http://svn.openstreetmap.org/applications/editors/josm josm
     12svn co http://svn.openstreetmap.org/applications/editors/josm
    1313}}}
    1414 * create a new plugin-directory {{{josm/plugins/yourpluginname}}}. You may create a copy of the template directory [http://svn.openstreetmap.org/applications/editors/josm/plugins/00_plugin_dir_template/ 00_plugin_dir_template]. It includes a directory layout, a [http://svn.openstreetmap.org/applications/editors/josm/plugins/00_plugin_dir_template/LICENSE license file] and a template for the [http://svn.openstreetmap.org/applications/editors/josm/plugins/00_plugin_dir_template/build.xml build.xml].
    1515 * Open the ant script ({{{build.xml}}}) in your plugin directory and configure the properties in the configuration section.  The important thing of your build script is, that it places some attributes into the {{{MANIFEST.MF}}} of the jar file. See below. {{{build.xml}}} in the template directory takes care of this.
    1616 * [http://svn.openstreetmap.org/applications/editors/josm/plugins/00_plugin_dir_template/README.template This readme] explains how your plugin is built and made available to other JOSM users.
    17  * Also note, that JOSM is compiled into Java6 compatible class files, so if you are using Java7, specify "-target 1.6" as parameter to javac or your plugin will not be usable with the official josm builds.
    18  * If you need other OSM resources you can check out the complete osm - trunk: {{{svn co http://svn.openstreetmap.org/}}}
     17
     18== Building JOSM core ==
     19
     20A binary version of JOSM core is required for building a plugin. This is how you compile it yourself:
     21{{{
     22cd josm/core
     23ant
     24}}}
     25It will create the file `josm/core/dist/josm-custom.jar`. Alternatively you download a release (latest or tested) and move the .jar file to this location.
    1926
    2027== Building ==