|
||||||||||
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.svn.SvnSensor
public class SvnSensor
Ant task to extract the svn commits and send those information to Hackystat server. Note: For binary files, the values for lines addes, lines deleted, and total lines are meaningless.
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 | |
---|---|
SvnSensor()
|
Method Summary | |
---|---|
void |
execute()
Extracts commit information from SVN 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 svn committer 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 |
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 |
setLastIntervalInMinutes(java.lang.String lastIntervalInMinutes)
Sets the last interval in minutes. |
void |
setPassword(java.lang.String password)
Sets the password for the user name. |
void |
setRepositoryName(java.lang.String repositoryName)
Sets the svn repository name. |
void |
setRepositoryUrl(java.lang.String repositoryUrl)
Sets the url to the svn repository. |
void |
setToDate(java.lang.String toDateString)
Sets the optional toDate. |
void |
setUserName(java.lang.String userName)
Sets the user name to access the SVN 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 SvnSensor()
Method Detail |
---|
public void setRepositoryName(java.lang.String repositoryName)
repositoryName
- The name of the svn repository.public void setRepositoryUrl(java.lang.String repositoryUrl)
repositoryUrl
- The url to the svn repository.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 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 setLastIntervalInMinutes(java.lang.String lastIntervalInMinutes)
lastIntervalInMinutes
- The preceding interval in minutes to poll.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 |