Skip to content

Commit d8ab92f

Browse files
committed
Add dry-run option.
1 parent 6bef02b commit d8ab92f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

substratevm/LayeredNativeImage.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ native-image --bundle-apply=base-bundle.nib
230230
# or recreate the base layer with some extra options
231231
native-image --bundle-apply=base-bundle.nib --another-extra-option
232232

233+
# you can also build a bundle which captures the creation of a layer, but not actually perform the image building using the dry-run bundle-create option
234+
native-image --layer-create=base-layer.nil,module=java.base,module=java.awesome.lib --module-path target/AwesomeLib-1.0-SNAPSHOT.jar --bundle-create=base-bundle.nib,dry-run
235+
233236
```
234237

235238
When using bundles the layer file becomes either an input of the bundle in case of `--layer-use` or an output of the

0 commit comments

Comments
 (0)