[ARVADOS] updated: abcde4a0bed9e80fc0925e70d151c7893043bc82
git at public.curoverse.com
git at public.curoverse.com
Wed Apr 30 06:52:53 EDT 2014
Summary of changes:
sdk/java/README | 2 +-
.../main/java/org/arvados/sdk/java/Arvados.java | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
via abcde4a0bed9e80fc0925e70d151c7893043bc82 (commit)
from c13b9d5300b7f778e2fc05f9d043db4122d15aa1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit abcde4a0bed9e80fc0925e70d151c7893043bc82
Author: radhika <radhika at radhika>
Date: Wed Apr 30 06:52:17 2014 -0400
2525: when using main method, print output to console.
diff --git a/sdk/java/README b/sdk/java/README
index 4c28633..d270ccb 100644
--- a/sdk/java/README
+++ b/sdk/java/README
@@ -47,7 +47,7 @@
java -cp target/java-1.0-SNAPSHOT-jar-with-dependencies.jar org.arvados.sdk.java.Arvados help discover
- - Getting the discovery document (please see details about accessing log file below to see the document)
+ - Getting the discovery document
java -cp target/java-1.0-SNAPSHOT-jar-with-dependencies.jar org.arvados.sdk.java.Arvados discover arvados v1
diff --git a/sdk/java/src/main/java/org/arvados/sdk/java/Arvados.java b/sdk/java/src/main/java/org/arvados/sdk/java/Arvados.java
index d453ac5..f8a7dad 100644
--- a/sdk/java/src/main/java/org/arvados/sdk/java/Arvados.java
+++ b/sdk/java/src/main/java/org/arvados/sdk/java/Arvados.java
@@ -52,7 +52,7 @@ public class Arvados {
public static void main(String[] args) throws Exception {
if (args.length == 0) {
showMainHelp();
- error(null, "Missing input args");
+ error(null, "Missing input args");
} else {
String command = args[0];
if (command.equals("help")) {
@@ -65,7 +65,8 @@ public class Arvados {
}
Arvados arv = new Arvados(args[1]);
- arv.call(params);
+ String response = arv.call(params);
+ System.out.println (response);
} else if (command.equals("discover")) {
List<String> params = Arrays.asList(args);
@@ -74,7 +75,8 @@ public class Arvados {
}
Arvados arv = new Arvados(args[1]);
- arv.discover(params);
+ RestDescription restDescription = arv.discover(params);
+ System.out.println(restDescription);
} else {
error(null, "unknown command: " + command);
}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list