Project

General

Profile

Building » History » Revision 3

Revision 2 (Sergey Smolov, 11/17/2015 04:19 PM) → Revision 3/16 (Sergey Smolov, 12/14/2015 04:23 PM)

h1. Building 

 For HDL Retrascope building and JUnit tests running we use "Gradle":http://gradle.org/. Please install it first. 

 h2. Building and running HDL Retrascope from command line 

 To compile main classes run: 
 <pre> 
 gradle classes 
 </pre> 

 To compile testClasses run: 
 <pre> 
 gradle testClasses 
 </pre> 

 To run all unit tests run: 
 <pre> 
 gradle test 
 </pre> 

 To list all Gradle commands run: 
 <pre> 
 gradle tasks 
 </pre> 

 h2. Building and running HDL Retrascope from Eclipse IDE 

 # Install "Buildship":https://marketplace.eclipse.org/content/buildship-gradle-integration Gradle integration plugin for Eclipse IDE. 
 # Create @init.gradle@ file in the $HOME/.gradle directory and write the following to it: 
 <pre> 
 allprojects 
 { 
   apply plugin: ''eclipse'' 

   it.eclipse 
   { 
     classpath.downloadJavadoc = true true//для удобства 
   } 
 } 
 </pre> 
 # Import Retrascope sources into Eclipse workspace: 
 * Use the menu item "File/Import...". 
 * Choose "Gradle/Gradle Project". 
 * Select the "<retrascope>/trunk/retrascope" directory as the root directory, press "Next". 
 * Select the "Gradle wrapper (recommended)" import option. 
 * Press the "Finish" button: the project will be opened in the Eclipse IDE.