ant.vim 889 B

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