add lasta.env
This commit is contained in:
parent
59192ba831
commit
f65b368a86
2 changed files with 10 additions and 0 deletions
|
@ -275,6 +275,11 @@ public class CrawlJob {
|
|||
}
|
||||
}
|
||||
|
||||
final String lastaEnv = System.getProperty("lasta.env");
|
||||
if (StringUtil.isNotBlank(lastaEnv)) {
|
||||
crawlerCmdList.add("-Dlasta.env=" + lastaEnv);
|
||||
}
|
||||
|
||||
crawlerCmdList.add("-Dfess.crawler.process=true");
|
||||
crawlerCmdList.add("-Dfess.log.path=" + (logFilePath != null ? logFilePath : systemHelper.getLogFilePath()));
|
||||
addSystemProperty(crawlerCmdList, "lasta.env", null, null);
|
||||
|
|
|
@ -145,6 +145,11 @@ public class SuggestJob {
|
|||
}
|
||||
}
|
||||
|
||||
final String lastaEnv = System.getProperty("lasta.env");
|
||||
if (StringUtil.isNotBlank(lastaEnv)) {
|
||||
suggestCreatorCmdList.add("-Dlasta.env=" + lastaEnv);
|
||||
}
|
||||
|
||||
suggestCreatorCmdList.add("-Dfess.suggest.process=true");
|
||||
if (logFilePath == null) {
|
||||
final String value = System.getProperty("fess.log.path");
|
||||
|
|
Loading…
Add table
Reference in a new issue