org.apache.tools.ant.taskdefs.optional.starteam
public class StarTeamLabel extends StarTeamTask
<taskdef name="stlabel" classname="org.apache.tools.ant.taskdefs.optional.starteam.StarTeamLabel"/< <stlabel label="1.0" lastbuild="20011514100000" description="Successful Build" username="BuildMaster" password="ant" starteamurl="server:port/project/view"/>
location, project
Constructor and Description |
---|
StarTeamLabel() |
Modifier and Type | Method and Description |
---|---|
protected View |
createSnapshotView(View raw)
Override of base-class abstract function creates an
appropriately configured view.
|
void |
execute()
This method does the work of creating the new view and checking it into
Starteam.
|
void |
setBuildLabel(boolean buildlabel)
set the type of label based on the supplied value - if true, this
label will be a revision label, if false, a build label.
|
void |
setDescription(java.lang.String description)
Description of the label to be stored in the StarTeam project.
|
void |
setLabel(java.lang.String label)
The name to be given to the label; required.
|
void |
setLastBuild(java.lang.String lastbuild)
The timestamp of the build that will be stored with the label; required.
|
void |
setRevisionLabel(boolean revisionlabel)
set the type of label based on the supplied value - if true, this
label will be a revision label, if false, a build label.
|
disconnectFromServer, getPassword, getProjectname, getServer, getServername, getServerport, getTypeNames, getURL, getUserName, getUserName, getViewname, getViewURL, openView, setPassword, setProjectname, setServername, setServerport, setURL, setUserName, setViewname
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
clone, getDescription, getLocation, getProject, setLocation, setProject
public void setLabel(java.lang.String label)
label
- the name to be usedpublic void setDescription(java.lang.String description)
setDescription
in class ProjectComponent
description
- the description to be usedpublic void setBuildLabel(boolean buildlabel)
buildlabel
- If true this will be a revision label; if false,
a build labelpublic void setRevisionLabel(boolean revisionlabel)
revisionlabel
- If true this will be a revision label; if false,
a build labelpublic void setLastBuild(java.lang.String lastbuild) throws BuildException
yyyyMMddHHmmss
lastbuild
- the timestamp of the last buildBuildException
- on errorpublic void execute() throws BuildException
execute
in class Task
BuildException
- on errorprotected View createSnapshotView(View raw)
createSnapshotView
in class StarTeamTask
raw
- the unconfigured View
View
appropriately configured.