There is also a CobiGen Command Line Interface(CLI) where you can start the setup following the generation of code.
This tutorial mainly focuses on the setup of CobiGen along with various commands to execute the generations. ## Prerequisites * devonfw IDE * User should have development experience of any language.
Here in this tutorial you will learn * To setup CobiGen * To use commands on CobiGen CLI * To integrate Eclipse with CobiGen
restoreDevonfwIde(["java","mvn"])
devonfw IDE has been installed for you.
displayContent("CobiGen Setup", [{ "file": "files/cobiGenSetup.md" }])
In next step, you will learn about CobiGen CLI commands.
In this step, you will learn CobiGen commands.
displayContent("CobiGen CLI Commands and Options", [{ "file": "files/commandsAndOptions.md" }])
In next step, you will learn about how to integrate CobiGen with Eclipse.
Note: CobiGen comes preinstalled with devonfw IDE.
1.1 Preconditions - Eclipse 4.x
-
Atleast Java 7 Runtime (for starting eclipse with CobiGen). This is independent from the target version of your developed code
1.2. Installation steps * Open the eclipse installation dialog menu bar → Help → Install new Software
displayContent("Integrate Eclipse with CobiGen", [{"image": "images/01-install-new-software.png"}])
Here you can select the updates. 2. Open CobiGen’s update site
displayContent("Select Update Site", [{"image": "images/02-select-update-site.png"}, { "file": "files/eclipseIntegration.md" }])
-
Checkout (clone) your project’s templates folder or use the current templates released with CobiGen (https://github.com/devonfw/cobigen/tree/master/cobigen-templates) and then choose Import → General → Existing Projects into Workspace to import the templates into your workspace.
displayContent("CobiGen Usage - Simple Mode", [{ "file": "files/simpleModeUsage.md" }, {"image": "images/03-simple-mode-usage.png"}])
displayContent("CobiGen Usage - Batch Mode", [{ "file": "files/batchModeUsage.md" }, {"image": "images/04-batch-mode-usage.png"}])
displayContent(" ", [{ "file": "files/healthCheckTroubleshooting-Conclusion.md" }])