Skip to content

Commit 450b9b1

Browse files
committed
Fix few typos and examples
1 parent f99dc5c commit 450b9b1

File tree

2 files changed

+13
-20
lines changed

2 files changed

+13
-20
lines changed

docs/src/docs/asciidoc/end-to-end-gradle-guide.adoc

+11-18
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Here is an example of additional options usage:
9797
graalvmNative {
9898
binaries.all {
9999
// common options
100-
jvmArgs.add('flag')
100+
verbose = true
101101
}
102102
binaries.main {
103103
// options to configure the main binary
@@ -109,7 +109,6 @@ graalvmNative {
109109
// options to configure the test binary
110110
quickBuild = true
111111
debug = true
112-
verbose = true
113112
}
114113
}
115114
----
@@ -119,7 +118,7 @@ graalvmNative {
119118
graalvmNative {
120119
binaries.all {
121120
// common options
122-
buildArgs.add('--emit build-report')
121+
verbose.set(true)
123122
}
124123
125124
binaries.main {
@@ -133,7 +132,6 @@ graalvmNative {
133132
// options to configure the test binary
134133
quickBuild.set(true)
135134
debug.set(true)
136-
verbose.set(true)
137135
}
138136
}
139137
----
@@ -175,8 +173,7 @@ testImplementation('junit:junit:4.13.2')
175173
./gradlew nativeTest
176174
----
177175

178-
First, the tests run on the JVM.
179-
Then, they are compiled ahead of time and executed as native code.
176+
The tests are compiled ahead of time and executed as native code.
180177

181178
[[gather-execution-profiles]]
182179
=== Gather Execution Profiles and Build Optimized Images
@@ -207,7 +204,7 @@ By default, the _default.iprof_ file, if not specified otherwise, is generated a
207204

208205
[source,bash, role="multi-language-sample"]
209206
----
210-
./build/native/nativeCompile/my-application-instrumented
207+
./build/native/nativeCompile/application-instrumented
211208
----
212209

213210
Step 3. **Build an optimized native image with profiles**.
@@ -251,13 +248,13 @@ To address this, start by checking if any required configuration is missing.
251248
The best way to detect missing metadata is by running your native tests.
252249
Alternatively, you can **identify missing configuration manually** using the following method.
253250

254-
- Pass the `--exact-reachablity-metadata` option to the `native-image` tool inside `graalvmNative` block of your _build.gradle_, as shown below:
251+
- Pass the `--exact-reachability-metadata` option to the `native-image` tool inside `graalvmNative` block of your _build.gradle_, as shown below:
255252

256253
[source,groovy,subs="verbatim,attributes", role="multi-language-sample"]
257254
----
258255
graalvmNative {
259256
binaries.all {
260-
buildArgs.add('--exact-reachablity-metadata')
257+
buildArgs.add('--exact-reachability-metadata')
261258
runtimeArgs.add('-XX:MissingRegistrationReportingMode=Warn')
262259
}
263260
}
@@ -267,7 +264,7 @@ graalvmNative {
267264
----
268265
graalvmNative {
269266
binaries.all {
270-
buildArgs.add('--exact-reachablity-metadata')
267+
buildArgs.add('--exact-reachability-metadata')
271268
runtimeArgs.add('-XX:MissingRegistrationReportingMode=Warn')
272269
}
273270
}
@@ -317,21 +314,17 @@ Step 1: **Enable the agent** by setting `agent` to `true` in the `graalvmNative`
317314
[source,groovy,subs="verbatim,attributes", role="multi-language-sample"]
318315
----
319316
graalvmNative {
320-
binaries.all {
321-
agent {
322-
enabled = true
323-
}
317+
agent {
318+
enabled = true
324319
}
325320
}
326321
----
327322

328323
[source,kotlin,subs="verbatim,attributes", role="multi-language-sample"]
329324
----
330325
graalvmNative {
331-
binaries.all {
332-
agent {
333-
enabled.set(true)
334-
}
326+
agent {
327+
enabled.set(true)
335328
}
336329
}
337330
----

docs/src/docs/asciidoc/end-to-end-maven-guide.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ To address this, start by checking if any required configuration is missing.
303303
The best way to detect missing metadata is by running your native tests.
304304
Alternatively, you can **identify missing configuration manually** using the following method.
305305

306-
- Pass the `--exact-reachablity-metadata` option to the `native-image` tool in _pom.xml_, as shown below:
306+
- Pass the `--exact-reachability-metadata` option to the `native-image` tool in _pom.xml_, as shown below:
307307

308308
[source,xml, role="multi-language-sample"]
309309
----
310310
<configuration>
311311
<mainClass>org.example.Main</mainClass>
312312
<buildArgs>
313-
<buildArg>--exact-reachablity-metadata</buildArg>
313+
<buildArg>--exact-reachability-metadata</buildArg>
314314
</buildArgs>
315315
</configuration>
316316
----

0 commit comments

Comments
 (0)