Project

General

Profile

Building » History » Version 10

Sergey Smolov, 01/11/2020 04:34 PM

1 1 Sergey Smolov
h1. Building
2
3 9 Sergey Smolov
The project build system is based on "Gradle":http://gradle.org/. Please either install it first or use wrapper script (we use "Gradle 4.10.3":https://docs.gradle.org/4.10.3/release-notes.html in the wrapper, by the way).
4 10 Sergey Smolov
For Windows OS @gradlew.bat@ script should be used, for Linux-based OS @gradlew@ script should be used.
5 1 Sergey Smolov
6 8 Sergey Smolov
h2. From command line
7 1 Sergey Smolov
8
To compile main classes run:
9
<pre>
10
gradle classes
11
</pre>
12
To compile testClasses run:
13
<pre>
14
gradle testClasses
15
</pre>
16
To run all unit tests run:
17
<pre>
18
gradle test
19
</pre>
20
To list all Gradle commands run:
21
<pre>
22
gradle tasks
23
</pre>
24
25 10 Sergey Smolov
h2. From "Eclipse IDE":https://www.eclipse.org/ide/
26 1 Sergey Smolov
27 10 Sergey Smolov
* Generate the Eclipse IDE project and classpath files with "Gradle":https://gradle.org:
28
  <pre>$ ./gradlew eclipse</pre>
29
* Create a workspace located in the directory with @retrascope@
30
  - Use the menu item @File/Switch Workspace...@
31
  - Browse the directory
32
* Import an existing project called @retrascope@ into the workspace
33
  - Use the menu item @File/Import...@
34
  - Choose @General/Existing Projects into Workspace@
35
  - Select the @retrascope@ folder as the root directory
36
  - Select the @retrascope@ project located in this directory
37
  - Press the @Finish@ button
38 8 Sergey Smolov
39 10 Sergey Smolov
h2. From "IntelliJ IDEA":https://www.jetbrains.com/idea/
40 8 Sergey Smolov
41
# Use the "Import Project" menu item.
42 10 Sergey Smolov
# Select the @retrascope@ directory, press "OK".
43 8 Sergey Smolov
# Select "Import project from external model" -> "Gradle" item, press "Finish".