Remove Chinese charactor
authornancylizi <li.zi30@zte.com.cn>
Mon, 19 Sep 2016 07:28:25 +0000 (15:28 +0800)
committernancylizi <li.zi30@zte.com.cn>
Mon, 19 Sep 2016 07:28:25 +0000 (15:28 +0800)
Change-Id: I7457b30f67498c6dccf30350e667e6288c21b8a3
Signed-off-by: nancylizi <li.zi30@zte.com.cn>
catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/common/ZipCompressor.java
catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/filemanage/http/ToolUtil.java
catalog-core/catalog-mgr/src/main/java/org/openo/commontosca/catalog/ftp/FtpUtil.java

index e378c36..ab55627 100644 (file)
@@ -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);
     }
   }
index 97abd3a..931c5f3 100644 (file)
@@ -80,7 +80,7 @@ public class ToolUtil {
       }
     }
     if (!flag) {
-      String message = "Copy catagory " + srcDirName + " to " + destDirName + " failed";
+      String message = "Copy catagory " + srcDirName + " to " + destDirName + " failed!";
       LOGGER.error(message);
       return false;
     } else {
@@ -99,7 +99,7 @@ public class ToolUtil {
     File srcFile = new File(srcFileName);
 
     if (!srcFile.exists()) {
-      String message = "Source file " + srcFileName + " not exist !";
+      String message = "Source file " + srcFileName + " not exist !";
       LOGGER.error(message);
       return false;
     } else if (!srcFile.isFile()) {
index 01ab5a2..84d6541 100644 (file)
@@ -157,7 +157,6 @@ public class FtpUtil {
         OutputStream outputStream = null;
         try {
           File locaFile = new File(relativeLocalPath + ftpFile.getName());
-          // 判断文件是否存在,存在则返回
           if (locaFile.exists()) {
             return;
           } else {
@@ -174,7 +173,7 @@ public class FtpUtil {
               outputStream.close();
             }
           } catch (IOException e1) {
-            logger.error("输出文件流异常");
+            logger.error("OutputStream error !");
           }
         }
       }