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