[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] [HOW] Setting ANT_HOME properties in runtime

Hi,

I would like to change ANT_HOME property of Ant plugin from the code. Property changes, but JARs list is still the same (JARs from the old ANT_HOME are in list and they are used by Ant plugin). How can I force Ant plugin to reload/recalculate JARs list and use JARs from new ANT_HOME?

I try to change ANT_HOME using the following code:

[code]
AntCorePreferences antPreferences = AntCorePlugin.getPlugin().getPreferences();
antPreferences.setAntHome(...);
antPreferences.updatePluginPreferences ();
[/code]

Thanks in advance!