From b475f08fedc34c95df4e4f573f772e7775f072a3 Mon Sep 17 00:00:00 2001 From: troydm Date: Wed, 13 Mar 2013 20:00:17 +0400 Subject: [PATCH] maven executable option added --- syntax_checkers/java/javac.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index 0c280d8c..5380f2e5 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -21,6 +21,10 @@ if !exists("g:syntastic_java_javac_executable") let g:syntastic_java_javac_executable = 'javac' endif +if !exists("g:syntastic_java_maven_executable") + let g:syntastic_java_maven_executable = 'mvn' +endif + if !exists("g:syntastic_java_javac_options") let g:syntastic_java_javac_options = '-Xlint' endif @@ -142,7 +146,7 @@ command! SyntasticJavacEditClasspath call s:EditClasspath() function! s:GetMavenClasspath() if filereadable('pom.xml') 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 for line in mvn_classpath_output if class_path_next == 1