Class SpecWorkspaceImpl

java.lang.Object
org.jenkinsci.plugins.p4.workspace.Workspace
org.jenkinsci.plugins.p4.workspace.SpecWorkspaceImpl
All Implemented Interfaces:
ExtensionPoint, Describable<Workspace>, Serializable, Cloneable

public class SpecWorkspaceImpl extends Workspace implements Serializable
See Also:
  • Constructor Details

    • SpecWorkspaceImpl

      @DataBoundConstructor public SpecWorkspaceImpl(String charset, boolean pinHost, String name, String specPath)
  • Method Details

    • getName

      public String getName()
      Description copied from class: Workspace
      Returns the client workspace name as defined in the configuration. This may include ${tag} that have not been expanded.
      Specified by:
      getName in class Workspace
      Returns:
      Client name
    • setName

      public void setName(String name)
      Specified by:
      setName in class Workspace
    • getSpecPath

      public String getSpecPath()
    • getType

      public WorkspaceType getType()
      Specified by:
      getType in class Workspace
    • setClient

      public com.perforce.p4java.client.IClient setClient(com.perforce.p4java.server.IOptionsServer connection, String user) throws Exception
      Description copied from class: Workspace
      Setup/Create a Perforce workspace for this mode.
      Specified by:
      setClient in class Workspace
      Parameters:
      connection - Server connection
      user - Perforce user
      Returns:
      Perforce client
      Throws:
      Exception - push up stack