|
@@ -25,7 +25,7 @@ public final class OsEnvUtils {
|
|
FONT("font"),
|
|
FONT("font"),
|
|
TEMPLATE("tmpl"),
|
|
TEMPLATE("tmpl"),
|
|
EXCEL("EXCEL_FILE_PATH"),
|
|
EXCEL("EXCEL_FILE_PATH"),
|
|
- CONTACT("pkg_cont");
|
|
|
|
|
|
+ CONTRACT("pkg_cont");
|
|
|
|
|
|
private final String name;
|
|
private final String name;
|
|
}
|
|
}
|
|
@@ -50,21 +50,21 @@ public final class OsEnvUtils {
|
|
String osName = getOSName();
|
|
String osName = getOSName();
|
|
Map<String, String> pathMap = new HashMap<>(2);
|
|
Map<String, String> pathMap = new HashMap<>(2);
|
|
if (osName.contains("linux") || osName.contains("unix")) {
|
|
if (osName.contains("linux") || osName.contains("unix")) {
|
|
- pathMap.put(TargetFile.EXCEL.getName(), "/excel/");
|
|
|
|
- pathMap.put(TargetFile.FONT.getName(), "/");
|
|
|
|
- pathMap.put(TargetFile.CONTACT.getName(), "~/");
|
|
|
|
- pathMap.put(TargetFile.TEMPLATE.getName(), "~/");
|
|
|
|
|
|
+ pathMap.put(TargetFile.EXCEL.getName(), "/serving/server/cso_prod/excel/");
|
|
|
|
+ pathMap.put(TargetFile.FONT.getName(), "/serving/server/cso_prod/font/");
|
|
|
|
+ pathMap.put(TargetFile.CONTRACT.getName(), "/serving/server/cso_prod/contract/");
|
|
|
|
+ pathMap.put(TargetFile.TEMPLATE.getName(), "/serving/server/cso_prod/template/");
|
|
}
|
|
}
|
|
if (osName.contains("mac")) {
|
|
if (osName.contains("mac")) {
|
|
pathMap.put(TargetFile.EXCEL.getName(), "~/");
|
|
pathMap.put(TargetFile.EXCEL.getName(), "~/");
|
|
pathMap.put(TargetFile.FONT.getName(), "~/");
|
|
pathMap.put(TargetFile.FONT.getName(), "~/");
|
|
- pathMap.put(TargetFile.CONTACT.getName(), "~/");
|
|
|
|
|
|
+ pathMap.put(TargetFile.CONTRACT.getName(), "~/");
|
|
pathMap.put(TargetFile.TEMPLATE.getName(), "~/");
|
|
pathMap.put(TargetFile.TEMPLATE.getName(), "~/");
|
|
}
|
|
}
|
|
if (osName.contains("windows")) {
|
|
if (osName.contains("windows")) {
|
|
pathMap.put(TargetFile.EXCEL.getName(), "D:\\");
|
|
pathMap.put(TargetFile.EXCEL.getName(), "D:\\");
|
|
pathMap.put(TargetFile.FONT.getName(), "D:\\");
|
|
pathMap.put(TargetFile.FONT.getName(), "D:\\");
|
|
- pathMap.put(TargetFile.CONTACT.getName(), "D:\\");
|
|
|
|
|
|
+ pathMap.put(TargetFile.CONTRACT.getName(), "D:\\");
|
|
pathMap.put(TargetFile.TEMPLATE.getName(), "D:\\");
|
|
pathMap.put(TargetFile.TEMPLATE.getName(), "D:\\");
|
|
}
|
|
}
|
|
return pathMap;
|
|
return pathMap;
|