.put("transport.tcp.port", port)
.put("path.home", home);
-// if (props.booleanOf(ES_DEBUG_PROPERTY, false)) {
- esSettings
- .put("http.enabled", true)
- .put("http.port", 9200);
-// } else {
-// esSettings.put("http.enabled", false);
-// }
+ if (props.booleanOf(ES_DEBUG_PROPERTY, false)) {
+ esSettings
+ .put("http.enabled", true)
+ .put("http.port", 9200);
+ } else {
+ esSettings.put("http.enabled", false);
+ }
node = NodeBuilder.nodeBuilder()
.settings(esSettings)
public void start() {
// Start ES
- this.startES(NetworkUtils.freePort());
+ //this.startES(NetworkUtils.freePort());
- while (!elasticsearch.isReady()) {
- LOGGER.info("Waiting for ES");
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
- }
// Start SQ
- //this.startSQ(NetworkUtils.freePort());
+ this.startSQ(NetworkUtils.freePort());
// // And monitor the activity
// try {
"esHome", env.rootDir().getAbsolutePath()),
"ES", port,
env.rootDir().getAbsolutePath() + "/lib/search/sonar-search-4.5-SNAPSHOT.jar");
+
+ while (!elasticsearch.isReady()) {
+ LOGGER.info("Waiting for ES");
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
+ }
}
public static void main(String... args) throws InterruptedException, IOException, URISyntaxException {