How to enable Java assertions in jetty-maven-plugin? -


how enable assertions in jetty-maven-plugin? default disabled.

set environment variable maven_opts -ea. jetty default runs within maven process , affected setting.

there interesting library called force assertions hooks java 1.6 compilation process. during compilation assert cond : detail; transparently compiled if (!cond) throw new assertion(detail); blocks, means assertions work no matter jvm parameters are. worth check.


Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -