ScanFileDownLoadZip.jsp
1.34 KB
<%@ page language="java" contentType="text/html; charset=UTF-8" %><%@ page import="weaver.general.GCONST" %><%@ page import="java.io.File" %><%@ page import="java.util.ArrayList" %><%@ page import="java.util.List" %><%@ include file="/system/upgradetoe9/MigrationOperation.jsp"%><%
wscheck.ZipUtils PackFileUtil = new wscheck.ZipUtils();
List bhSelectList = new ArrayList();
String rootpath=GCONST.getRootPath();
bhSelectList.add(rootpath+"system"+File.separatorChar+"upgradetoe9"+File.separatorChar+"report"+File.separatorChar+"migrationFile.txt");
bhSelectList.add(rootpath+"system"+File.separatorChar+"upgradetoe9"+File.separatorChar+"MigrationFilePack.jsp");
bhSelectList.add(rootpath+"system"+File.separatorChar+"upgradetoe9"+File.separatorChar+"MigrationFilePackOperation.jsp");
bhSelectList.add(rootpath+"system"+File.separatorChar+"upgradetoe9"+File.separatorChar+"js"+File.separatorChar+"jquery-1.8.3.min_wev8.js");
File allecologyzip = new File(rootpath + "system"+File.separatorChar+"upgradetoe9"+File.separatorChar+"resource"+File.separatorChar+"FileMigration.zip");
if (allecologyzip.exists()) {
allecologyzip.delete();
}
PackFileUtil.execute(bhSelectList, rootpath + "system"+File.separatorChar+"upgradetoe9"+File.separatorChar+"resource"+File.separatorChar+"FileMigration.zip", rootpath, "ecology");
%>