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

Automatically create a variables or append sub-directories to PATH #30

Open
fmarot opened this issue Oct 9, 2018 · 1 comment
Open

Comments

@fmarot
Copy link
Owner

fmarot commented Oct 9, 2018

Usually this plugin is used to extract a bunch of DLL into ./target/natives dir. But sometimes some libraries are complex and require multiple sub-path to be added to the PATH (or LD_LIBRARY_PATH).

If we created a convention that natives artifact would follow (a text file at the root of the zip or tar-gz ???), then we could automatically construct the PATH (or LD_LIBRARY_PATH) during the Maven build. And this variable could be used in the configuration of the exec-maven-plugin to run the program.

We could create the PATH variable but also new variables. Variables specific to some artifacts could be created according to what the text-file contains. For exemple, intel DLL redistributables must have MIC_LD_LIBRARY_PATH, for OpenOffice we must have UNO_PATH, ...

Such a convention would definitly make life easier for users.

@fmarot
Copy link
Owner Author

fmarot commented Oct 9, 2018

maybe the creation of variables would require, to be usefull, to make the maven-exec-plugin auto-discover some variables.
For exemple, this plugin could auto-detect variable NATIVEDEP* so that NATIVEDEP_OIVJHOME would add to the environement the OIVJHOME variable, NATIVEDEP_LD_LIBRARY_PATH would add LD_LIBRARY_PATH and so on.

Maybe this whole idea is only worth in conjonction with new features of the maven-exec-plugin...

@fmarot fmarot closed this as completed Oct 9, 2018
@fmarot fmarot reopened this Oct 9, 2018
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

1 participant