How to generate client library

限于喜欢 提交于 2019-11-28 05:25:47

问题


I am trying to generate java client library for my existing web application, but each time a select "generate cloud endpoint client library" the eclipse shows progress dialog and freezes.

Is there a command line tool (something like bin/endpoints.sh) that can be used to generate client library?

thanks in advance.

EDIT Thanks Dan, I managed to generate client library by using this command:

$SDK/endpoints.sh get-client-lib com.test.MyEndpoint


回答1:


You should be able to find out at least a little bit more information about the error in generating the library by looking at the Eclipse error log. However, I'm guessing the error is something generic like a 503 error from the service that generates the library.

The most common reason for those types of errors is that you're using an incompatible type in your entity class. Using the command line tool won't help in this case.

However, there are some cases where the command line tool has succeeded when GPE has failed. To generate the library without GPE run the following from the root of your application:

$SDK/bin/endpoints.sh get-java-client-lib helloworld.endpoint.HelloWorldEndpoint

Replace helloworld.endpoint.HelloWorldEndpoint with the space-delimited name(s) of your Endpoint class(es).



来源:https://stackoverflow.com/questions/13556028/how-to-generate-client-library

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