net.sourceforge.cruisecontrol
Class VssElement

java.lang.Object
  |
  +--net.sourceforge.cruisecontrol.VssElement
All Implemented Interfaces:
SourceControlElement

public class VssElement
extends java.lang.Object
implements SourceControlElement

This class handles all vss-related aspects of determining the modifications since the last good build.

Author:
alden almagro, ThoughtWorks, Inc. 2001, etucker

Constructor Summary
VssElement()
           
 
Method Summary
 java.util.Set getEmails()
          returns a Set of usernames that made any modification since the last good build.
 java.util.ArrayList getHistory(java.util.Date lastBuild, java.util.Date now, long quietPeriod)
          do the work...i'm writing to a file since vss will start wrapping lines if i read directly from the stream.
 long getLastModified()
          for parent modificationset to find out the time of last modification for this project
 java.util.ArrayList getModifications()
          returns an ArrayList of modifications to this project since the last good build.
 void setLogin(java.lang.String s)
          login for vss
 void setProperty(java.lang.String s)
          choose a property to be set if the project has modifications if we have a change that only requires repackaging, i.e.
 void setPropertyondelete(java.lang.String s)
           
 void setSsDir(java.lang.String s)
          set the project to get history
 void setTask(org.apache.tools.ant.Task t)
          really just here for logging to get a handle to the project
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VssElement

public VssElement()
Method Detail

setSsDir

public void setSsDir(java.lang.String s)
set the project to get history

setLogin

public void setLogin(java.lang.String s)
login for vss

setProperty

public void setProperty(java.lang.String s)
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.

setPropertyondelete

public void setPropertyondelete(java.lang.String s)

setTask

public void setTask(org.apache.tools.ant.Task t)
really just here for logging to get a handle to the project
Specified by:
setTask in interface SourceControlElement

getLastModified

public long getLastModified()
for parent modificationset to find out the time of last modification for this project
Specified by:
getLastModified in interface SourceControlElement

getEmails

public java.util.Set getEmails()
returns a Set of usernames that made any modification since the last good build.
Specified by:
getEmails in interface SourceControlElement

getModifications

public java.util.ArrayList getModifications()
returns an ArrayList of modifications to this project since the last good build.

getHistory

public java.util.ArrayList getHistory(java.util.Date lastBuild,
                                      java.util.Date now,
                                      long quietPeriod)
do the work...i'm writing to a file since vss will start wrapping lines if i read directly from the stream.
Specified by:
getHistory in interface SourceControlElement