Skip to content
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

Setting environment variables for local containers JVM #158

Open
sluedecke opened this issue Dec 28, 2016 · 1 comment
Open

Setting environment variables for local containers JVM #158

sluedecke opened this issue Dec 28, 2016 · 1 comment

Comments

@sluedecke
Copy link

We have some native libraries which need to be in the LD_LIBRARY_PATH (Unix) / PATH (Windows) environment variable. Unfortunately it is not sufficient to set -Djava.library.path since the native library has dependencies to other libraries which are not found by setting -Djava.library.path.

The org/codehaus/cargo/daemon/jvm/DaemonJvmLauncher.java does have an option to set the environment variables of the JVM but I cannot find a way to do this using the gradle plugin.

Can you demonstrate how to do this or add a way to specify environment variables?

@bmuschko
Copy link
Owner

The Gradle plugin uses the Cargo Ant tasks. If those tasks support setting environment variables then the plugin can add it. At the moment it's not exposed by the Gradle plugin. Please open a pull request if you are interested in adding the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants