Download code from Google App Engine Java is now possible - Ubuntu

懵懂的女人 提交于 2020-01-07 02:22:09

问题


According to Google's AppEngine Group using the pre-released version 1.5.3 you are able to download you code for Java Applications as well.

./appcfg.sh help download_app
AppCfg [options] -A app_id [ -V version ] download_app <out-dir>

Download a previously-uploaded app to the specified directory.  The app
ID is specified by the "-A" option.  The optional version is specified
by the "-V" option.

I tried to run the above command but it is not working.

Did anyone manage to download his/her source code using the above command?

Thanks

The changelog:

AppCfg now supports download_app, which will download all files that were uploaded from your war directory.


回答1:


Yes, it works with the pre-release SDK. I just tried it:

$ mkdir /path/to/my/backup/dir
$ ./appcfg.sh -A myappid download_app /path/to/my/backup/dir

Or defining a version:

$ ./appcfg.sh -A myappid -V 2 download_app /path/to/my/backup/dir

I downloaded a Python and a Java app, and both worked.




回答2:


On the Developer website it gives this code : Google-Developer

/appcfg.sh download_app -A <your_app_id> -V <your_app_version> <output-dir>

I tried it didn't work. On some articles download_app comes before <output-dir>

So I tried like this and it works fine :

/appcfg.sh -A <your_app_id> -V <your_app_version> download_app <output-dir>


来源:https://stackoverflow.com/questions/7000728/download-code-from-google-app-engine-java-is-now-possible-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!