* Copies all files in a user-defined configuration directory to the JBoss AS
* configuration directory.
*/
private void installConfiguration() {
if (!configSourceDir.exists()) {
throw new TestContainerException("configuration directory " + configSourceDir
+ " does not exist");
}
configTargetDir = new File(wildFlyHome, "standalone/configuration");
for (File configFile : configSourceDir.listFiles()) {
if (!configFile.isDirectory()) {
File targetFile = new File(configTargetDir, configFile.getName());
try {
LOG.info("copying {} to {}", configFile, targetFile);
FileUtils.copyFile(configFile, targetFile, null);
}
catch (IOException exc) {
throw new TestContainerException("error copying config file " + configFile, exc);
}
}
}
}