I couldn't find any way to do this, even using the remote API. The 
SystemProperty properties all come back with null values.

I ended up writing a little servlet that just returns the version:

public class VersionServlet extends HttpServlet 
{
    @Override
    public void doGet(HttpServletRequest req, HttpServletResponse res)
        throws IOException
    {
    res.getOutputStream().print(SystemProperty.applicationVersion.get());
    }
}


On Friday, January 23, 2015 at 11:47:44 AM UTC-8, kj wrote:
>
> I would like to write a script that prevents me from deploying the app if 
> the version is the same as the current live version. I see that appcfg has 
> a "list_versions" command but that just returns a list of all the upload 
> versions. I'd like to see what is the currently deployed live version.
>
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/40e6c043-805b-436a-83eb-92bf6cb9f360%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to