mirror of https://github.com/apache/lucene.git
remove ant dependency for setting test system properties
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@551701 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
79b3ef65c3
commit
63e36e5f9c
|
@ -98,6 +98,10 @@ public class TestHarness {
|
|||
String confFile,
|
||||
String schemaFile) {
|
||||
try {
|
||||
// set some system properties for use by tests
|
||||
System.setProperty("solr.test.sys.prop1", "propone");
|
||||
System.setProperty("solr.test.sys.prop2", "proptwo");
|
||||
|
||||
SolrConfig.initConfig(confFile);
|
||||
core = new SolrCore(dataDirectory, new IndexSchema(schemaFile));
|
||||
builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
|
||||
|
|
Loading…
Reference in New Issue