public class SettingsManager extends Object
Settings and related options and operations,
it handles building of an instance of Settings when necessary and regenerating after changes.| Constructor and Description |
|---|
SettingsManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
configureSettingsFromFile(File globalSettings,
File userSettings)
Crates an instance of
Settings and configures it from the given file. |
protected org.apache.maven.settings.Settings |
getSettings()
Returns an instance of the
Settings, if it hasn't been created yet, it generates it from the default settings. |
protected boolean |
isOffline()
Returns whether the resolver should work in offline mode or not,
If the programmaticOffline hasn't been set yet, the value is taken from a
Settings instance |
protected void |
setOffline(Boolean programmaticOffline)
Sets programaticOffline to the given value - whether the resolver should work in offline mode or not,
in case that an instance of the
Settings has been created, the value is propagated into it |
public void configureSettingsFromFile(File globalSettings, File userSettings) throws org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
Settings and configures it from the given file.globalSettings - path to global settings fileuserSettings - path to user settings fileorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileExceptionprotected org.apache.maven.settings.Settings getSettings()
Settings, if it hasn't been created yet, it generates it from the default settings.Settingsprotected void setOffline(Boolean programmaticOffline)
Settings has been created, the value is propagated into itprogrammaticOffline - whether the resolver should work in offline mode or notprotected boolean isOffline()
Settings instanceCopyright © 2024 JBoss by Red Hat. All rights reserved.