提交 52b7c7de 编写于 作者: tangyaolong's avatar tangyaolong

清理非必要包

上级 ec58772d
...@@ -83,7 +83,6 @@ public class DynamicModelConfigExService extends DynamicModelConfigServiceImpl { ...@@ -83,7 +83,6 @@ public class DynamicModelConfigExService extends DynamicModelConfigServiceImpl {
JSONObject system = null; JSONObject system = null;
String unzipPath = modelFile.getParent().replace("ibizutil", "dynamicmodel"); String unzipPath = modelFile.getParent().replace("ibizutil", "dynamicmodel");
if(".gz".equals(modelFile.getName().substring(modelFile.getName().lastIndexOf(".")))){ if(".gz".equals(modelFile.getName().substring(modelFile.getName().lastIndexOf(".")))){
String fileName = modelFile.getName().substring(0,modelFile.getName().indexOf("."));
FileHelper.unTarGz(modelFile, unzipPath, true); FileHelper.unTarGz(modelFile, unzipPath, true);
system = getSystem(unzipPath); system = getSystem(unzipPath);
}else if(".zip".equals(modelFile.getName().substring(modelFile.getName().lastIndexOf(".")))){ }else if(".zip".equals(modelFile.getName().substring(modelFile.getName().lastIndexOf(".")))){
......
package cn.ibizlab.util.helper; package cn.ibizlab.util.helper;
import cn.ibizlab.util.domain.FileItem;
import cn.ibizlab.util.errors.BadRequestAlertException;
import com.alibaba.fastjson.JSONArray;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.tools.tar.TarEntry; import org.apache.tools.tar.TarEntry;
import org.apache.tools.tar.TarInputStream; import org.apache.tools.tar.TarInputStream;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.io.*; import java.io.*;
import java.nio.charset.Charset; import java.nio.charset.Charset;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.List;
import java.util.zip.GZIPInputStream; import java.util.zip.GZIPInputStream;
import java.util.zip.ZipEntry; import java.util.zip.ZipEntry;
import java.util.zip.ZipFile; import java.util.zip.ZipFile;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册