wiki:DevelopersGuide/CompilingUsingIntelliJ

Version 2 (modified by simon04, 8 years ago) ( diff )

--

This describes how to develop and compile JOSM using IntelliJ IDEA

  1. Getting the source Source → Download#Source
  2. Run ant in the source directory to obtain a josm-custom.jarDevelopersGuide/Compiling#CompilingusingAnt
  3. In IntelliJ: File → New → Project from Existing Sources
    1. Navigate to the JOSM source code
  4. File → Project Structure
    • Modules → Sources: Exclude the directory src/org/apache
    • Modules → Dependencies: Make sure that josm-custom (i.e., the file generated by Ant is listed)
    • Modules → Dependencies: Add Groovy (you might need to configure that at "Global Libraries")
  5. Run → Edit Configuration
    • Add an "Application" configuration

Whenever presets, images, styles, or parser definitions change, re-run Ant in order to have those modifications included in josm-custom.jar.

This is a bit hackish, but works nicely. ☻

Attachments (44)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.