org.sourcejammer.client.commandline
Class CommandLineInterpreter
java.lang.Object
|
+--org.sourcejammer.client.commandline.CommandLineInterpreter
- public class CommandLineInterpreter
- extends java.lang.Object
Primary class for interpreting and executing command line commands.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TERM_MESSAGE
public static final java.lang.String TERM_MESSAGE
TO_PARENT_DIR
public static final java.lang.String TO_PARENT_DIR
ALL_FILES_IN_DIR
public static final java.lang.String ALL_FILES_IN_DIR
GETPROJ_CURRENT_PROJECT
public static final java.lang.String GETPROJ_CURRENT_PROJECT
- jbm change start
jbm
jbm add getproj command
jbm
Constants for getproj command
GETPROJ_RECURSE_PROJECT
public static final java.lang.String GETPROJ_RECURSE_PROJECT
GETPROJ_NO_RECURSE_PROJECT
public static final java.lang.String GETPROJ_NO_RECURSE_PROJECT
GETPROJ_MAKE_LOCAL_DIRS
public static final java.lang.String GETPROJ_MAKE_LOCAL_DIRS
GETPROJ_NO_MAKE_LOCAL_DIRS
public static final java.lang.String GETPROJ_NO_MAKE_LOCAL_DIRS
GETPROJ_VERIFY_CHECKIN
public static final java.lang.String GETPROJ_VERIFY_CHECKIN
GETPROJ_NO_VERIFY_CHECKIN
public static final java.lang.String GETPROJ_NO_VERIFY_CHECKIN
CommandLineInterpreter
public CommandLineInterpreter()
- This constructor always throws an exception.
CommandLineInterpreter
public CommandLineInterpreter(java.lang.String sURL)
sendCommand
public java.lang.String sendCommand(java.lang.String command)
zipByteArrayIfNeeded
protected byte[] zipByteArrayIfNeeded(byte[] file,
SJRequest request)
throws java.io.IOException
- Checks if a byte array about to be sent is larger than the minimum
unzipped file size. If so, zips the file and sets the flag in the SJRequest.
updateProjectPointer
protected void updateProjectPointer()
throws SourceJammerConnectionException
retrieveFileFromServer
protected long retrieveFileFromServer(DownloadFileIdentifier id,
SJResponse response)
throws java.io.IOException,
SourceJammerConnectionException
- Returns temp file id.
sendFileToServer
protected long sendFileToServer(java.io.File fl,
SJRequest request)
throws java.io.IOException,
SourceJammerConnectionException