Allow additional bundle options to be set during build #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's currently quite tricky to get certain JVM options set at application launch time. The launch script does some gymnastics to get JVM options into the right place on the command line: those starting with
-X
, for example, end up in the right place (that is, prior to the class name). But some, like the old-server
and newer--add-exports
are not moved into the right place by the launch script. The launch script will honour theJVMOptions
line in the header of the*ClassPath.txt
files, but there's currently no mechanism for setting this usingwolifecycle-maven-plugin
.So, all this pull request does is to update
wolifecycle.build.xml
to set the following when thewoapplication
Ant task builds the bundle:jvm
jvmOptions
jdb
jdbOptions
Their values are pulled from properties of the same names, so you can set them in
build.properties
: