zkClient.makePath(destPath, file, false, true);
}
private void uploadConfFiles() throws Exception {
// upload our own config files
SolrZkClient zkClient = new SolrZkClient(zkServer.getZkAddress(), 10000);
putConfig(zkClient, new File(RESOURCES_DIR + "/solr/solrcloud"),
"solrconfig.xml");
putConfig(zkClient, MINIMR_CONF_DIR, "schema.xml");
putConfig(zkClient, MINIMR_CONF_DIR, "elevate.xml");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_en.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_ar.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_bg.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_ca.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_cz.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_da.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_el.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_es.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_eu.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_de.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_fa.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_fi.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_fr.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_ga.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_gl.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_hi.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_hu.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_hy.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_id.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_it.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_ja.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_lv.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_nl.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_no.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_pt.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_ro.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_ru.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_sv.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_th.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stopwords_tr.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/contractions_ca.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/contractions_fr.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/contractions_ga.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/contractions_it.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/stemdict_nl.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "lang/hyphenations_ga.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "stopwords.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "protwords.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "currency.xml");
putConfig(zkClient, MINIMR_CONF_DIR, "open-exchange-rates.json");
putConfig(zkClient, MINIMR_CONF_DIR, "mapping-ISOLatin1Accent.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "old_synonyms.txt");
putConfig(zkClient, MINIMR_CONF_DIR, "synonyms.txt");
zkClient.close();
}