Skip to content

Commit 6591ae8

Browse files
snjezafbricon
authored andcommitted
Provide preference mapping for Java Execution Environments -> Runtimes
Signed-off-by: Snjezana Peco <snjezana.peco@redhat.com>
1 parent fec0a4f commit 6591ae8

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ The following settings are supported:
125125

126126
New in 0.56.0:
127127
* `java.import.gradle.offline.enabled`: Enable/disable the Gradle offline mode. Defaults to `false`.
128+
* `java.configuration.runtimes`: Java Execution Environments.
128129

129130
Troubleshooting
130131
===============

package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,55 @@
444444
"description": "Automatically show build status on startup.",
445445
"default": false,
446446
"scope": "window"
447+
},
448+
"java.configuration.runtimes": {
449+
"type": "array",
450+
"label": "Java Execution Environments.",
451+
"items": {
452+
"type": "object",
453+
"default": {},
454+
"required": [
455+
"path",
456+
"name"
457+
],
458+
"properties": {
459+
"name": {
460+
"type": "string",
461+
"enum": [
462+
"J2SE-1.5",
463+
"JavaSE-1.6",
464+
"JavaSE-1.7",
465+
"JavaSE-1.8",
466+
"JavaSE-9",
467+
"JavaSE-10",
468+
"JavaSE-11",
469+
"JavaSE-12",
470+
"JavaSE-13"
471+
],
472+
"label": "Java Execution Environment name. Must be unique"
473+
},
474+
"path": {
475+
"type": "string",
476+
"label": "JDK path.\nOn Windows, backslashes must be escaped, i.e.\n\"path\":\"C:\\\\Program Files\\\\Java\\\\jdk1.8.0_161\""
477+
},
478+
"sources": {
479+
"type": "string",
480+
"label": "JDK sources."
481+
},
482+
"javadoc": {
483+
"type": "string",
484+
"label": "JDK javadoc."
485+
},
486+
"default": {
487+
"type": "boolean",
488+
"label": "Is default runtime? Only one runtime can be default."
489+
}
490+
},
491+
"additionalProperties": false
492+
},
493+
"default": [],
494+
"description": "Java Execution Environments -> Runtimes.",
495+
"scope": "machine"
447496
}
448497
}
449498
},

0 commit comments

Comments
 (0)