fix #63
This commit is contained in:
parent
decb4b4fd1
commit
1199ebcd98
2 changed files with 0 additions and 18 deletions
|
@ -85,8 +85,6 @@ public class SystemHelper implements Serializable {
|
|||
|
||||
private String solrHome = System.getProperty("solr.solr.home");
|
||||
|
||||
private String solrDataDirName = "fess.solr.data.dir";
|
||||
|
||||
private String javaCommandPath = "java";
|
||||
|
||||
private String filterPathEncoding = Constants.UTF_8;
|
||||
|
@ -215,15 +213,8 @@ public class SystemHelper implements Serializable {
|
|||
+ File.separator);
|
||||
crawlerCmdList.add(buf.toString());
|
||||
|
||||
final String solrDataDir = System.getProperty(solrDataDirName);
|
||||
|
||||
crawlerCmdList.add("-Dfess.crawler.process=true");
|
||||
crawlerCmdList.add("-Dsolr.solr.home=" + solrHome);
|
||||
if (solrDataDir != null) {
|
||||
crawlerCmdList.add("-Dsolr.data.dir=" + solrDataDir);
|
||||
} else {
|
||||
logger.warn("-D" + solrDataDirName + " is not found.");
|
||||
}
|
||||
crawlerCmdList.add("-Dfess.log.file=" + logFilePath);
|
||||
if (crawlerJavaOptions != null) {
|
||||
for (final String value : crawlerJavaOptions) {
|
||||
|
@ -472,14 +463,6 @@ public class SystemHelper implements Serializable {
|
|||
this.solrHome = solrHome;
|
||||
}
|
||||
|
||||
public String getSolrDataDirName() {
|
||||
return solrDataDirName;
|
||||
}
|
||||
|
||||
public void setSolrDataDirName(final String solrDataDirName) {
|
||||
this.solrDataDirName = solrDataDirName;
|
||||
}
|
||||
|
||||
public String getJavaCommandPath() {
|
||||
return javaCommandPath;
|
||||
}
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
<property name="useOwnTmpDir">true</property>
|
||||
<property name="baseHelpLink">"http://fess.codelibs.org/{lang}/8.0/admin/"</property>
|
||||
-->
|
||||
<property name="solrDataDirName">"fess.solr.data.dir"</property>
|
||||
<property name="logFilePath">@System@getProperty("fess.log.file").replaceAll(".out", "_crawler.out")</property>
|
||||
<property name="crawlerJavaOptions">new String[] {
|
||||
"-Djava.awt.headless=true",
|
||||
|
|
Loading…
Add table
Reference in a new issue