Changes between Version 9 and Version 10 of DevelopersGuide/CompilingUsingIntelliJ


Ignore:
Timestamp:
2020-02-02T18:07:46+01:00 (5 years ago)
Author:
hiddewie
Comment:

Add screenshots

Legend:

Unmodified
Added
Removed
Modified
  • DevelopersGuide/CompilingUsingIntelliJ

    v9 v10  
    11111. Import the project into IntelliJ using the menu: `File` → `New` → `Project from Existing Sources`. Follow the wizard:
    1212  1. Navigate to the folder containing the project, and select it.
    13   1. Select `Create Project from existing sources`. [[BR]] [[Image(intellij-start-from-sources (2).png)]]
    14   1. Give the project a name, and click `Next`. [[BR]] [[Image(intellij-start-from-sources (3).png)]]
    15   1. IntelliJ auto-detects the folders which contain source code. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (4).png)]]
    16   1. IntelliJ auto-detects the project libraries. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (5).png)]]
    17   1. IntelliJ auto-detects a number of project modules. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (6).png)]]
    18   1. Select a Java SDK, at least version 8. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (7).png)]]
    19   1. Deselect OSGI automatic configuration. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (8).png)]]
     13  1. Select `Create Project from existing sources`. [[BR]] [[Image(intellij-start-from-sources (2).png, 400)]]
     14  1. Give the project a name, and click `Next`. [[BR]] [[Image(intellij-start-from-sources (3).png, 400)]]
     15  1. IntelliJ auto-detects the folders which contain source code. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (4).png, 400)]]
     16  1. IntelliJ auto-detects the project libraries. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (5).png, 400)]]
     17  1. IntelliJ auto-detects a number of project modules. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (6).png, 400)]]
     18  1. Select a Java SDK, at least version 8. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (7).png, 400)]]
     19  1. Deselect OSGI automatic configuration. Click `Next`. [[BR]] [[Image(intellij-start-from-sources (8).png, 400)]]
    2020== Building the project ==
    2121
    22 1. When you are prompted to add IntelliJ project configuration to Subversion, check the box `Don't ask again`, and click `Cancel`. [[BR]] [[Image(intellij-start-from-sources (9).png)]]
    23 1. IntelliJ will index the project. [[BR]] [[Image(intellij-start-from-sources (10).png)]]
    24 1. Open the `Ant` tool window. It contains no configuration yet. [[BR]] [[Image(intellij-from--01.png)]]
    25 1. Click the `+` button to add an Ant configuration file. Select the file `build.xml` [[BR]] [[Image(intellij-from--01.png)]]
    26 1. The Ant tool window should now list Ant tasks. [[BR]] [[Image(intellij-from--01.png)]]
    27 1. Double click the `dist` task. It will build the project. The `Messages` tool window will show the progress and logging output. [[BR]] [[Image(intellij-from--01.png)]]
    28 1. There should now be a built file: `dist/josm-custom.jar`. [[BR]] [[Image(intellij-from--01.png)]]
     221. When you are prompted to add IntelliJ project configuration to Subversion, check the box `Don't ask again`, and click `Cancel`. [[BR]] [[Image(intellij-start-from-sources (9).png, 400)]]
     231. IntelliJ will index the project. [[BR]] [[Image(intellij-start-from-sources (10).png, 400)]]
     241. Open the `Ant` tool window. It contains no configuration yet. [[BR]] [[Image(intellij-start-from-sources (11).png, 400)]]
     251. Click the `+` button to add an Ant configuration file. Select the file `build.xml` [[BR]] [[Image(intellij-start-from-sources (12).png, 400)]]
     261. The Ant tool window should now list Ant tasks. [[BR]] [[Image(intellij-start-from-sources (13).png, 400)]]
     271. Double click the `dist` task. It will build the project. The `Messages` tool window will show the progress and logging output. [[BR]] [[Image(intellij-start-from-sources (14).png, 400)]]
     281. There should now be a built file: `dist/josm-custom.jar`. [[BR]] [[Image(intellij-start-from-sources (15).png, 400)]]
    2929
    3030== Running the project ==
    3131
    32 1. There are no run configurations configured. Click `Add configuration`. [[BR]] [[Image(intellij-from--01.png)]]
    33 1. Click the `+` button to add a new `JAR Application` configuration. [[BR]] [[Image(intellij-from--01.png)]]
    34 1. Give the new configuration a name. [[BR]] [[Image(intellij-from--01.png)]]
    35 1. In the field `Path to JAR`, choose the built Jar file. [[BR]] [[Image(intellij-from--01.png)]]
    36 1. Add a `Before launch` configuration item, `Run Ant target`. [[BR]] [[Image(intellij-from--01.png)]]
    37 1. A window will popup with all the available Ant tasks. Choose `dist`. [[BR]] [[Image(intellij-from--01.png)]]
    38 1. The configuration should now be ready and selected in the project. [[BR]] [[Image(intellij-from--01.png)]]
    39 1. Click the `Run` (play) button. The project should build again, and then run. [[BR]] [[Image(intellij-from--01.png)]]
     321. There are no run configurations configured. Click `Add configuration`. [[BR]] [[Image(intellij-start-from-sources (16).png, 400)]]
     331. Click the `+` button to add a new `JAR Application` configuration. [[BR]] [[Image(intellij-start-from-sources (17).png, 400)]]
     341. Give the new configuration a name. [[BR]] [[Image(intellij-start-from-sources (18).png, 400)]]
     351. In the field `Path to JAR`, choose the built Jar file. [[BR]] [[Image(intellij-start-from-sources (19).png, 400)]]
     361. Add a `Before launch` configuration item, `Run Ant target`. [[BR]] [[Image(intellij-start-from-sources (20).png, 400)]]
     371. A window will popup with all the available Ant tasks. Choose `dist`. [[BR]] [[Image(intellij-start-from-sources (21).png, 400)]]
     381. The configuration should now be ready and selected in the project. [[BR]] [[Image(intellij-start-from-sources (22).png, 400)]]
     391. Click the `Run` (play) button. The project should build again, and then run. [[BR]] [[Image(intellij-start-from-sources (23).png, 400)]]
    4040
    41411.