Hi drift elysium, You don't have to set any parameter.
You can try it on the dev-server and the prod-server(e.g. logging the value), and you will know the action well. - bufferings 2010/5/24 drift elysium <[email protected]>: > Hi bufferings, > > Thanks for the site, > > So here I saw this: > > if (SystemProperty.environment.value() == > SystemProperty.Environment.Value.Production) { > // do something that's production-only > } > > Here it says to do something that's production-only. I don't really have > clue as to what do if it's production only in app engine. Should I set any > parameter value? > > On Sat, May 22, 2010 at 10:09 AM, bufferings <[email protected]> wrote: >> >> hi drift elysium >> >> You can use SystemProperty.environment.value(). >> >> http://code.google.com/intl/en/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty.html >> >> - bufferings >> >> On May 22, 2:23 pm, drift elysium <[email protected]> wrote: >> > http://www.pakzilla.com/2009/12/01/determine-whether-application-is-r... >> > >> > This link shows how to set the value of DEV_MODE to true or false >> > according to whether they run on local machine or GAE. Is there any >> > equivalent for HTTPServlet? >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Google App Engine for Java" 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 >> > athttp://groups.google.com/group/google-appengine-java?hl=en. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" 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-java?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-java?hl=en.
