无法从Appengine下载代码 - Java

时间:2013-02-18 18:26:55

标签: java google-app-engine java-ee

以下是我试图从AppEngine下载源代码时执行的代码:

/Users/sridhar/Desktop/backupdata/appengine-java-sdk-1.7.4/bin/appcfg.sh download_app -A maharasims2 -V 23 download_app .

我收到错误格式错误:

Bad argument: Expected download directory as an argument after 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.

任何人都可以帮助我吗?


我尝试了以下内容并且有效。

第1步: jdk / bin / appcfg.sh -A&lt; apppid&gt; -V&lt;版本&gt; download_app&lt;目录&gt;

示例:

/Users/Desktop/appengine-java-sdk-1.7.4/bin/appcfg.sh -A testapp -V 23 download_app~ / Desktop / backupdata / downloads /

第2步: http://architecturalatrocities.com/post/19073788679/fixing-the-trustanchors-problem-when-running-openjdk-7

注意:  如果遇到以下错误,请使用步骤2:

“java.security.InvalidAlgorithmParameterException:trustAnchors参数必须为非空”

1 个答案:

答案 0 :(得分:2)

选项应该在命令之前

appcfg.sh -A maharasims2 -V 23 download_app .