-
Notifications
You must be signed in to change notification settings - Fork 37
Functions
GuentherJulian edited this page Dec 17, 2020
·
44 revisions
The following functions are already implemented:
- installDevonIde
- installCobiGen
- cobiGenJava
- createDevon4jProject
- buildJava
- createFile
- The tools you want to install within the devonfw ide: string array
- Optional: The version of the ide to install
installDevonfwIde(["java","mvn"], "2020.08.001")
- No parameters
installCobiGen()
- The path to the java file you want to generate code for: string
- The numbers that represent the templates that CobiGen uses to generate code: int array
cobiGenJava("path/to/java/file/MyEntity.java",[1,3,5,6,8])
- The project name
createDevon4jProject("cobigenexample")
- The project directory
- (Optional) Indicator whether tests should be run. Default is false.
buildJava("cobigenexample", true)
- Path of the file to be created (relative path to the workspace directory)
- (Optional) Path of the file to get the content from. Relative to the playbook directory
createFile("cobigenexample/core/src/main/java/com/example/application/cobigenexample/customermanagement/dataaccess/api/CustomerEntity.java", "files/CustomerEntity.java")