You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alexey Demakov <de...@ispras.ru> on 2002/12/20 19:32:13 UTC
ANTLR 2.7.1 and System.exit(0)
When ANTLR run from maven build system, maven's NoExitSecurityManager
catches System.exit(code) calls and throws java.lang.SecurityException with
code in message to prevent JVM finish.
It works fine with System.exit(0) at the end of antlr.Tool.main(). But there
is another System.exit(0) call - at the end of antlr.Tool.doEverything().
main() catches exception produced by NoExitSecurityManager and prints
message about internal error!
ANTLR generates files anyway but error message is annoying.
Because doEverything() is protected it is possible to subclass antlr.Tool
and call doEverything()
with right error handling :)
May be I will implement it later. May be in the next year :)
Merry Xmas and happy New Year to all maven users! :)
Best regards,
Alexey