public static Option [ ] editConfigurationFilePut ( final String configurationFilePath , File source , String ... keysToUseFromSource ) { return createOptionListFromFile ( source , new FileOptionFactory ( ) { @ Override public Option createOption ( String key , Object value ) { return new KarafDistributionConfigurationFilePutOption ( configurationFilePath , key , value ) ; } } , keysToUseFromSource ) ; }
This option allows to configure each configuration file based on the karaf . home location . The value is put which means it is either replaced or added . For simpler configuration you can add a file source . If you want to put all values from this file do not configure any keysToUseFromSource ; otherwise define them to use only those specific values .