Skip to content
Konstantin Zaitcev edited this page Jul 14, 2014 · 11 revisions

Requirements

  • Eclipse SDK 3.7 or above (prefer the latest Eclipse 4.4)
  • Java 7
  • Apache Maven 3
  • Git

Clone the project

Using a git client clone the project by the following command: $ git clone [email protected]:xored/yang-ide.git

Import the projects into Eclipse

  • Open Eclipse IDE
  • Select File->Import... main menu
  • Select Existing Project into Workspace
  • Select root directory to yang-ide
  • Check all eclipse projects from the following locations:
    • yang-ide/plugins
    • yang-ide/features
    • yang-ide/product/target-platform

Configure Eclipse

Set Target Platform

Navigate to the project target-platform, open com.cisco.yangide.target-platform.target, after Eclipse will resolve all dependencies click on "Set as Target Platform"

Set Code Style

  • Select Windows->Preferences in the main menu
  • Navigate to Java->Code Style->Formatter section
  • Click Import... and select yang-ide\product\codeformatter.xml file
  • Navigate Java->Code Style->Code Templates section
  • Click Import... and select yang-ide\product\codetemplates.xml file
  • Close the preferences

Build the Project by Maven

  • Open command line
  • Navigate to root directory of the project (eg yang-ide)
  • Execute mvn package console command
  • The result of the build will be placed in yang-ide/product/update-site/target/repository

Run Eclipse in Development Mode

  • Home
  • First Steps
    • Installation Guide
    • [Import Project](Import Project)
    • [Create Project](Create Project)
    • [Yang Editor](Yang Editor)
  • New and Noteworthy
    • [1.0.0 release notes](M1 release notes)
    • [1.1.0 release notes](1.1.0 release notes)
    • [1.1.1 release notes](1.1.1 release notes)
  • [Features] (Features)
  • [M2E Integration] (M2E Integration)
  • [Yang Project Support] (Yang Project Support)
  • [Code Editing] (Code Editing)
  • [Code Navigation] (Code Navigation)
  • [Code Refactoring] (Code Refactoring)
  • [Diagram Model Editor] (Diagram Editor)
  • Developer Documentation
  • [Setup and build](Setup and build)
Clone this wiki locally