How to enable assertions in the Play framework


It took a bit of digging around to figure out how to enable Java assertions for the Play framework, but the answer was simple in the end:

$ export JAVA_OPTS=-ea

This sets the (quasi-standard) JAVA_OPTS environment variable which is incorporated into the SBT launch command.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s