public abstract class Workspace extends Object implements Cloneable, hudson.ExtensionPoint, hudson.model.Describable<Workspace>, Serializable
Constructor and Description |
---|
Workspace(String charset,
boolean pinHost,
boolean cleanup) |
Modifier and Type | Method and Description |
---|---|
void |
addEnv(String tag,
String value) |
static hudson.DescriptorExtensionList<Workspace,WorkspaceDescriptor> |
all() |
protected Object |
clone() |
Workspace |
deepClone() |
String |
getCharset() |
WorkspaceDescriptor |
getDescriptor() |
Expand |
getExpand() |
String |
getFullName()
Returns the fully expanded client workspace name.
|
String |
getHostName() |
abstract String |
getName()
Returns the client workspace name as defined in the configuration.
|
String |
getRootPath() |
String |
getSyncID() |
abstract WorkspaceType |
getType() |
boolean |
isCleanup() |
boolean |
isPinHost() |
abstract com.perforce.p4java.client.IClient |
setClient(com.perforce.p4java.server.IOptionsServer connection,
String user)
Setup/Create a Perforce workspace for this mode.
|
void |
setExpand(Map<String,String> map) |
void |
setHostName(String hostname) |
abstract void |
setName(String name) |
void |
setRootPath(String rootPath) |
void |
setSyncID(String syncID) |
public Workspace(String charset, boolean pinHost, boolean cleanup)
public abstract WorkspaceType getType()
public abstract String getName()
public abstract void setName(String name)
public String getCharset()
public boolean isPinHost()
public abstract com.perforce.p4java.client.IClient setClient(com.perforce.p4java.server.IOptionsServer connection, String user) throws Exception
connection
- Server connectionuser
- Perforce userException
- push up stackpublic WorkspaceDescriptor getDescriptor()
getDescriptor
in interface hudson.model.Describable<Workspace>
public static hudson.DescriptorExtensionList<Workspace,WorkspaceDescriptor> all()
public String getRootPath()
public void setHostName(String hostname)
public String getHostName()
public void setRootPath(String rootPath)
public Expand getExpand()
public String getFullName()
public String getSyncID()
@DataBoundSetter public void setSyncID(String syncID)
public boolean isCleanup()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public Workspace deepClone() throws hudson.AbortException
hudson.AbortException
Copyright © 2016–2022. All rights reserved.