|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.build.DefaultArtifact
public class DefaultArtifact
The components used to identify a build artifact that need to be kept.
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.build.Artifact |
---|
ARTIFACT_COPY_PATTERN, ARTIFACT_LABEL, ARTIFACT_SRC_DIR |
Constructor Summary | |
---|---|
DefaultArtifact()
|
|
DefaultArtifact(String label,
String copyPattern,
String srcDirectory)
Create a build artifact identified in the UI by the label. |
Method Summary | |
---|---|
int |
compareTo(Object obj)
|
boolean |
equals(Object o)
|
String |
getCopyPattern()
What is the ANT copy style pattern used to copy the artifacts from the build directory. |
String |
getLabel()
What is the UI link label used to identify the artifact |
String |
getSrcDirectory()
The source directory relative to the build directory - e.g. |
int |
hashCode()
|
void |
populateFromConfig(HierarchicalConfiguration config)
Update the current object with data in the FieldValueItemHolder |
void |
setCopyPattern(String copyPattern)
|
void |
setLabel(String label)
What label should this artifact have? |
void |
setSrcDirectory(String srcDirectory)
|
HierarchicalConfiguration |
toConfiguration()
Generate a FieldValueItemHolder from the current state of the object |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultArtifact()
public DefaultArtifact(String label, String copyPattern, String srcDirectory)
label
- The UI text pabelcopyPattern
- The ANT style copy pattern, relative to the source code directorysrcDirectory
- Method Detail |
---|
public String getLabel()
getLabel
in interface Artifact
public void setLabel(String label)
setLabel
in interface Artifact
label
- The labelpublic String getCopyPattern()
getCopyPattern
in interface Artifact
public void setCopyPattern(String copyPattern)
setCopyPattern
in interface Artifact
public String getSrcDirectory()
getSrcDirectory
in interface Artifact
public void setSrcDirectory(String srcDirectory)
setSrcDirectory
in interface Artifact
public void populateFromConfig(HierarchicalConfiguration config)
ConvertibleFromConfig
FieldValueItemHolder
populateFromConfig
in interface ConvertibleFromConfig
public HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
FieldValueItemHolder
from the current state of the object
toConfiguration
in interface ConvertibleFromConfig
FieldValueItemHolder
. Never nullpublic int hashCode()
hashCode
in class Object
public boolean equals(Object o)
equals
in class Object
public int compareTo(Object obj)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |