Building » History » Version 1
Sergey Smolov, 10/22/2015 05:23 PM
1 | 1 | Sergey Smolov | h1. Building |
---|---|---|---|
2 | |||
3 | For HDL Retrascope building and JUnit tests we use "Gradle":http://gradle.org/. Please install it first. |
||
4 | |||
5 | h2. Building and running HDL Retrascope from command line |
||
6 | |||
7 | To compile main classes run: |
||
8 | <pre> |
||
9 | gradle classes |
||
10 | </pre> |
||
11 | |||
12 | To compile testClasses run: |
||
13 | <pre> |
||
14 | gradle testClasses |
||
15 | </pre> |
||
16 | |||
17 | To run all unit tests run: |
||
18 | <pre> |
||
19 | gradle test |
||
20 | </pre> |
||
21 | |||
22 | To list all Gradle commands run: |
||
23 | <pre> |
||
24 | gradle tasks |
||
25 | </pre> |
||
26 | |||
27 | h2. Building and running HDL Retrascope from Eclipse IDE |
||
28 | |||
29 | # Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE. |
||
30 | # Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it: |
||
31 | <pre> |
||
32 | allprojects |
||
33 | { |
||
34 | apply plugin: ''eclipse'' |
||
35 | |||
36 | it.eclipse |
||
37 | { |
||
38 | classpath.downloadJavadoc = true//для удобства |
||
39 | } |
||
40 | } |
||
41 | </pre> |
||
42 | # Import Retrascope sources into Eclipse workspace: |
||
43 | * Use the menu item "File/Import...". |
||
44 | * Choose "Gradle/Gradle Project". |
||
45 | * Select the "<retrascope>/trunk/retrascope" directory as the root directory, press "Next". |
||
46 | * Select the "Gradle wrapper (recommended)" import option. |
||
47 | * Press the "Finish" button: the project will be opened in the Eclipse IDE. |