http://code.google.com/appengine/docs/java/runtime.html#The_Environment
<http://code.google.com/appengine/docs/java/runtime.html#The_Environment>if(SystemProperty.environment.value() == SystemProperty.Environment.Value.Production) { } if(SystemProperty.environment.value() == SystemProperty.Environment.Value.Development) { } On Mon, May 3, 2010 at 8:20 PM, Marc Hacker <[email protected]> wrote: > Can anyone suggest an easy way to test within Java whether running on > the eclipse dev environment or deployed? > > Something the code has to do certain things differently in development > than when deployed to Google > > Thoughts? > > Thanks > > Marc > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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-appengine?hl=en.
