Skip to content

Commit bfd5200

Browse files
committed
Fix unknown func
1 parent 98d5897 commit bfd5200

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

autoload/javaunit.vim

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ let s:JavaUnit_TestMethod_Source =
2222
\.s:Fsep
2323
\.join(['src','com','wsdjeg','util','TestMethod.java'],s:Fsep)
2424

25+
function! javaunit#Compile() abort
26+
silent exec '!javac -encoding utf8 -d "'.s:JavaUnit_tempdir.'" "'.s:JavaUnit_TestMethod_Source .'"'
27+
endfunction
28+
2529
if findfile(s:JavaUnit_tempdir.join(['','com','wsdjeg','util','TestMethod.class'],s:Fsep))==""
2630
call javaunit#Compile()
2731
endif
2832

29-
function! javaunit#Compile() abort
30-
silent exec '!javac -encoding utf8 -d "'.s:JavaUnit_tempdir.'" "'.s:JavaUnit_TestMethod_Source .'"'
31-
endfunction
3233

3334
function javaunit#TestMethod(args,...)
3435
let line = getline(search("package","nb",getline("0$")))

0 commit comments

Comments
 (0)