Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(118)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 6571067: add jcompute java sample.

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by bburns
Modified:
13 years, 3 months ago
Reviewers:
jbsimon, rmistry, marccohen
CC:
yanivi
Visibility:
Public.
add jcompute java sample.

Patch Set 1 #

Total comments: 4
Created: 13 years, 3 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, --15 lines) Patch
M jcompute-java/.classpath View 1 chunk +16 lines, -0 lines 0 comments Download
M jcompute-java/.project View 1 chunk +17 lines, -0 lines 0 comments Download
M jcompute-java/README View 1 chunk +4 lines, -0 lines 0 comments Download
M jcompute-java/bin/com/google/cloud/api/example/JCompute.class View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/bin/com/google/cloud/api/example/PromptReceiver.class View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/bin/com/google/cloud/api/example/VerificationCodeReceiver.class View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/commons-logging-1.1.1.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/google-api-client-1.11.0-beta.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/google-api-services-compute-v1beta12-rev4-1.8.0-beta.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/google-http-client-1.11.0-beta.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/google-http-client-gson-1.11.0-beta.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/google-http-client-jackson-1.11.0-beta.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/google-oauth-client-1.11.0-beta.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/gson-2.1.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/guava-11.0.1.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/httpclient-4.0.3.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/httpcore-4.0.1.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/libs/jackson-core-asl-1.9.9.jar View 0 chunks +-1 lines, --1 lines 0 comments Download
M jcompute-java/src/com/google/cloud/api/example/JCompute.java View 1 chunk +386 lines, -0 lines 4 comments Download
M jcompute-java/src/com/google/cloud/api/example/PromptReceiver.java View 1 chunk +46 lines, -0 lines 0 comments Download
M jcompute-java/src/com/google/cloud/api/example/VerificationCodeReceiver.java View 1 chunk +32 lines, -0 lines 0 comments Download
Total messages: 5
|
bburns
Please take a look. Thanks! --brendan
13 years, 3 months ago (2012年09月27日 18:48:02 UTC) #1
Please take a look. Thanks!
--brendan
Sign in to reply to this message.
yanivi
Please take a look at our other Java samples and try to follow their structure. ...
13 years, 3 months ago (2012年09月27日 22:07:24 UTC) #2
Please take a look at our other Java samples and try to follow their structure. 
One particular feature is the use of Maven for build/running the sample and
therefore remove the need to put jars in source control.
https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cl...
File jcompute-java/src/com/google/cloud/api/example/JCompute.java (right):
https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cl...
jcompute-java/src/com/google/cloud/api/example/JCompute.java:2: * Copyright (c)
2011 Google Inc.
no copyright line please
(this is a change in legal requirements for opensource code at Google)
https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cl...
jcompute-java/src/com/google/cloud/api/example/JCompute.java:97: public static
Credential authorize(
We've significantly improved the OAuth 2.0 command-line experience in the Java
library with version 1.11.0-beta. For an example, please take a look at the
authorize() method in:
http://code.google.com/p/google-api-java-client/source/browse/calendar-cmdlin... 
Sign in to reply to this message.
bburns
Are there docs for using maven somewhere? Thanks --brendan On Thu, Sep 27, 2012 at ...
13 years, 3 months ago (2012年09月27日 23:13:53 UTC) #3
Are there docs for using maven somewhere?
Thanks
--brendan
On Thu, Sep 27, 2012 at 3:07 PM, <yanivi@google.com> wrote:
> Please take a look at our other Java samples and try to follow their
> structure. One particular feature is the use of Maven for build/running
> the sample and therefore remove the need to put jars in source control.
>
>
> https://codereview.appspot.**com/6571067/diff/1/jcompute-**
>
java/src/com/google/cloud/api/**example/JCompute.java<https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cloud/api/example/JCompute.java>
> File jcompute-java/src/com/google/**cloud/api/example/JCompute.**java
> (right):
>
> https://codereview.appspot.**com/6571067/diff/1/jcompute-**
>
java/src/com/google/cloud/api/**example/JCompute.java#newcode2<https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cloud/api/example/JCompute.java#newcode2>
> jcompute-java/src/com/google/**cloud/api/example/JCompute.**java:2: *
> Copyright (c) 2011 Google Inc.
> no copyright line please
> (this is a change in legal requirements for opensource code at Google)
>
> https://codereview.appspot.**com/6571067/diff/1/jcompute-**
>
java/src/com/google/cloud/api/**example/JCompute.java#**newcode97<https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cloud/api/example/JCompute.java#newcode97>
> jcompute-java/src/com/google/**cloud/api/example/JCompute.**java:97:
> public
> static Credential authorize(
> We've significantly improved the OAuth 2.0 command-line experience in
> the Java library with version 1.11.0-beta. For an example, please take
> a look at the authorize() method in:
>
> http://code.google.com/p/**google-api-java-client/source/**
> browse/calendar-cmdline-**sample/src/main/java/com/**
> google/api/services/samples/**calendar/cmdline/**CalendarSample.java?repo=
>
**samples<http://code.google.com/p/google-api-java-client/source/browse/calendar-cmdline-sample/src/main/java/com/google/api/services/samples/calendar/cmdline/CalendarSample.java?repo=samples>
>
>
https://codereview.appspot.**com/6571067/<https://codereview.appspot.com/6571...
>
Sign in to reply to this message.
yanivi
There is some basic information available here: http://maven.apache.org/ But realistically the easiest way for you ...
13 years, 3 months ago (2012年09月29日 00:03:12 UTC) #4
There is some basic information available here:
http://maven.apache.org/
But realistically the easiest way for you to progress is to copy an
existing sample and follow the instructions.html file for actually
compiling. I understand it can be a process to learn how to set up a Maven
project at the beginning, but in the long term it makes it much easier to
maintain.
-- Yaniv
On Thu, Sep 27, 2012 at 7:13 PM, Brendan Burns <bburns@google.com> wrote:
> Are there docs for using maven somewhere?
>
> Thanks
> --brendan
>
>
> On Thu, Sep 27, 2012 at 3:07 PM, <yanivi@google.com> wrote:
>
>> Please take a look at our other Java samples and try to follow their
>> structure. One particular feature is the use of Maven for build/running
>> the sample and therefore remove the need to put jars in source control.
>>
>>
>> https://codereview.appspot.**com/6571067/diff/1/jcompute-**
>>
java/src/com/google/cloud/api/**example/JCompute.java<https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cloud/api/example/JCompute.java>
>> File jcompute-java/src/com/google/**cloud/api/example/JCompute.**java
>> (right):
>>
>> https://codereview.appspot.**com/6571067/diff/1/jcompute-**
>>
java/src/com/google/cloud/api/**example/JCompute.java#newcode2<https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cloud/api/example/JCompute.java#newcode2>
>> jcompute-java/src/com/google/**cloud/api/example/JCompute.**java:2: *
>> Copyright (c) 2011 Google Inc.
>> no copyright line please
>> (this is a change in legal requirements for opensource code at Google)
>>
>> https://codereview.appspot.**com/6571067/diff/1/jcompute-**
>>
java/src/com/google/cloud/api/**example/JCompute.java#**newcode97<https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cloud/api/example/JCompute.java#newcode97>
>> jcompute-java/src/com/google/**cloud/api/example/JCompute.**java:97:
>> public
>> static Credential authorize(
>> We've significantly improved the OAuth 2.0 command-line experience in
>> the Java library with version 1.11.0-beta. For an example, please take
>> a look at the authorize() method in:
>>
>> http://code.google.com/p/**google-api-java-client/source/**
>> browse/calendar-cmdline-**sample/src/main/java/com/**
>> google/api/services/samples/**calendar/cmdline/**
>>
CalendarSample.java?repo=**samples<http://code.google.com/p/google-api-java-client/source/browse/calendar-cmdline-sample/src/main/java/com/google/api/services/samples/calendar/cmdline/CalendarSample.java?repo=samples>
>>
>>
https://codereview.appspot.**com/6571067/<https://codereview.appspot.com/6571...
>>
>
>
Sign in to reply to this message.
marccohen
- I agree with Yaniv, in my experience maven is a really great way to ...
13 years, 3 months ago (2012年10月11日 23:20:40 UTC) #5
- I agree with Yaniv, in my experience maven is a really great way to maintain
Java apps (also his point about trying to make this more consistent with the
existing java samples).
- Does it make sense to include all those products? (class files, jar files,
etc.). It seems like the jars are external deps, which should perhaps be
referenced, not copied and the class files are generated.
https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cl...
File jcompute-java/src/com/google/cloud/api/example/JCompute.java (right):
https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cl...
jcompute-java/src/com/google/cloud/api/example/JCompute.java:9: * Unless
required by applicable law or agreed to in writing, software distributed under
the License
line wraps (global)
https://codereview.appspot.com/6571067/diff/1/jcompute-java/src/com/google/cl...
jcompute-java/src/com/google/cloud/api/example/JCompute.java:65:
"https://www.googleapis.com/compute/v1beta12";
latest is 13 (which shows how long it took me to review this :).
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /