ant.vim 941 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. if exists("current_compiler")
  6. finish
  7. endif
  8. let current_compiler = "ant"
  9. if exists(":CompilerSet") != 2 " older Vim always used :setlocal
  10. command -nargs=* CompilerSet setlocal <args>
  11. endif
  12. let s:cpo_save = &cpo
  13. set cpo&vim
  14. CompilerSet makeprg=ant
  15. " first line:
  16. " ant with jikes +E, which assumes the following
  17. " two property lines in your 'build.xml':
  18. "
  19. " <property name = "build.compiler" value = "jikes"/>
  20. " <property name = "build.compiler.emacs" value = "true"/>
  21. "
  22. " second line:
  23. " ant with javac
  24. "
  25. " note that this will work also for tasks like [wtkbuild]
  26. "
  27. CompilerSet errorformat=\ %#[%.%#]\ %#%f:%l:%v:%*\\d:%*\\d:\ %t%[%^:]%#:%m,
  28. \%A\ %#[%.%#]\ %f:%l:\ %m,%-Z\ %#[%.%#]\ %p^,%C\ %#[%.%#]\ %#%m
  29. " ,%-C%.%#
  30. let &cpo = s:cpo_save
  31. unlet s:cpo_save