mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 01:36:18 +00:00
sismics docs -> teedy
This commit is contained in:
@@ -22,9 +22,9 @@ public class DirectoryUtil {
|
||||
*/
|
||||
public static Path getBaseDataDirectory() {
|
||||
Path baseDataDir = null;
|
||||
if (StringUtils.isNotBlank(EnvironmentUtil.getDocsHome())) {
|
||||
if (StringUtils.isNotBlank(EnvironmentUtil.getTeedyHome())) {
|
||||
// If the docs.home property is set then use it
|
||||
baseDataDir = Paths.get(EnvironmentUtil.getDocsHome());
|
||||
baseDataDir = Paths.get(EnvironmentUtil.getTeedyHome());
|
||||
} else if (EnvironmentUtil.isUnitTest()) {
|
||||
// For unit testing, use a temporary directory
|
||||
baseDataDir = Paths.get(System.getProperty("java.io.tmpdir"));
|
||||
|
||||
@@ -124,11 +124,11 @@ public class EmailUtil {
|
||||
|
||||
// Application name
|
||||
Config themeConfig = configDao.getById(ConfigType.THEME);
|
||||
String appName = "Sismics Docs";
|
||||
String appName = "Teedy";
|
||||
if (themeConfig != null) {
|
||||
try (JsonReader reader = Json.createReader(new StringReader(themeConfig.getValue()))) {
|
||||
JsonObject themeJson = reader.readObject();
|
||||
appName = themeJson.getString("name", "Sismics Docs");
|
||||
appName = themeJson.getString("name", "Teedy");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ public class EnvironmentUtil {
|
||||
|
||||
private static String MAC_OS_USER_HOME = System.getProperty("user.home");
|
||||
|
||||
private static String DOCS_HOME = System.getProperty("docs.home");
|
||||
private static String TEEDY_HOME = System.getProperty("docs.home");
|
||||
|
||||
/**
|
||||
* In a web application context.
|
||||
@@ -90,8 +90,8 @@ public class EnvironmentUtil {
|
||||
*
|
||||
* @return Home directory
|
||||
*/
|
||||
public static String getDocsHome() {
|
||||
return DOCS_HOME;
|
||||
public static String getTeedyHome() {
|
||||
return TEEDY_HOME;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user