Tuesday 15 June 2010

google app engine - Default Version of Appengine App (from code) -


How can the default version of the app match app find? I do not mean the current version, but rather the version that requests by default.

PS Sorry if the question was not enough. I mean, how to find the default version from the code. I have several versions of the app, and I have to find out in a programmatic manner that is a default one.

Manually:

  • Select your application
  • Select "Version"
  • See if "Yes" in the default column

    Programmer:

      import com.google.appengine.api.labs.servers.ServersService; Import com.google.appengine.api.labs.servers.ServersServiceFactory; ... server service ssf = ServersServiceFactory.getServersService (); String default warsen = Ssf.getDefaultVersion (ssf.getCurrentServer ());    

No comments:

Post a Comment