-
Notifications
You must be signed in to change notification settings - Fork 17
Setup and build
Andrey Sobolev edited this page Oct 29, 2015
·
11 revisions
- Eclipse SDK 4.4 or above (prefer the latest Eclipse 4.5)
- Java SE Development Kit 7
- Apache Maven 3
- Git
Using a git client clone the project by the following command:
$ git clone git@github.com:xored/yang-ide.git
- 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
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"
- Select
Windows->Preferences
in the main menu - Navigate to
Java->Code Style->Formatter
section - Click
Import...
and selectyang-ide\product\codeformatter.xml
file - Navigate
Java->Code Style->Code Templates
section - Click
Import...
and selectyang-ide\product\codetemplates.xml
file - Close the preferences
- 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
- Select
Run->Run Configuration...
in the main menu - Create a new eclipse application under the category
Eclipse Application
- Set MaxPermSize оf the launched JVM to 512m; you can do it in an either way:
- Go to Arguments page and add
-XX:MaxPermSize=512m
to VM arguments edit box; you will need to do it each time you create a new launching configuration. - Exit Eclipse, open
eclipse.ini
and set value of--launcher.XXMaxPermSize
to512m
. Restart Eclipse. From that moment every crated launcher will have its maximal PermGen of 512m by default.
- Go to Arguments page and add
- Click
Run
button
- 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)