appendFile(sb, "etc/system.properties", lines); replacePropertyValue(sb, "etc/system.properties", "karaf.name", name); String dataStoreFile = "etc/" + Constants.DATASTORE_PID + ".cfg"; appendFile(sb, "etc/system.properties", Arrays.asList(ZkDefs.MINIMUM_PORT + "=" + options.getMinimumPort())); appendFile(sb, "etc/system.properties", Arrays.asList(ZkDefs.MAXIMUM_PORT + "=" + options.getMaximumPort())); appendFile(sb, "etc/system.properties", Arrays.asList("\n")); Object type = syspropEntry.getKey(); Object value = syspropEntry.getValue(); appendFile(sb, "etc/system.properties", Arrays.asList(type + "=" + value)); appendFile(sb, "etc/system.properties", Arrays.asList(HostUtils.PREFERED_ADDRESS_PROPERTY_NAME + "=" + options.getPreferredAddress())); appendFile(sb, "etc/system.properties", Arrays.asList("zookeeper.password = " + options.getZookeeperPassword())); appendFile(sb, "etc/system.properties", Arrays.asList("zookeeper.password.encode = " + zkPasswordEncode)); appendFile(sb, "etc/system.properties", Arrays.asList(CreateEnsembleOptions.ENSEMBLE_AUTOSTART + "=true")); appendFile(sb, "etc/system.properties", Arrays.asList(CreateEnsembleOptions.AGENT_AUTOSTART + "=true")); appendFile(sb, "etc/system.properties", Arrays.asList(CreateEnsembleOptions.PROFILES_AUTOIMPORT_PATH + "=${runtime.home}/fabric/import/")); if (options.getUsers() != null) { appendFile(sb, "etc/users.properties", Arrays.asList("\n")); for (Map.Entry<String, String> entry : options.getUsers().entrySet()) { appendFile(sb, "etc/users.properties", Arrays.asList(entry.getKey() + "=" + entry.getValue())); appendFile(sb, "etc/system.properties", Arrays.asList("zookeeper.url = " + options.getZookeeperUrl())); appendFile(sb, "etc/system.properties", Arrays.asList("zookeeper.password = " + options.getZookeeperPassword())); appendFile(sb, "etc/system.properties", Arrays.asList("zookeeper.password.encode = " + zkPasswordEncode)); appendFile(sb, "etc/system.properties", Arrays.asList(CreateEnsembleOptions.AGENT_AUTOSTART + "=true"));