2014-07-10 21:05:51 -07:00
|
|
|
" Vim compiler file
|
2021-04-29 18:57:46 -07:00
|
|
|
" Compiler: Java Development Kit Compiler
|
2014-07-10 21:05:51 -07:00
|
|
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
2024-11-28 17:54:47 -07:00
|
|
|
" Last Change: 2024 Nov 19 (enable local javac_makeprg_params)
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
if exists("current_compiler")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let current_compiler = "javac"
|
|
|
|
|
2021-04-29 18:57:46 -07:00
|
|
|
let s:cpo_save = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
2024-11-28 17:54:47 -07:00
|
|
|
execute $'CompilerSet makeprg=javac\ {escape(get(b:, 'javac_makeprg_params', get(g:, 'javac_makeprg_params', '')), ' \|"')}'
|
2024-06-16 08:00:30 -07:00
|
|
|
|
2021-04-29 18:57:46 -07:00
|
|
|
CompilerSet errorformat=%E%f:%l:\ error:\ %m,
|
|
|
|
\%W%f:%l:\ warning:\ %m,
|
|
|
|
\%-Z%p^,
|
|
|
|
\%-C%.%#,
|
|
|
|
\%-G%.%#
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2021-04-29 18:57:46 -07:00
|
|
|
let &cpo = s:cpo_save
|
|
|
|
unlet s:cpo_save
|