I want to run multiple Fuse instances using Pax Exam on the same machine, and I want to reconfigure all used ports to make this possible. Unfortunately one port is defined in the etc/jetty.xml. Is there a way to have it changed somehow? I see that there is a set of options called KarafDistributionOption.editConfigurationFile*
but they work only with property files.
Hmm. Got it:
KarafDistributionOption.replaceConfigurationFile(configurationFilePath, source)
So what I do is: