Class Configuration
java.lang.Object
org.fedoraproject.xmvn.config.Configuration
Root element of the configuration file.
- Author:
- Mikolaj Izdebski
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArtifactManagement(PackagingRule packagingRule) Method addArtifactManagement.voidaddProperty(String key, String value) Method addProperty.voidaddRepository(Repository repository) Method addRepository.static ConfigurationMethod getArtifactManagement.Get this element contains basic XMvn settings.Get this element contains configuration of XMvn installer.Method getProperties.Method getRepositories.Get this element contains configuration of XMvn resolver.static ConfigurationreadFromXML(Reader reader) static ConfigurationreadFromXML(Path path) voidremoveArtifactManagement(PackagingRule packagingRule) Method removeArtifactManagement.voidremoveRepository(Repository repository) Method removeRepository.voidsetArtifactManagement(List<PackagingRule> artifactManagement) Set this element configures how artifacts should be assigned to individual packages.voidsetBuildSettings(BuildSettings buildSettings) Set this element contains basic XMvn settings.voidsetInstallerSettings(InstallerSettings installerSettings) Set this element contains configuration of XMvn installer.voidsetProperties(Properties properties) Set this element lists system Java properties that should be set before XMvn build is started.voidsetRepositories(List<Repository> repositories) Set list of repositories.voidsetResolverSettings(ResolverSettings resolverSettings) Set this element contains configuration of XMvn resolver.toXML()voidwriteToXML(Writer writer) voidwriteToXML(Path path)
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details
-
fromXML
- Throws:
io.kojan.xml.XMLException
-
readFromXML
- Throws:
io.kojan.xml.XMLException
-
readFromXML
- Throws:
io.kojan.xml.XMLExceptionIOException
-
toXML
- Throws:
io.kojan.xml.XMLException
-
writeToXML
- Throws:
io.kojan.xml.XMLException
-
writeToXML
- Throws:
IOExceptionio.kojan.xml.XMLException
-
addArtifactManagement
Method addArtifactManagement.- Parameters:
packagingRule- a packagingRule object.
-
addProperty
-
addRepository
Method addRepository.- Parameters:
repository- a repository object.
-
getArtifactManagement
-
getBuildSettings
Get this element contains basic XMvn settings.- Returns:
- BuildSettings
-
getInstallerSettings
Get this element contains configuration of XMvn installer.- Returns:
- InstallerSettings
-
getProperties
-
getRepositories
-
getResolverSettings
Get this element contains configuration of XMvn resolver.- Returns:
- ResolverSettings
-
removeArtifactManagement
Method removeArtifactManagement.- Parameters:
packagingRule- a packagingRule object.
-
removeRepository
Method removeRepository.- Parameters:
repository- a repository object.
-
setArtifactManagement
Set this element configures how artifacts should be assigned to individual packages.- Parameters:
artifactManagement- a artifactManagement object.
-
setBuildSettings
Set this element contains basic XMvn settings.- Parameters:
buildSettings- a buildSettings object.
-
setInstallerSettings
Set this element contains configuration of XMvn installer.- Parameters:
installerSettings- a installerSettings object.
-
setProperties
Set this element lists system Java properties that should be set before XMvn build is started.- Parameters:
properties- a properties object.
-
setRepositories
Set list of repositories. Repositories can be used by resolvers as source of artifacts, by installers as target where artifacts should be installed, or by any other component.- Parameters:
repositories- a repositories object.
-
setResolverSettings
Set this element contains configuration of XMvn resolver.- Parameters:
resolverSettings- a resolverSettings object.
-