Repository: cloudstack
Updated Branches:
  refs/heads/master ba59a4333 -> 6330ef023


Removal of test/debug code.

Removed main() method from LocalTemplateDownloader.java

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5f2c732a
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5f2c732a
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5f2c732a

Branch: refs/heads/master
Commit: 5f2c732a2c3ff90c5d21c53477576b754d934305
Parents: 28d18dc
Author: borisroman <bo...@pcextreme.nl>
Authored: Wed Sep 9 11:16:14 2015 +0200
Committer: borisroman <bo...@pcextreme.nl>
Committed: Wed Sep 9 11:16:14 2015 +0200

----------------------------------------------------------------------
 .../cloud/storage/template/LocalTemplateDownloader.java | 12 ------------
 1 file changed, 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5f2c732a/core/src/com/cloud/storage/template/LocalTemplateDownloader.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/storage/template/LocalTemplateDownloader.java 
b/core/src/com/cloud/storage/template/LocalTemplateDownloader.java
index d55a4a2..3d33a21 100644
--- a/core/src/com/cloud/storage/template/LocalTemplateDownloader.java
+++ b/core/src/com/cloud/storage/template/LocalTemplateDownloader.java
@@ -159,16 +159,4 @@ public class LocalTemplateDownloader extends 
TemplateDownloaderBase implements T
             }
         }
     }
-
-    public static void main(String[] args) {
-        String url = "file:///home/ahuang/Download/E3921_P5N7A-VM_manual.zip";
-        TemplateDownloader td = new LocalTemplateDownloader(null, url, 
"/tmp/mysql", TemplateDownloader.DEFAULT_MAX_TEMPLATE_SIZE_IN_BYTES, null);
-        long bytes = td.download(true, null);
-        if (bytes > 0) {
-            System.out.println("Downloaded  (" + bytes + " bytes)" + " in " + 
td.getDownloadTime() / 1000 + " secs");
-        } else {
-            System.out.println("Failed download");
-        }
-
-    }
 }

Reply via email to