public class ArtifactBuilder
extends java.lang.Object
| Constructor and Description |
|---|
ArtifactBuilder(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
ArtifactBuilder |
addProperties(java.util.Properties properties)
Adds properties to the properties object
|
ArtifactBuilder |
addProperty(java.lang.Object key,
java.lang.Object value)
Adds the given property to the properties object
|
Artifact |
build()
Assembles the artifact class
|
ArtifactBuilder |
localPath(java.lang.String localPath)
Sets the local path of the artifact
|
ArtifactBuilder |
md5(java.lang.String md5)
Sets the MD5 checksum of the artifact
|
ArtifactBuilder |
name(java.lang.String name)
Sets the name of the artifact
|
ArtifactBuilder |
properties(java.util.Properties properties)
Sets the properties of the artifact
|
ArtifactBuilder |
remotePath(java.lang.String remotePath)
Sets the remote path of the artifact
|
ArtifactBuilder |
sha1(java.lang.String sha1)
Sets the SHA1 checksum of the artifact
|
ArtifactBuilder |
sha256(java.lang.String sha256)
Sets the SHA256 checksum of the artifact
|
ArtifactBuilder |
type(java.lang.String type)
Sets the type of the artifact
|
public Artifact build()
public ArtifactBuilder name(java.lang.String name)
name - Artifact namepublic ArtifactBuilder type(java.lang.String type)
type - Artifact typepublic ArtifactBuilder sha1(java.lang.String sha1)
sha1 - Artifact SHA1 checksumpublic ArtifactBuilder sha256(java.lang.String sha256)
sha256 - Artifact SHA256 checksumpublic ArtifactBuilder md5(java.lang.String md5)
md5 - Artifact MD5 checksumpublic ArtifactBuilder localPath(java.lang.String localPath)
localPath - Artifact local Pathpublic ArtifactBuilder remotePath(java.lang.String remotePath)
remotePath - Artifact remote Pathpublic ArtifactBuilder properties(java.util.Properties properties)
properties - Artifact propertiespublic ArtifactBuilder addProperty(java.lang.Object key, java.lang.Object value)
key - Key of property to addvalue - Value of property to addpublic ArtifactBuilder addProperties(java.util.Properties properties)
properties - Artifact properties