-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(runtimes): support JSII_NODE setting #4024
Conversation
Users can customize the `node` runtime used by the jsii runtime for java by providing the `JSII_NODE` environment variable. Additionally, this corrects how the child process is spawned so that `JSII_NODE` and `JSII_RUNTIME` can contain spaces (previously, this would result in a spawn error). Added a test to verify the various scenarios work as intended. Fixes #4009
public void withNoCustomization() { | ||
final JsiiRuntime runtime = new JsiiRuntime(null, null); | ||
runtime.getClient().createObject("Object", Collections.emptyList(), Collections.emptyList(), Collections.emptyList()); | ||
runtime.terminate(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] runtime
could be a JsiiRuntimeTest
class member and this line fitted into https://junit.org/junit5/docs/5.0.2/api/org/junit/jupiter/api/AfterEach.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but it's not that much duplication and it makes the tests self-contained...
Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it! |
Merging (with squash)... |
Merging (with squash)... |
Merging (with squash)... |
Users can customize the
node
runtime used by the jsii runtime libraries by providing theJSII_NODE
environment variable.Additionally, this corrects how the child process is spawned in Java so that
JSII_NODE
andJSII_RUNTIME
can contain spaces (previously, this would result in a spawn error). Added a test to verify the various scenarios work as intended.Fixes #4009
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.