You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by an...@apache.org on 2014/06/09 16:09:52 UTC

[1/2] git commit: Updating Google examples pom.xml

Repository: jclouds-examples
Updated Branches:
  refs/heads/master 13aea370e -> fb328b5a8


Updating Google examples pom.xml

See similarly recent changes to the Rackspace one.


Project: http://git-wip-us.apache.org/repos/asf/jclouds-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-examples/commit/070e999a
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-examples/tree/070e999a
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-examples/diff/070e999a

Branch: refs/heads/master
Commit: 070e999a7eb5a9152bc4fe14f69499079b5fb2e5
Parents: 13aea37
Author: Mikołaj Zalewski <mi...@google.com>
Authored: Fri May 9 13:27:05 2014 +0200
Committer: Andrew Phillips <an...@apache.org>
Committed: Mon Jun 9 10:09:31 2014 -0400

----------------------------------------------------------------------
 google/pom.xml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-examples/blob/070e999a/google/pom.xml
----------------------------------------------------------------------
diff --git a/google/pom.xml b/google/pom.xml
index d7946be..7dbb0b0 100644
--- a/google/pom.xml
+++ b/google/pom.xml
@@ -20,12 +20,15 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
+  <version>1.7.3-SNAPSHOT</version>
+  <name>google-examples</name>
+
   <properties>
-    <jclouds.version>1.7.1</jclouds.version>
+    <jclouds.version>1.7.2</jclouds.version>
   </properties>
+
   <groupId>org.apache.jclouds.examples</groupId>
   <artifactId>google-examples</artifactId>
-  <version>1.0</version>
   <dependencies>
     <dependency>
       <groupId>org.apache.jclouds.driver</groupId>


[2/2] git commit: Small improvements to the CreateServer GCE example.

Posted by an...@apache.org.
Small improvements to the CreateServer GCE example.


Project: http://git-wip-us.apache.org/repos/asf/jclouds-examples/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-examples/commit/fb328b5a
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-examples/tree/fb328b5a
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-examples/diff/fb328b5a

Branch: refs/heads/master
Commit: fb328b5a84040563ab0a76c29e6891cbec00c0a2
Parents: 070e999
Author: Mikołaj Zalewski <mi...@google.com>
Authored: Fri May 9 13:30:14 2014 +0200
Committer: Andrew Phillips <an...@apache.org>
Committed: Mon Jun 9 10:09:33 2014 -0400

----------------------------------------------------------------------
 .../examples/google/computeengine/CreateServer.java       | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds-examples/blob/fb328b5a/google/src/main/java/org/jclouds/examples/google/computeengine/CreateServer.java
----------------------------------------------------------------------
diff --git a/google/src/main/java/org/jclouds/examples/google/computeengine/CreateServer.java b/google/src/main/java/org/jclouds/examples/google/computeengine/CreateServer.java
index 335a0e5..66cb9bd 100644
--- a/google/src/main/java/org/jclouds/examples/google/computeengine/CreateServer.java
+++ b/google/src/main/java/org/jclouds/examples/google/computeengine/CreateServer.java
@@ -134,7 +134,7 @@ public class CreateServer implements Closeable {
       Set<? extends Hardware> profiles = computeService.listHardwareProfiles();
       Hardware result = null;
 
-      for (Hardware profile: profiles) {
+      for (Hardware profile : profiles) {
          System.out.format("    %s%n", profile);
          if (profile.getId().equals(ZONE + "/f1-micro")) {
             result = profile;
@@ -142,8 +142,9 @@ public class CreateServer implements Closeable {
       }
 
       if (result == null) {
-         System.err.println("f1-micro flavor not found. Using first flavor found.%n");
+         System.err.println("f1-micro flavor not found. Using first flavor found:");
          result = profiles.iterator().next();
+         System.err.format("-> %s%n", result);
       }
       return result;
    }
@@ -159,7 +160,7 @@ public class CreateServer implements Closeable {
       Set<? extends Image> images = computeService.listImages();
       Image result = null;
 
-      for (Image image: images) {
+      for (Image image : images) {
          System.out.format("    %s%n", image);
          if (image.getOperatingSystem().getVersion().equals("debian.7.wheezy")) {
             result = image;
@@ -167,8 +168,9 @@ public class CreateServer implements Closeable {
       }
 
       if (result == null) {
-         System.err.println("Image with Debian Wheezy operating system not found. Using first image found.%n");
+         System.err.println("Image with Debian Wheezy operating system not found. Using first image found:");
          result = images.iterator().next();
+         System.err.format("-> %s%n", result);
       }
 
       return result;