Ah, you're in luck since you're on GAE. You can use this in your servlet:
private static boolean isDevelopment() {
return ( SystemProperty.environment.value() ==
SystemProperty.Environment.Value.Development );
}
On Wed, Feb 16, 2011 at 4:39 AM, Jan <[email protected]> wrote:
> I also thought so. Then I introduced the following code into the
> service implementation:
>
> isProdMode = GWT.isProdMode();
> System.err.println(isProdMode);
>
> Afterwards I deployed it to AppEngine and the result was:
>
> 2011-02-16 01:18:09.137 [...].<stderr>: false
>
> I suppose that the isProdMode() function is designed for client code
> since it is located inside
>
> com.google.gwt.core.client.
>
> However my question referred to the server side.
>
> Anyway, thanks for your help
> Jan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.