|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.hackystat.sensor.ant.perforce.PerforceSensor
public class PerforceSensor
A sensor for collecting Commit information from the Perforce CM system.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
PerforceSensor()
Initialize a new instance of a PerforceSensor. |
Method Summary | |
---|---|
void |
execute()
Extracts commit information from Perforce server, and sends them to the Hackystat server. |
void |
setDefaultHackystatAccount(java.lang.String defaultHackystatAccount)
Sets a default Hackystat account to which to send commit data when there is no Perforce user to Hackystat account mapping. |
void |
setDefaultHackystatPassword(java.lang.String defaultHackystatPassword)
Sets the default Hackystat account password. |
void |
setDefaultHackystatSensorbase(java.lang.String defaultHackystatSensorbase)
Sets the default Hackystat sensorbase server. |
void |
setDepotPath(java.lang.String depotPath)
Sets the depot path in the Perforce server. |
void |
setFileNamePrefix(java.lang.String fileNamePrefix)
Sets a string to be prepended to the file path in commit metric. |
void |
setFromDate(java.lang.String fromDateString)
Sets the optional fromDate. |
void |
setIgnoreWhitespace(boolean ignoreWhitespace)
True if whitespace changes should be ignored by the underlying Perforce diff2 program when calculating lines added, changed, and deleted. |
void |
setP4ExecutablePath(java.lang.String path)
Sets the path to the p4 executable. |
void |
setP4SysDrive(java.lang.String sysdrive)
Sets the path to the Window system drive. |
void |
setP4SysRoot(java.lang.String sysroot)
Sets the path to the Window system root dir. |
void |
setPassword(java.lang.String password)
Sets the password for the user name. |
void |
setPort(java.lang.String port)
Sets the port to the Perforce server. |
void |
setToDate(java.lang.String toDateString)
Sets the optional toDate. |
void |
setUserName(java.lang.String userName)
Sets the user name to access the Perforce repository. |
void |
setVerbose(boolean isVerbose)
Sets if verbose mode has been enabled. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerforceSensor()
Method Detail |
---|
public void setUserName(java.lang.String userName)
userName
- The user name.public void setVerbose(boolean isVerbose)
isVerbose
- true if verbose mode is enabled, false if not.public void setPassword(java.lang.String password)
password
- The password.public void setIgnoreWhitespace(boolean ignoreWhitespace)
ignoreWhitespace
- True if whitespace changes should be ignored.public void setFileNamePrefix(java.lang.String fileNamePrefix)
fileNamePrefix
- The string to be prepended to the file path in commit
metric.public void setDefaultHackystatAccount(java.lang.String defaultHackystatAccount)
defaultHackystatAccount
- The default Hackystat account.public void setDefaultHackystatPassword(java.lang.String defaultHackystatPassword)
defaultHackystatPassword
- the default account password.public void setDefaultHackystatSensorbase(java.lang.String defaultHackystatSensorbase)
defaultHackystatSensorbase
- the default sensorbase server.public void setFromDate(java.lang.String fromDateString)
fromDateString
- The first date from which we send commit information
to Hackystat server.public void setToDate(java.lang.String toDateString)
toDateString
- The last date to which we send commit information to
Hackystat server.public void setPort(java.lang.String port)
port
- The port.public void setP4ExecutablePath(java.lang.String path)
path
- The path.public void setP4SysRoot(java.lang.String sysroot)
sysroot
- The sysroot.public void setP4SysDrive(java.lang.String sysdrive)
sysdrive
- The sysdrive.public void setDepotPath(java.lang.String depotPath)
depotPath
- The depot path.public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- If the task fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |