diff options
Diffstat (limited to 'catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ZipCompressor.java')
-rw-r--r-- | catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ZipCompressor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ZipCompressor.java b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ZipCompressor.java index e378c36c..ab556277 100644 --- a/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ZipCompressor.java +++ b/catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ZipCompressor.java @@ -67,7 +67,7 @@ public class ZipCompressor { public void compress(String srcPathName) { File file = new File(srcPathName); if (!file.exists()) { - throw new RuntimeException(srcPathName + "not exist!"); + throw new RuntimeException(srcPathName + "not exist!"); } try { FileOutputStream fileOutputStream = new FileOutputStream(zipFile); @@ -83,10 +83,10 @@ public class ZipCompressor { private void compress(File file, ZipOutputStream out, String basedir) { if (file.isDirectory()) { - System.out.println("compress:" + basedir + file.getName()); + System.out.println("compress: " + basedir + file.getName()); this.compressDirectory(file, out, basedir); } else { - System.out.println("compress:" + basedir + file.getName()); + System.out.println("compress: " + basedir + file.getName()); this.compressFile(file, out, basedir); } } |