Linux下集成OpenOffice

This commit is contained in:
陈精华
2019-04-16 13:48:57 +08:00
committed by kl
parent 6dc10e8df4
commit 0db6b23bf7
7 changed files with 68 additions and 49 deletions

View File

@ -1,26 +0,0 @@
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;
}
}