|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.sourcecontrols.Vss
This class handles all VSS-related aspects of determining the modifications since the last good build.
Constructor Summary | |
Vss()
|
Method Summary | |
protected java.lang.String[] |
getCommandLine(java.util.Date lastBuild,
java.util.Date now)
|
java.util.List |
getModifications(java.util.Date lastBuild,
java.util.Date now)
Calls "ss history [dir] -R -Vd[now]~[lastBuild] -Y[login] -I-N -O[tempFileName]" Results written to a file since VSS will start wrapping lines if read directly from the stream. |
java.util.Map |
getProperties()
Any properties that have been set in this sourcecontrol. |
protected java.text.SimpleDateFormat |
getVssDateTimeFormat()
|
protected Modification |
handleEntry(java.util.List entry)
Parse individual VSS history entry |
java.util.Date |
parseDate(java.lang.String nameAndDateLine)
Parse date/time from VSS file history The nameAndDateLine will look like User: Etucker Date: 6/26/01 Time: 11:53a Sometimes also this User: Aaggarwa Date: 6/29/:1 Time: 3:40p Note the ":" instead of a "0" |
java.lang.String |
parseUser(java.lang.String userLine)
Parse username from VSS file history |
void |
setDateFormat(java.lang.String format)
Sets the date format to use for querying VSS and processing reports. |
void |
setLogin(java.lang.String usernameCommaPassword)
Login for vss |
void |
setProperty(java.lang.String propertyName)
Choose a property to be set if the project has modifications if we have a change that only requires repackaging, i.e. jsp, we don't need to recompile everything, just rejar. |
void |
setPropertyOnDelete(java.lang.String propertyName)
Choose a property to be set if the project has deletions |
void |
setServerPath(java.lang.String dirWithSrcsafeIni)
Set the path to the directory containing the srcsafe.ini file. |
void |
setSsDir(java.lang.String ssdir)
Set the path to the ss executable |
void |
setTimeFormat(java.lang.String format)
Sets the time format to use for querying VSS and processing reports. |
void |
setVsspath(java.lang.String vsspath)
Set the project to get history from |
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Vss()
Method Detail |
public void setVsspath(java.lang.String vsspath)
vsspath
- public void setSsDir(java.lang.String ssdir)
ssdir
- public void setServerPath(java.lang.String dirWithSrcsafeIni)
dirWithSrcsafeIni
- public void setLogin(java.lang.String usernameCommaPassword)
usernameCommaPassword
- public void setProperty(java.lang.String propertyName)
propertyName
- public void setPropertyOnDelete(java.lang.String propertyName)
propertyName
- public void setDateFormat(java.lang.String format)
MM/dd/yy
. If your computer is set to a different region, you may wish to use a format such as
dd/MM/yy
.
SimpleDateFormat
public void setTimeFormat(java.lang.String format)
hh:mma
. If your computer is set to a different region, you may wish to use a format such as
HH:mm
.
SimpleDateFormat
public java.util.Map getProperties()
SourceControl
getProperties
in interface SourceControl
public void validate() throws CruiseControlException
validate
in interface SourceControl
CruiseControlException
public java.util.List getModifications(java.util.Date lastBuild, java.util.Date now)
getModifications
in interface SourceControl
lastBuild
- now
-
protected java.lang.String[] getCommandLine(java.util.Date lastBuild, java.util.Date now) throws java.io.IOException
java.io.IOException
protected Modification handleEntry(java.util.List entry)
entry
- public java.util.Date parseDate(java.lang.String nameAndDateLine)
User: Etucker Date: 6/26/01 Time: 11:53a
User: Aaggarwa Date: 6/29/:1 Time: 3:40p
nameAndDateLine
-
setDateFormat(java.lang.String)
public java.lang.String parseUser(java.lang.String userLine)
userLine
-
protected java.text.SimpleDateFormat getVssDateTimeFormat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |