Skip to content

Functions

GuentherJulian edited this page Dec 17, 2020 · 44 revisions

Functions

The following functions are already implemented:

  • installDevonIde
  • installCobiGen
  • cobiGenJava
  • createDevon4jProject
  • buildJava
  • createFile

installDevonfwIde

parameter

  1. The tools you want to install within the devonfw ide: string array
  2. Optional: The version of the ide to install

example

installDevonfwIde(["java","mvn"], "2020.08.001")


installCobiGen

parameter

  • No parameters

example

installCobiGen()


cobiGenJava

parameter

  1. The path to the java file you want to generate code for: string
  2. The numbers that represent the templates that CobiGen uses to generate code: int array

example

cobiGenJava("path/to/java/file/MyEntity.java",[1,3,5,6,8])


createDevon4jProject

parameter

  1. The project name

example

createDevon4jProject("cobigenexample")


buildJava

parameter

  1. The project directory
  2. (Optional) Indicator whether tests should be run. Default is false.

example

buildJava("cobigenexample", true)


createFile

parameter

  1. Path of the file to be created (relative path to the workspace directory)
  2. (Optional) Path of the file to get the content from. Relative to the playbook directory

example

createFile("cobigenexample/core/src/main/java/com/example/application/cobigenexample/customermanagement/dataaccess/api/CustomerEntity.java", "files/CustomerEntity.java")


Clone this wiki locally