| java.lang.Object org.acm.seguin.version.SourceSafe
SourceSafe | public class SourceSafe implements VersionControl(Code) | | Creates a process that checks out a file from source safe
author: Chris Seguin |
SourceSafe | public SourceSafe()(Code) | | Constructor for the source safe object
|
add | public synchronized void add(String fullFilename)(Code) | | Adds a file to version control
Parameters: fullFilename - the file to add |
changeProject | protected void changeProject(Runtime factory, String project) throws IOException(Code) | | Change to the project directory
Parameters: factory - the run time factory Parameters: project - the name of the project to change to exception: IOException - is thrown if the command cannot be executed |
checkIn | public synchronized void checkIn(String file)(Code) | | Check out the file from source safe
Parameters: file - the name of the file |
checkOut | public synchronized void checkOut(String file)(Code) | | Check out the file from source safe
Parameters: file - the name of the file |
checkin | protected void checkin(Runtime factory, String file) throws IOException(Code) | | Check in the file
Parameters: factory - the run time factory Parameters: file - the file that we are checking out exception: IOException - is thrown if the command cannot be executed |
checkout | protected void checkout(Runtime factory, String file) throws IOException(Code) | | Check out the file
Parameters: factory - the run time factory Parameters: file - the file that we are checking out exception: IOException - is thrown if the command cannot be executed |
compare | protected boolean compare(String one, String two)(Code) | | Compares two files
Parameters: one - the first name Parameters: two - the second name Description of the Returned Value |
contains | public synchronized boolean contains(String fullFilename)(Code) | | Determines if a file is under version control
Parameters: fullFilename - The full path of the file Returns true if the files is under version control |
getFilename | protected String getFilename(String fullFilename)(Code) | | Get the filename
Parameters: fullFilename - the fully qualified path the filename |
getPath | protected String getPath(String fullFilename)(Code) | | Get the path
Parameters: fullFilename - the fully qualified path the path |
getProject | protected String getProject(Runtime factory, String file) throws IOException(Code) | | Find the project
Parameters: factory - the run time factory Parameters: file - the name of the file to find the name of the project or null if in no project exception: IOException - is thrown if the command cannot be executed |
main | public static void main(String[] args)(Code) | | Main program
Parameters: args - the command line arguments |
match | protected int match(String path, String project)(Code) | | Matches the path to the projects
Parameters: path - the path Parameters: project - the project the index of the item in the roots, or -1 if not there |
|
|