|
@@ -59,6 +59,13 @@ public class CreateObjUtil {
|
|
log.info("解压rar完毕:" + command);
|
|
log.info("解压rar完毕:" + command);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public static void unRarWithPath(String rarPath,String dataPath) throws Exception{
|
|
|
|
+ log.info("解压rar开始");
|
|
|
|
+ String command = "unrar x " + rarPath + " " + dataPath;
|
|
|
|
+ callshell(command);
|
|
|
|
+ log.info("解压rar完毕:" + command);
|
|
|
|
+ }
|
|
|
|
+
|
|
public static void unZip(String zipPath,String dataPath) throws Exception{
|
|
public static void unZip(String zipPath,String dataPath) throws Exception{
|
|
log.info("解压zip开始");
|
|
log.info("解压zip开始");
|
|
String command = "unzip -O GBK/GB18030CP936 " + zipPath + " -d " + dataPath;
|
|
String command = "unzip -O GBK/GB18030CP936 " + zipPath + " -d " + dataPath;
|