summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2017-04-13 23:39:28 -0700
committerGeorge Fraser <george@fivetran.com>2017-04-13 23:39:28 -0700
commitb666991309b04947bce00bee54fc4bf98ae6d77c (patch)
tree33085f61497f3ad10bd6181872436078e8d9a1b0 /lib
parent9b04fee43a4ef69e87eeab799d448eceecadb6ba (diff)
downloadjava-language-server-b666991309b04947bce00bee54fc4bf98ae6d77c.zip
Support multiple configs
Diffstat (limited to 'lib')
-rw-r--r--lib/javaconfig.schema.json47
1 files changed, 31 insertions, 16 deletions
diff --git a/lib/javaconfig.schema.json b/lib/javaconfig.schema.json
index 4230817..2d36c4b 100644
--- a/lib/javaconfig.schema.json
+++ b/lib/javaconfig.schema.json
@@ -1,20 +1,35 @@
{
- "type": "object",
- "properties": {
- "sourcePath": {
- "type": "array",
- "items": {
- "type": "string"
- },
- "description": "Java compiler sourcepath"
- },
- "classPathFile": {
- "type": "string",
- "description": "File containing the classpath"
- },
- "outputDirectory": {
- "type": "string",
- "description": "Where to place generated .class files"
+ "oneOf":[
+ {"$ref": "#/definitions/javaconfig"},
+ {"type": "array", "items": {"$ref": "#/definitions/javaconfig"}, "minItems": 1}
+ ],
+ "definitions": {
+ "javaconfig": {
+ "type": "object",
+ "properties": {
+ "sourcePath": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Java compiler sourcepath"
+ },
+ "classPath": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ },
+ "description": "Classpath entries"
+ },
+ "classPathFile": {
+ "type": "string",
+ "description": "File containing the classpath"
+ },
+ "outputDirectory": {
+ "type": "string",
+ "description": "Where to place generated .class files"
+ }
+ }
}
}
} \ No newline at end of file