Hey Partha, A good question, but perhaps one that would best be asked on StackOverflow. This forum is meant for general discussion of the platform, not specific-issue technical support. Regardless, I'm happy to help with the beginnings of an answer:
1) You can detect whether you're in production or development programmatically using com.google.appengine.api.utils.SystemProperty <https://cloud.google.com/appengine/docs/java/javadoc/com/google/appengine/api/utils/SystemProperty?csw=1>. 2) You can also use maven's own feature of "Build Profiles <http://maven.apache.org/guides/introduction/introduction-to-profiles.html>" to have the system automagically insert the correct values for the correct environment through maven, rather than programmatically at servlet init, as suggested in 1). I hope these resources are helpful to you! Sincerely, Nick Cloud Platform Community Support On Monday, March 14, 2016 at 8:39:14 PM UTC-4, Partha Bhaumik wrote: > > I am trying to use two sets of system properties for an App Engine > application. Is there a way to specify the development properties somewhere > and the production properties somewhere else so that depending on the > execution environment the correct set is loaded? I am new to App Engine, > and this was easy to do in Play Framework using two .conf files. > > I tried putting the dev properties in pom.xml under the jvm flags in the > appengine-maven-plugin, and the production properties in appengine-web.xml. > But when I am running "mvn appengine:devserver", the jvm flags are getting > overwritten by the ones from appengine-web.xml. > > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b1e612fb-7e08-435d-9107-03cc63211756%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
