|
@@ -358,12 +358,7 @@ public class CaseDownService {
|
|
|
static String batName = "start-browser.bat";
|
|
|
public void cpIndexHtml(Integer caseId,String caseOffPath) throws IOException {
|
|
|
log.info("down-offline-cpIndexHtml:{}",caseOffPath);
|
|
|
- File file = new File(FilePath.OFFLINE_TEMPLATE_PATH);
|
|
|
- if(!file.exists()){
|
|
|
- InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("static/offline/template");
|
|
|
- FileUtils.copyInputStreamToFile(inputStream,file);
|
|
|
- }
|
|
|
- FileUtil.copyContent(file,new File(caseOffPath),true);
|
|
|
+ FileUtil.copyContent(new File(FilePath.OFFLINE_TEMPLATE_PATH),new File(caseOffPath),true);
|
|
|
|
|
|
String s = FileUtil.readString(caseOffPath + File.separator + batName, StandardCharsets.UTF_8);
|
|
|
String s1 = s.replaceAll("@caseId", String.valueOf(caseId));
|