You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. This function generates command the Katacoda user has to execute manually.
178
180
2. To execute this function, devonfw-ide must be installed.
181
+
3. This function will always create the devon4j project with latest devon4j version.
179
182
180
183
***
181
184
182
185
### ii. buildJava <aname="buildJava"></a>
183
186
This function will build your java project.
184
187
#### Parameter:
185
188
This function consist two parameter .
186
-
1.1st Parameter:
189
+
1.First Parameter:
187
190
-**Required**
188
191
-**Type**- String
189
192
-**Description**- The project directory, relative to workspace.
190
-
2.2nd Parameter:
193
+
2.Second Parameter:
191
194
-**Optional**
192
195
-**Type**- Boolean
193
196
-**Description**- Indicator whether tests should be run. Default is false.
@@ -202,11 +205,11 @@ This function consist two parameter .
202
205
This function will run your Java application on server.Parameter and assertion information you need to use properly, which is mentioned below.In Katacoda the command will be executed in a new terminal.
203
206
#### Parameter:
204
207
This functions consists of two parameters.
205
-
1.1st Parameter:
208
+
1.First Parameter:
206
209
-**Required**
207
210
-**Type**- String
208
211
-**Description**- Path to the server directory within the Java project.
209
-
2.2nd Parameter:
212
+
2.Second Parameter:
210
213
-**Required**
211
214
-**Type**- JSON object
212
215
-**Description**- This parameter consist of three attributes which are the assertion information. Only needed for the console runner to check if the server was started properly.
@@ -391,7 +394,7 @@ This function consist of 2 parameters
391
394
* Second attribute: It is Optional. Name of a placeholder
392
395
* Third attribute: It is Optional. Line number where you want to insert your code. (Possible lines are: 1...n+1 for N = number of existing lines. File cant be empty)
393
396
#### Example:
394
-
changeFile("cobigenexample/core/src/main/java/com/example/application/cobigenexample/customermanagement/dataaccess/api/CustomerEntity.java", { "file": "files/Placeholder.java", "placeholder": "private static final long serialVersionUID = 1L;" })
397
+
*changeFile("cobigenexample/core/src/main/java/com/example/application/cobigenexample/customermanagement/dataaccess/api/CustomerEntity.java", { "file": "files/Placeholder.java", "placeholder": "private static final long serialVersionUID = 1L;" })
395
398
#### Details:
396
399
##### Path of the file to get the content from or a string, that should be inserted.
397
400
* If you want to add content from a file then use:
@@ -434,11 +437,11 @@ The option to insert at a linenumber uses a placeholder inserted by a script and
434
437
This function creates a new file with a specified content. If no content is specified, an empty file is created.
435
438
#### Parameter:
436
439
This functions consists of two parameter.
437
-
1.1st Parameter:
440
+
1.First Parameter:
438
441
-**Required**
439
442
-**Type**- String
440
443
-**Description**- Path of the file to be created (relative path to the workspace directory).
441
-
3.2nd Parameter:
444
+
3.Second Parameter:
442
445
-**Optional**
443
446
-**Type**- String
444
447
-**Description**- Path of the file to get the content from. Relative to the playbook directory.
@@ -622,19 +625,21 @@ This function only consist of one parameter.
622
625
-**Description**- Name of the workspace repository(Default is the playbook-name).
623
626
624
627
#### Arguments:
625
-
**User**(Optional)
626
-
flag: --user
627
-
value: GitHub-username (Default is 'devonfw-tutorials')
628
+
***User**
629
+
- (Optional)
630
+
- flag: --user
631
+
- value: GitHub-username (Default is 'devonfw-tutorials')
628
632
629
-
You can use a forked workspace-repository, if you add the username as argument. If the runner cannot find the workspace repository in the your repositories, it will use devonfw-tutorials instead.
633
+
Note: You can use a forked workspace-repository, if you add the username as argument. If the runner cannot find the workspace repository in the your repositories, it will use devonfw-tutorials instead.
630
634
631
-
**Branch**(Optional)
632
-
flag: --branch
633
-
value: the working branch (Default is its default-branch)
635
+
***Branch**
636
+
- (Optional)
637
+
- flag: --branch
638
+
- value: the working branch (Default is its default-branch)
634
639
635
-
You can use a different branch, if you add the working branch as argument. If the runner cannot find the branch in the cloned repository, it will use the default branch instead.
640
+
Note: You can use a different branch, if you add the working branch as argument. If the runner cannot find the branch in the cloned repository, it will use the default branch instead.
636
641
637
-
buildRun.sh --user [username] --branch [branch]
642
+
*buildRun.sh --user [username] --branch [branch]
638
643
639
644
#### Example:
640
645
@@ -644,8 +649,9 @@ will clone "https://github.com/devonfw-tutorials/[playbook-name]" into the works
644
649
* restoreWorkspace({"workspace": [name]})
645
650
will clone "https://github.com/devonfw-tutorials/[name]" into the workspace directory.
0 commit comments