refactor(javac): ale_java_javac_sourcepath variable supports String and List types

This commit is contained in:
NiBo
2020-05-18 17:35:16 +08:00
parent 3635285c02
commit ff6bfc3d37
5 changed files with 117 additions and 13 deletions

View File

@@ -69,18 +69,27 @@ g:ale_java_javac_options *g:ale_java_javac_options*
g:ale_java_javac_sourcepath *g:ale_java_javac_sourcepath*
*b:ale_java_javac_sourcepath*
Type: |List|
Type: |String| or |List|
Default: `[]`
This variable can set multiple source code paths, the source code path is a
relative path (relative to the project root directory).
This variable can set multiple source code paths, the source code path is a
relative path (relative to the project root directory).
Example:
>
let g:ale_java_javac_sourcepath = [
\ 'build/generated/source/querydsl/main',
\ 'target/generated-sources/source/querydsl/main'
\ ]
Example:
String type:
Note that the unix system separator is a colon(`:`) window system
is a semicolon(`;`).
>
let g:ale_java_javac_sourcepath = 'build/gen/source/xx/main:build/gen/source'
<
List type:
>
let g:ale_java_javac_sourcepath = [
\ 'build/generated/source/querydsl/main',
\ 'target/generated-sources/source/querydsl/main'
\ ]
<
===============================================================================