Changes between Version 11 and Version 12 of DevelopersGuide/CompilingUsingIntelliJ


Ignore:
Timestamp:
2020-02-02T19:41:17+01:00 (5 years ago)
Author:
hiddewie
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/CompilingUsingIntelliJ

    v11 v12  
    39391. Click the `Run` (play) button. The project should build again, and then run. [[BR]] [[Image(intellij-start-from-sources (23).png, 400)]]
    4040
    41 1.
    42 1. Run ant in the source directory to obtain a `josm-custom.jar` → [[Source code#CompilingusingAnt]]
    43 1. In IntelliJ: File → New → Project from Existing Sources
    44   1. Navigate to the JOSM source code [[BR]] [[Image(intellij-from-sources-01.png)]]
    45   1. [[Image(intellij-from-sources-02.png)]]
    46   1. [[Image(intellij-from-sources-03.png)]]
    47   1. [[Image(intellij-from-sources-04.png)]]
    48   1. [[Image(intellij-from-sources-05.png)]]
    49 1. File → Project Structure
    50   * Modules → Sources: Exclude the directory `src/org/apache` [[BR]] [[Image(intellij-exclude-apache.png)]]
    51   * Modules → Dependencies: Make sure that `josm-custom` (i.e., the file generated by Ant is listed)
    52   * Modules → Dependencies: Add Groovy (you might need to configure that at "Global Libraries") [[BR]] [[Image(intellij-add-groovy.png)]]
    53 1. Run → Edit Configuration
    54   * Add an "Application" configuration [[BR]] [[Image(intellij-run-configuration.png)]]
     41== Running the tests ==
    5542
    56 Whenever presets, images, styles, or parser definitions change, re-run Ant in order to have those modifications included in `josm-custom.jar`.
    57 
    58 This is a bit hackish, but works nicely. ☻
     431. Open the `Ant` tool window. Run the `test` task. [[BR]] [[Image(intellij-test.png.png, 400)]]
    5944
    6045= Additional settings =
     46
    6147This section describes helpful additional settings for IntelliJ IDEA.
    6248