Writer wr = new OutputStreamWriter(new FileOutputStream(featuresXmlFile), "UTF-8");
writeDependenciesFeature(wr, subsystem.getOptions(ProvisionOption.class));
wr.close();
String repoUrl = "file:"
+ featuresXmlFile.toString().replaceAll("\\\\", "/").replaceAll(" ", "%20");
return new KarafFeaturesOption(repoUrl, "test-dependencies");
}
catch (IOException e) {
throw new RuntimeException(e.getMessage(), e);
}
}