Oh cool! just tried with: ApiProxy.getCurrentEnvironment().getVersionId();
And on GAE servers it does return the full version id: 2.356983990884235673; While locally it returns: 2.1 Interesting, then I should be able to get the latest static resources with any new version! On Feb 22, 12:40 pm, Emanuele Ziglioli <[email protected]> wrote: > Hi, > > I'd like to force refresh of static resources using a query string, as > explained > here:http://groups.google.com/group/google-appengine/msg/9707b4602e0154cc > > But I need some global string that reflects the latest version. Is it > possible to query the veriable that is printed on the administrator > log? > > Something like "version=2.2012-02-21T23:18:43Z" > > All I could find was: > com.google.apphosting.api.ApiProxy.Environment env = > ApiProxy.getCurrentEnvironment(); > version = (String) > env.getAttributes().get("com.google.appengine.runtime.default_version_hostn > ame"); > > And that only returns the application id. > > Is there the active version number stored anywhere we can query? > > Thanks -- 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.
