| 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)]] |
| 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)]] |
| | 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, 400)]] |
| | 23 | 1. IntelliJ will index the project. [[BR]] [[Image(intellij-start-from-sources (10).png, 400)]] |
| | 24 | 1. Open the `Ant` tool window. It contains no configuration yet. [[BR]] [[Image(intellij-start-from-sources (11).png, 400)]] |
| | 25 | 1. Click the `+` button to add an Ant configuration file. Select the file `build.xml` [[BR]] [[Image(intellij-start-from-sources (12).png, 400)]] |
| | 26 | 1. The Ant tool window should now list Ant tasks. [[BR]] [[Image(intellij-start-from-sources (13).png, 400)]] |
| | 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-start-from-sources (14).png, 400)]] |
| | 28 | 1. There should now be a built file: `dist/josm-custom.jar`. [[BR]] [[Image(intellij-start-from-sources (15).png, 400)]] |
| 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)]] |
| | 32 | 1. There are no run configurations configured. Click `Add configuration`. [[BR]] [[Image(intellij-start-from-sources (16).png, 400)]] |
| | 33 | 1. Click the `+` button to add a new `JAR Application` configuration. [[BR]] [[Image(intellij-start-from-sources (17).png, 400)]] |
| | 34 | 1. Give the new configuration a name. [[BR]] [[Image(intellij-start-from-sources (18).png, 400)]] |
| | 35 | 1. In the field `Path to JAR`, choose the built Jar file. [[BR]] [[Image(intellij-start-from-sources (19).png, 400)]] |
| | 36 | 1. Add a `Before launch` configuration item, `Run Ant target`. [[BR]] [[Image(intellij-start-from-sources (20).png, 400)]] |
| | 37 | 1. A window will popup with all the available Ant tasks. Choose `dist`. [[BR]] [[Image(intellij-start-from-sources (21).png, 400)]] |
| | 38 | 1. The configuration should now be ready and selected in the project. [[BR]] [[Image(intellij-start-from-sources (22).png, 400)]] |
| | 39 | 1. Click the `Run` (play) button. The project should build again, and then run. [[BR]] [[Image(intellij-start-from-sources (23).png, 400)]] |