|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.sourcejammer.client.ant.SJCommandProcessor
This class acts as a wrapper to the SourceJammer commandline interface. It implements only those commands needed to issue the getproj commandline command.
| Field Summary | |
private java.lang.String |
configPath
Contains the path to the Configuration XML file |
private java.lang.String |
serverURL
Contains the URL string to the SourceJammer server |
private org.sourcejammer.client.commandline.CommandLineInterpreter |
sjInterpreter
Contains a ref to the SourceJammer command line interpreter. |
| Constructor Summary | |
SJCommandProcessor(java.lang.String serverURL,
java.lang.String configPath)
constructor. |
|
| Method Summary | |
java.lang.String |
sjCommandInitialize()
Initialize the SourceJammer commandline environment. |
java.lang.String |
sjConCommand(java.lang.String userid,
java.lang.String password,
java.lang.String archive)
Calls the SourceJammer con command with the specified parms. |
java.lang.String |
sjDisconCommand()
Calls the SourceJammer discon command. |
java.lang.String |
sjGetProjCommand(java.lang.String project,
boolean recurse,
boolean mkdir,
boolean vfyChkIn)
Calls the SourceJammer getproj command with the specified parms. |
java.lang.String |
sjQuitCommand()
Calls the SourceJammer quit command with the specified parms. |
java.lang.String |
sjSetLocalDirCommand(java.lang.String destinationPath)
Calls the SourceJammer lcd command with the specified parms. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private java.lang.String serverURL
private java.lang.String configPath
private org.sourcejammer.client.commandline.CommandLineInterpreter sjInterpreter
| Constructor Detail |
public SJCommandProcessor(java.lang.String serverURL,
java.lang.String configPath)
serverURL - Ref to the ServerURLconfigPath - Ref to the coniguration XML file path| Method Detail |
public java.lang.String sjCommandInitialize()
throws SourceJammerCommandException
SourceJammerCommandException - Thrown if there is a problem during initilization
public java.lang.String sjConCommand(java.lang.String userid,
java.lang.String password,
java.lang.String archive)
throws SourceJammerCommandException
userid - Ref to userid stringpassword - Ref to password stringarchive - Ref to Archive string
SourceJammerCommandException - Thrown if there is a problem processing the command
public java.lang.String sjSetLocalDirCommand(java.lang.String destinationPath)
throws SourceJammerCommandException
destinationPath - Ref to destination path string
SourceJammerCommandException - Thrown if there is a problem processing the command
public java.lang.String sjGetProjCommand(java.lang.String project,
boolean recurse,
boolean mkdir,
boolean vfyChkIn)
throws SourceJammerCommandException
project - Ref to project path stringrecurse - recurse project flagmkdir - make directories flag
SourceJammerCommandException - Thrown if there is a problem processing the command
public java.lang.String sjDisconCommand()
throws SourceJammerCommandException
SourceJammerCommandException - Thrown if there is a problem processing the command
public java.lang.String sjQuitCommand()
throws SourceJammerCommandException
SourceJammerCommandException - Thrown if there is a problem processing the command
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||