新增:删除转换后OFFICE、CAD、TIFF、压缩包源文件 默认开启 节约磁盘空间

This commit is contained in:
gaoxiongzaq
2023-04-21 09:56:46 +08:00
parent 57a9dc78ab
commit 61ae49f510
7 changed files with 43 additions and 5 deletions

View File

@ -58,6 +58,7 @@ public class ConfigRefreshComponent {
String BeiAn;
String size;
String password;
Boolean deletesourcefile;
while (true) {
FileReader fileReader = new FileReader(configFilePath);
BufferedReader bufferedReader = new BufferedReader(fileReader);
@ -86,6 +87,7 @@ public class ConfigRefreshComponent {
BeiAn = properties.getProperty("BeiAn", ConfigConstants.DEFAULT_BeiAn_DISABLE);
prohibit = properties.getProperty("prohibit", ConfigConstants.DEFAULT_prohibit_DISABLE);
password = properties.getProperty("sc.password", ConfigConstants.DEFAULT_password_DISABLE);
deletesourcefile = Boolean.parseBoolean(properties.getProperty("delete.source.file", ConfigConstants.DEFAULT_Delete_Source_File_PREVIEW_TYPE));
prohibitArray = prohibit.split(",");
ConfigConstants.setCacheEnabledValueValue(cacheEnabled);
@ -109,6 +111,7 @@ public class ConfigRefreshComponent {
ConfigConstants.setsizeValue(size);
ConfigConstants.setprohibitValue(prohibitArray);
ConfigConstants.setpasswordValue(password);
ConfigConstants.setdeletesourcefileValue(deletesourcefile);
setWatermarkConfig(properties);
bufferedReader.close();
fileReader.close();