com.pmease.quickbuild.repository
Class PerforceRepository

java.lang.Object
  extended bycom.pmease.quickbuild.repository.Repository
      extended bycom.pmease.quickbuild.repository.PerforceRepository
All Implemented Interfaces:
java.io.Serializable

public class PerforceRepository
extends Repository

Perforce adaptor

Author:
robin shine
See Also:
Serialized Form

Constructor Summary
PerforceRepository()
           
 
Method Summary
protected  void buildFinished(Build build)
           
protected  Commandline buildP4Executable()
          Build the executable part of a commandline object
protected  void checkout(Build build)
           
protected  void cleanupCheckoutStarted(java.lang.String workingDir, org.apache.log4j.Logger logger)
           
protected  Revisions getChangeListSince(DependentContext dependentContext, java.util.Date date, java.lang.String workingDir, org.apache.log4j.Logger logger)
           
 PerforceLineEndEnum getLineEnd()
          OGNL: Set line ending character(s) for client text files.
 java.lang.Class getModuleClazz()
           
 java.lang.String getP4ExePath()
          OGNL: Specify path to your p4 executable file, for example: /usr/local/bin/p4.
 java.lang.String getPassword()
          OGNL: Password for the above user.
 java.lang.String getPort()
          OGNL: The Perforce port in the format of <port>, or <servername>:<port>, where <servername> and <port> will be replaced by the actual Perforce server name and the port number.
 java.lang.String getUser()
          OGNL: User name to access the above Perforce server.
protected  void label(Build build, java.lang.String label, java.lang.String comment)
          Label checked out artifacts from this repository.
 void setLineEnd(PerforceLineEndEnum lineEnd)
           
 void setP4ExePath(java.lang.String p4ExePath)
           
 void setPassword(java.lang.String password)
           
 void setPort(java.lang.String port)
           
 void setUser(java.lang.String user)
           
 
Methods inherited from class com.pmease.quickbuild.repository.Repository
cleanupCheckoutStarted, doCheckout, doLabel, equals, getChangeListSince, getEditor, getLoginMappingName, getLoginMappingNameSelectionModel, getModules, getName, getNameChoices, getQuietPeriod, hashCode, isCheckedOut, isModified, isModifiedSince, isQuietSince, notifyBuildFinished, setEditor, setLoginMappingName, setName, setQuietPeriod, validate
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerforceRepository

public PerforceRepository()
Method Detail

buildP4Executable

protected Commandline buildP4Executable()
Build the executable part of a commandline object

Returns:

getPort

public java.lang.String getPort()
OGNL: The Perforce port in the format of <port>, or <servername>:<port>, where <servername> and <port> will be replaced by the actual Perforce server name and the port number.

Returns:

setPort

public void setPort(java.lang.String port)

getUser

public java.lang.String getUser()
OGNL: User name to access the above Perforce server. This user should have the rights to create and edit client specifications and to checkout and label code.

Returns:

setUser

public void setUser(java.lang.String user)

getPassword

public java.lang.String getPassword()
OGNL: Password for the above user. Can be blank, if your Perforce server does not use password based security.

Returns:

setPassword

public void setPassword(java.lang.String password)

getLineEnd

public PerforceLineEndEnum getLineEnd()
OGNL: Set line ending character(s) for client text files.
local: use mode native to the client
unix: UNIX style mac: Macintosh style
win: Windows style
share: writes UNIX style but reads UNIX, Mac or Windows style

Returns:

setLineEnd

public void setLineEnd(PerforceLineEndEnum lineEnd)

getP4ExePath

public java.lang.String getP4ExePath()
OGNL: Specify path to your p4 executable file, for example: /usr/local/bin/p4. It should be specified here, if it does not exist in the system path.

Returns:

setP4ExePath

public void setP4ExePath(java.lang.String p4ExePath)

checkout

protected void checkout(Build build)
Specified by:
checkout in class Repository

getChangeListSince

protected Revisions getChangeListSince(DependentContext dependentContext,
                                       java.util.Date date,
                                       java.lang.String workingDir,
                                       org.apache.log4j.Logger logger)
Specified by:
getChangeListSince in class Repository

cleanupCheckoutStarted

protected void cleanupCheckoutStarted(java.lang.String workingDir,
                                      org.apache.log4j.Logger logger)
Specified by:
cleanupCheckoutStarted in class Repository

getModuleClazz

public java.lang.Class getModuleClazz()
Specified by:
getModuleClazz in class Repository

label

protected void label(Build build,
                     java.lang.String label,
                     java.lang.String comment)
Description copied from class: Repository
Label checked out artifacts from this repository.

Specified by:
label in class Repository
Parameters:
build -

buildFinished

protected void buildFinished(Build build)
Specified by:
buildFinished in class Repository


Copyright © 2005 PMEase Inc. All Rights Reserved.