> +         uploadDirToCDN.init(args);
> +         uploadDirToCDN.uploadDirectory(args[2], args[3]);
> +         uploadDirToCDN.enableCdnContainer(args[3]);
> +      }
> +      catch (Exception e) {
> +         e.printStackTrace();
> +      }
> +      finally {
> +         uploadDirToCDN.close();
> +      }
> +   }
> +
> +   private void init(String[] args) {
> +      // The provider configures jclouds To use the Rackspace Cloud (US)
> +      // To use the Rackspace Cloud (UK) set the provider to "cloudfiles-uk"
> +      String provider = "cloudfiles-us";

I agree with pulling it up into a constant but not with System.getProperty for 
the same reasons as THREADS.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/11/files#r5438936

Reply via email to