blob: 0605c69fab4eb7659d2cfc38519a7267b9cabd8e [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim Compiler File
2" Compiler: ant
3" Maintainer: Johannes Zellner <johannes@zellner.org>
Bram Moolenaar402d2fe2005-04-15 21:00:38 +00004" Last Change: Mi, 13 Apr 2005 22:50:07 CEST
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
6if exists("current_compiler")
7 finish
8endif
9let current_compiler = "ant"
10
11if exists(":CompilerSet") != 2 " older Vim always used :setlocal
12 command -nargs=* CompilerSet setlocal <args>
13endif
14
15let s:cpo_save = &cpo
16set cpo&vim
17
18CompilerSet makeprg=ant
19
20" first line:
21" ant with jikes +E, which assumes the following
22" two property lines in your 'build.xml':
23"
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000024" <property name = "build.compiler" value = "jikes"/>
25" <property name = "build.compiler.emacs" value = "true"/>
Bram Moolenaar071d4272004-06-13 20:20:40 +000026"
27" second line:
28" ant with javac
29"
30" note that this will work also for tasks like [wtkbuild]
31"
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000032CompilerSet errorformat=\ %#[%.%#]\ %#%f:%l:%v:%*\\d:%*\\d:\ %t%[%^:]%#:%m,
Bram Moolenaar071d4272004-06-13 20:20:40 +000033 \%A\ %#[%.%#]\ %f:%l:\ %m,%-Z\ %#[%.%#]\ %p^,%C\ %#[%.%#]\ %#%m
34
35" ,%-C%.%#
36
37let &cpo = s:cpo_save
38unlet s:cpo_save