|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensor.ant.perforce.PerforceCommitProcessor
public class PerforceCommitProcessor
Provides the interface to Perforce for the sensor. This code accomplishes the following:
Constructor Summary | |
---|---|
PerforceCommitProcessor(P4Environment p4Environment,
java.lang.String depotPath)
Instantiates a PerforceCommitProcessor with the passed P4Environment instance and depotPath. |
Method Summary | |
---|---|
void |
cleanup()
This method should be invoked at the end of the sensor run, and will delete the client created for this task as well as invoke the Perforce library cleanUp() method. |
java.util.List<PerforceChangeListData> |
getChangeListDataList()
Retrieve the list of PerforceChangeListData instances associated with this instance. |
static void |
main(java.lang.String[] args)
Exercises the methods in this class manually. |
void |
processChangeLists(java.lang.String startDate,
java.lang.String endDate)
Processes any ChangeLists that were submitted between startData and endDate to the depotPath. |
void |
setIgnoreWhitespace(boolean ignoreWhitespace)
Controls whether the diff2 command will be passed the -dw option so that whitespace changes in the file are ignored. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PerforceCommitProcessor(P4Environment p4Environment, java.lang.String depotPath) throws java.lang.Exception
p4Environment
- The p4Environment.depotPath
- The depot path this processor will work on.
java.lang.Exception
- If problems occur instantiating this environment.Method Detail |
---|
public void processChangeLists(java.lang.String startDate, java.lang.String endDate) throws java.lang.Exception
startDate
- The start date, in YYYY/MM/DD format.endDate
- The end date, in YYYY/MM/DD format.
java.lang.Exception
- If problems occur.public java.util.List<PerforceChangeListData> getChangeListDataList()
public void setIgnoreWhitespace(boolean ignoreWhitespace)
ignoreWhitespace
- True if whitespace changes in the file should be ignored.public void cleanup() throws java.lang.Exception
java.lang.Exception
- If problems occur.public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Arguments are: port, user, password, depotPath, startDate, endDate.
java.lang.Exception
- If problems occur.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |