> + private BlobStore storage; > + private CloudFilesClient rackspace; > + > + /** > + * To get a username and API key see > http://www.jclouds.org/documentation/quickstart/rackspace/ > + * > + * The first argument (args[0]) must be your username > + * The second argument (args[1]) must be your API key > + * The third argument (args[2]) must be the path to the directory > + * The fourth argument (args[3]) must be the container name > + */ > + public static void main(String[] args) { > + UploadDirectoryToCDN uploadDirToCDN = new UploadDirectoryToCDN(); > + > + try { > + uploadDirToCDN.init(args);
Move this to the `UploadDirectoryToCDN` constructor and make the `storage` and `rackspace` variables `final`? --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-examples/pull/11/files#r5438260
