google-api-java-client:示例
一个愚蠢的问题:有没有一种简单的方法(zip/jar)来下载 google-api-java-client 的示例? (与通过浏览来源进行一一比较)
A silly question: is there an easy way (zip/jar) to download the samples of google-api-java-client? (vs one by one by browsing the sources)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要熟悉 Mercurial 并设置 IDE 才能使用它。一旦您掌握了它,就可以对您的 IDE 说“获取此 URL 上的所有代码并将其视为新模块/项目”。每个示例都指定要使用的 hg URL(例如,http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs#Setup_directions)
差不多,你越早让自己被迫使用 hg 和 maven,对你的未来就越好。
您可能会发现 hginit.com 在 Mercurial 方面很有用。
Apache Maven 文档比以前少了很多,但您仍然会遇到它。
干杯,
大卫.
You'll need to become familiar with Mercurial and get your IDE setup to use it. Once you've got your head around it, then it's a matter of saying to your IDE, "grab all the code at this URL and treat it like a new module/project". Each of the samples specifies the hg URL to use (for example, http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs#Setup_directions)
Pretty much, the sooner you relent and allow yourself to be forced to use hg and maven, the better it will be for you in the future.
You might find hginit.com useful on the Mercurial aspect.
The Apache Maven docs suck less than they used to, but you will still be up against it.
cheers,
David.
Google Code 最近推出了一项功能(有点悄无声息),允许您以 zip 形式下载存储库的内容。
您可以通过访问 https:// /code.google.com/p/google-api-java-client/source/browse/?repo=samples 并点击“下载 zip”链接。
截至目前,最新提交的下载链接为 https: //samples.google-api-java-client.googlecode.com/archive/7a1ee66ffe98b78d54b2bdeca3c95fe440c886d9.zip
Google Code recently launched a feature (somewhat silently) that allows you to download the contents of a repository as a zip.
You can see it by going to https://code.google.com/p/google-api-java-client/source/browse/?repo=samples and clicking on the "Download zip" link.
As of right now, the download link for the latest commit is https://samples.google-api-java-client.googlecode.com/archive/7a1ee66ffe98b78d54b2bdeca3c95fe440c886d9.zip