This commit is contained in:
Eugene Livis 2020-10-20 11:31:17 -04:00
parent cd878d938c
commit 5d155e7930

View File

@ -301,8 +301,6 @@ public class Server {
// Always copy the config files, as they may have changed. Othweise potentially stale Solr configuration is being used. // Always copy the config files, as they may have changed. Othweise potentially stale Solr configuration is being used.
if (!solr4Home.toFile().exists()) { if (!solr4Home.toFile().exists()) {
Files.createDirectory(solr4Home); Files.createDirectory(solr4Home);
} else {
FileUtil.deleteDir(solr4Home.toFile());
} }
Files.copy(Paths.get(solr4Folder.getAbsolutePath(), "solr", "solr.xml"), solr4Home.resolve("solr.xml"), REPLACE_EXISTING); //NON-NLS Files.copy(Paths.get(solr4Folder.getAbsolutePath(), "solr", "solr.xml"), solr4Home.resolve("solr.xml"), REPLACE_EXISTING); //NON-NLS
Files.copy(Paths.get(solr4Folder.getAbsolutePath(), "solr", "zoo.cfg"), solr4Home.resolve("zoo.cfg"), REPLACE_EXISTING); //NON-NLS Files.copy(Paths.get(solr4Folder.getAbsolutePath(), "solr", "zoo.cfg"), solr4Home.resolve("zoo.cfg"), REPLACE_EXISTING); //NON-NLS