public class ModuleBuilder
extends java.lang.Object
| Constructor and Description |
|---|
ModuleBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ModuleBuilder |
addArtifact(Artifact artifact)
Adds the given artifact to the artifacts list
|
ModuleBuilder |
addDependency(Dependency dependency)
Adds the given dependency to the dependencies list
|
ModuleBuilder |
addExcludedArtifact(Artifact artifact)
Adds the given artifact to the exclude artifacts list
|
ModuleBuilder |
addProperty(java.lang.Object key,
java.lang.Object value)
Adds the given property to the properties object
|
ModuleBuilder |
artifacts(java.util.List<Artifact> artifacts)
Sets the list of artifacts that have been deployed by the module
|
Module |
build()
Assembles the module class
|
ModuleBuilder |
dependencies(java.util.List<Dependency> dependencies)
Sets the dependencies of the module
|
ModuleBuilder |
excludedArtifacts(java.util.List<Artifact> excludedArtifacts)
Sets the list of artifacts that have been excluded by the module
|
ModuleBuilder |
id(java.lang.String id)
Sets the ID of the module
|
ModuleBuilder |
md5(java.lang.String md5)
Sets md5 of the module
|
ModuleBuilder |
properties(java.util.Properties properties)
Sets the properties of the module
|
ModuleBuilder |
repository(java.lang.String repository)
Sets the repository of the module
|
ModuleBuilder |
sha1(java.lang.String sha1)
Sets sha1 of the module
|
ModuleBuilder |
type(ModuleType type)
Sets the type of the module
|
public Module build()
public ModuleBuilder type(ModuleType type)
type - Module typepublic ModuleBuilder id(java.lang.String id)
id - Module IDpublic ModuleBuilder repository(java.lang.String repository)
repository - Module repositorypublic ModuleBuilder sha1(java.lang.String sha1)
sha1 - Module sha1public ModuleBuilder md5(java.lang.String md5)
md5 - Module md5public ModuleBuilder artifacts(java.util.List<Artifact> artifacts)
artifacts - Module deployed artifactspublic ModuleBuilder excludedArtifacts(java.util.List<Artifact> excludedArtifacts)
excludedArtifacts - Module excluded artifactspublic ModuleBuilder addArtifact(Artifact artifact)
artifact - Artifact to addpublic ModuleBuilder addExcludedArtifact(Artifact artifact)
artifact - Artifact to addpublic ModuleBuilder dependencies(java.util.List<Dependency> dependencies)
dependencies - Module dependenciespublic ModuleBuilder addDependency(Dependency dependency)
dependency - Dependency to addpublic ModuleBuilder properties(java.util.Properties properties)
properties - Module propertiespublic ModuleBuilder addProperty(java.lang.Object key, java.lang.Object value)
key - Key of property to addvalue - Value of property to add