Windows下集成OpenOffice

This commit is contained in:
陈精华
2019-04-15 10:23:03 +08:00
committed by kl
parent 02e116fd8a
commit 55537d3a25
3613 changed files with 672523 additions and 22 deletions

View File

@@ -0,0 +1,26 @@
package cn.keking.utils;
import java.io.File;
/**
* @auther: chenjh
* @time: 2019/4/15 9:11
* @description
*/
public class HomePathUtils {
public static String getHomePath() {
String userDir = System.getenv("KKFILEVIEW_BIN_FOLDER");
if (userDir == null) {
userDir = System.getProperty("user.dir");
}
if (userDir.endsWith("bin")) {
userDir = userDir.substring(0, userDir.length() - 4);
} else {
String separator = File.separator;
userDir = userDir + separator + "jodconverter-web" + separator + "src" + separator + "main";
}
return userDir;
}
}