[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] it is possible to load config.ini from a different location other than -configuration ?

I think this is probably a bug.  Can you open one?  I suspect most folks that use shared configurations are using the equinox launcher which should read the parent config.ini before even invoking the framework.  But here you are not using the equinox launcher, right?


From:        Cristiano Gavião <cvgaviao@xxxxxxxxx>
To:        equinox-dev@xxxxxxxxxxx
Date:        02/03/2016 02:57 PM
Subject:        Re: [equinox-dev] it is possible to load config.ini from a different location other than -configuration ?
Sent by:        equinox-dev-bounces@xxxxxxxxxxx

Hi again Thomas,

I did a debug again. The only place in the source that I was able to find a code that loads a config.ini file was in the method:
org.eclipse.osgi.internal.framework.EquinoxContainer.loadConfig(EquinoxConfiguration, EquinoxLocations)

private static void loadConfig(EquinoxConfiguration equinoxConfig, EquinoxLocations equinoxLocations) {
        if (Boolean.TRUE.toString().equals(equinoxConfig.getConfiguration(EquinoxConfiguration.PROP_IGNORE_USER_CONFIGURATION)))
        Location configArea = equinoxLocations.getConfigurationLocation();
        if (configArea == null)

        URL location = null;
        try {
            location = new URL(configArea.getURL().toExternalForm() + CONFIG_FILE);
        } catch (MalformedURLException e) {
            // its ok.  This should never happen
        equinoxConfig.mergeConfiguration(loadProperties(location, equinoxConfig));

besides the parent location (from
osgi.sharedConfiguration.area ) were calculated, nothing was loaded from there.


equinox-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit