home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / compiler / ant.vim next >
Encoding:
Text File  |  2010-08-14  |  941 b   |  39 lines

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