All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
5 " Count the maven executable without .exe as executable on Windows
8 call ale#test#SetDirectory('/testplugin/test')
9 runtime ale_linters/java/javac.vim
10 let g:expected_wrapper = ''
12 let g:expected_wrapper = 'mvnw'
14 let g:expected_wrapper = 'mvnw.cmd'
20 unlet! g:expected_wrapper
22 call ale#test#RestoreDirectory()
23 call ale#linter#Reset()
25 Execute(Should return 'mvnw' if found in parent directory):
26 call ale#test#SetFilename('test-files/maven/maven-java-project/module1/src/main/java/dummy1.java')
29 \ ale#path#Simplify(g:dir . '/test-files/maven/maven-java-project/module1/' . g:expected_wrapper),
30 \ ale#maven#FindExecutable(bufnr(''))
32 Execute(Should return 'mvn' if 'mvnw' not found in parent directory):
33 call ale#test#SetFilename('test-files/maven/maven-java-project/module2/src/main/java/dummy2.java')
34 let $PATH .= (has('win32') ? ';' : ':')
35 \ . ale#path#Simplify(g:dir . '/test-files/maven')
39 \ ale#maven#FindExecutable(bufnr(''))
41 Execute(Should return empty string if 'mvnw' not in parent directory and mvn not in path):
42 call ale#test#SetFilename('mvn-test-files/java-maven-project/module2/src/main/java/dummy2.java')
46 \ ale#gradle#FindExecutable(bufnr(''))