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

The generated linux script uses JAVA_HOME, the windows script doesn't #210

Open
nbauma109 opened this issue Apr 8, 2024 · 1 comment
Open

Comments

@nbauma109
Copy link

The behaviour of the 2 generated scripts is different:

  • linux script uses JAVA_HOME
  • windows .bat script ignores JAVA_HOME and uses JAVACMD which points to the java executable

I think it would be nice to align both behaviors.

@gmkll
Copy link

gmkll commented Sep 6, 2024

+1 my workaround was to define a script in the configuration

<environmentSetupFileName>init</environmentSetupFileName>

This init.bat file is then included in the generated script. I put this into it:

echo Using JAVA_HOME:   "%JAVA_HOME%"
if not "%JAVA_HOME%" == "" set "JAVACMD=%JAVA_HOME%\bin\java"

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

No branches or pull requests

2 participants