Skip to content

Commit e485702

Browse files
committed
Using <quickBuild>true</quickBuild>
1 parent 4805ca1 commit e485702

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

docs/getting-started/graalvm-enterprise/oci/code-editor.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,20 @@ This Java application incorporates the [Maven plugin for GraalVM Native Image](h
9696

9797
### Quick Build Mode Enabled
9898

99-
1. Build a native executable using the `native` Maven profile. The quick build mode is enabled for this run: notice the `<buildArg>-Ob</buildArg>` option in the plugin's configuration in _pom.xml_.
99+
1. To enable the quick build mode, uncomment this line in _pom.xml_, as follows:
100+
101+
```xml
102+
<quickBuild>true</quickBuild>
103+
```
104+
105+
2. Build a native executable using the `native` Maven profile:
100106

101107
```shell
102108
mvn clean -Pnative -DskipTests package
103109
```
104110
This will generate a native executable for Linux in the _target_ directory, named _my-app_.
105111

106-
2. Run the app native executable in the background:
112+
3. Run the app native executable in the background:
107113

108114
```shell
109115
./target/my-app
@@ -114,8 +120,9 @@ This Java application incorporates the [Maven plugin for GraalVM Native Image](h
114120
1. To disable the quick build mode, comment out this line in _pom.xml_, as follows:
115121

116122
```xml
117-
<!-- <buildArg>-Ob</buildArg> -->
123+
<!-- <quickBuild>true</quickBuild> -->
118124
```
125+
119126
2. Build a native executable again:
120127

121128
```shell

0 commit comments

Comments
 (0)