maven executable option added
This commit is contained in:
parent
75a234231b
commit
b475f08fed
@ -21,6 +21,10 @@ if !exists("g:syntastic_java_javac_executable")
|
|||||||
let g:syntastic_java_javac_executable = 'javac'
|
let g:syntastic_java_javac_executable = 'javac'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !exists("g:syntastic_java_maven_executable")
|
||||||
|
let g:syntastic_java_maven_executable = 'mvn'
|
||||||
|
endif
|
||||||
|
|
||||||
if !exists("g:syntastic_java_javac_options")
|
if !exists("g:syntastic_java_javac_options")
|
||||||
let g:syntastic_java_javac_options = '-Xlint'
|
let g:syntastic_java_javac_options = '-Xlint'
|
||||||
endif
|
endif
|
||||||
@ -142,7 +146,7 @@ command! SyntasticJavacEditClasspath call s:EditClasspath()
|
|||||||
function! s:GetMavenClasspath()
|
function! s:GetMavenClasspath()
|
||||||
if filereadable('pom.xml')
|
if filereadable('pom.xml')
|
||||||
if g:syntastic_java_javac_maven_pom_ftime != getftime('pom.xml') || g:syntastic_java_javac_maven_pom_cwd != getcwd()
|
if g:syntastic_java_javac_maven_pom_ftime != getftime('pom.xml') || g:syntastic_java_javac_maven_pom_cwd != getcwd()
|
||||||
let mvn_classpath_output = split(system('mvn dependency:build-classpath'),"\n")
|
let mvn_classpath_output = split(system(g:syntastic_java_maven_executable.' dependency:build-classpath'),"\n")
|
||||||
let class_path_next = 0
|
let class_path_next = 0
|
||||||
for line in mvn_classpath_output
|
for line in mvn_classpath_output
|
||||||
if class_path_next == 1
|
if class_path_next == 1
|
||||||
|
Loading…
Reference in New Issue
Block a user