|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.acm.seguin.version.SourceSafe
public class SourceSafe
Creates a process that checks out a file from source safe
Constructor Summary | |
---|---|
SourceSafe()
Constructor for the source safe object |
Method Summary | |
---|---|
void |
add(java.lang.String fullFilename)
Adds a file to version control |
protected void |
changeProject(java.lang.Runtime factory,
java.lang.String project)
Change to the project directory |
protected void |
checkin(java.lang.Runtime factory,
java.lang.String file)
Check in the file |
void |
checkIn(java.lang.String file)
Check out the file from source safe |
protected void |
checkout(java.lang.Runtime factory,
java.lang.String file)
Check out the file |
void |
checkOut(java.lang.String file)
Check out the file from source safe |
protected boolean |
compare(java.lang.String one,
java.lang.String two)
Compares two files |
boolean |
contains(java.lang.String fullFilename)
Determines if a file is under version control |
protected java.lang.String |
getFilename(java.lang.String fullFilename)
Get the filename |
protected java.lang.String |
getPath(java.lang.String fullFilename)
Get the path |
protected java.lang.String |
getProject(java.lang.Runtime factory,
java.lang.String file)
Find the project |
static void |
main(java.lang.String[] args)
Main program |
protected int |
match(java.lang.String path,
java.lang.String project)
Matches the path to the projects |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceSafe()
Method Detail |
---|
public boolean contains(java.lang.String fullFilename)
contains
in interface VersionControl
fullFilename
- The full path of the file
public void add(java.lang.String fullFilename)
add
in interface VersionControl
fullFilename
- the file to addpublic void checkOut(java.lang.String file)
checkOut
in interface VersionControl
file
- the name of the filepublic void checkIn(java.lang.String file)
checkIn
in interface VersionControl
file
- the name of the fileprotected java.lang.String getProject(java.lang.Runtime factory, java.lang.String file) throws java.io.IOException
factory
- the run time factoryfile
- the name of the file to find
java.io.IOException
- is thrown if the command cannot be executedprotected java.lang.String getFilename(java.lang.String fullFilename)
fullFilename
- the fully qualified path
protected java.lang.String getPath(java.lang.String fullFilename)
fullFilename
- the fully qualified path
protected void changeProject(java.lang.Runtime factory, java.lang.String project) throws java.io.IOException
factory
- the run time factoryproject
- the name of the project to change to
java.io.IOException
- is thrown if the command cannot be executedprotected void checkout(java.lang.Runtime factory, java.lang.String file) throws java.io.IOException
factory
- the run time factoryfile
- the file that we are checking out
java.io.IOException
- is thrown if the command cannot be executedprotected void checkin(java.lang.Runtime factory, java.lang.String file) throws java.io.IOException
factory
- the run time factoryfile
- the file that we are checking out
java.io.IOException
- is thrown if the command cannot be executedprotected int match(java.lang.String path, java.lang.String project)
path
- the pathproject
- the project
protected boolean compare(java.lang.String one, java.lang.String two)
one
- the first nametwo
- the second name
public static void main(java.lang.String[] args)
args
- the command line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |