I'd like to do this in Java Google App Engine
if(developmentMode) foo(); else bar();
Does anyone know a good way to do this?
Daniel
https://cloud.google.com/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty
In Java just test
SystemProperty.environment.value() == SystemProperty.Environment.Value.Production
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With