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

razor - Is this a bug in WebMatrix PageData? -

c# - How to set Z index when using WPF DrawingContext? -

visual c++ - Using relative values in array sorting ( asm ) -