Added java home

This commit is contained in:
Thorsten Muerell committed 2017-11-08 15:57:44 +01:00
1 parent 2267d86f03
commit c684fa0c7c
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@
"properties": {
"frog.javaHome": {
"type": "string",
"default": false,
"default": "",
"description": "Set the java home to use for the runner."
}
}
+2 -1
View File
@@ -60,7 +60,8 @@ export class SessionManager {
}
let extPath = vscode.extensions.getExtension("todie.frog").extensionPath;
let javaHome = vscode.workspace.getConfiguration('frog').get("frog.javaHome", "")
const configuration = vscode.workspace.getConfiguration('frog')
const javaHome = configuration.get("javaHome", "")
let java = "java";
if (javaHome) {
java = path.join(javaHome, 'bin', 'java')