views:

34

answers:

2

Is there a simple way to get the current serving application version in AppEngine?

+2  A: 

os.environ['CURRENT_VERSION_ID']

Drew Sears
+2  A: 
String version = SystemProperty.version.get();
String applicationVersion = SystemProperty.applicationVersion.get();

This is the syntax:

public static final SystemProperty applicationVersion

The major version number for the currently running version of the application plus a timestamp at which it was deployed. Has the key, "com.google.appengine.application.version".

See here

PS. One puzzle still remains. What does timestamp next to version means and how to read it??

husayt