We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce2ac4c commit a5724aeCopy full SHA for a5724ae
apps/generator-cli/src/app/helpers/index.ts
@@ -1,7 +1,11 @@
1
+const isWin = () => process.platform === 'win32';
2
+
3
/**
4
* If JAVA_HOME is set, it returns `$JAVA_HOME/bin/java`
5
* otherwise it returns `java` and it has to be in the `PATH`
6
*/
7
export const javaCmd: string = process.env['JAVA_HOME']
- ? `"${process.env['JAVA_HOME']}/bin/java"`
8
+ ? isWin()
9
+ ? `"${process.env['JAVA_HOME']}/bin/java"`
10
+ : `${process.env['JAVA_HOME']}/bin/java`
11
: 'java';
0 commit comments