When testing for dev or production mode on the client side of a GWT project, as in this line:
if (SystemProperty.environment.value() ==
SystemProperty.Environment.Value.Production)
I get this error:
No source code is available for type
com.google.appengine.api.utils.SystemProperty; did you forget to
inherit a required module?
Can I do this on the client side? If so, how can I inherit the proper module?
Thanks.
As Peter says, you will not be able to use that class in your GWT code directly. However, this is a perfect use case for using this technique.