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

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

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -