|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jbase.jbuilder5vcs.P4Cmd
Title: JBuilder/Perforce
Description: call command of P4.
Field Summary | |
static P4ClientSpec |
_mySpec
|
static java.lang.String |
CMD_ADD
|
static java.lang.String |
CMD_CHANGE
|
static java.lang.String |
CMD_CLIENT
|
static java.lang.String |
CMD_CLIENT_OPTION
|
static java.lang.String |
CMD_CONSOLE_INPUT
|
static java.lang.String |
CMD_CONSOLE_MODE
|
static java.lang.String |
CMD_EDIT
|
static java.lang.String |
CMD_FILE_TYPE
|
static java.lang.String |
CMD_FILE_TYPE_TEXT
|
static java.lang.String |
CMD_HAVE
|
static java.lang.String |
CMD_HOST_OPTION
|
static java.lang.String |
CMD_P4
|
static java.lang.String |
CMD_PASSWORD
|
static java.lang.String |
CMD_PORT_OPTION
|
static java.lang.String |
CMD_REVERT
|
static java.lang.String |
CMD_SUBMIT
|
static java.lang.String |
CMD_SYNC
|
static java.lang.String |
CMD_USER
|
static java.lang.String |
MSG_COMMIT
|
static java.lang.String |
MSG_COMMITTED
|
static java.lang.String |
MSG_CONNECT_IMPOSSIBLE
|
static java.lang.String |
MSG_CONNECT_TITLE
|
static java.lang.String |
MSG_ENTER_COMMENT
|
static java.lang.String |
MSG_IS_UPTODATE
|
static java.lang.String |
MSG_NO_ITEMS
|
static java.lang.String |
MSG_NO_SUBMITTED
|
static java.lang.String |
MSG_P4_ADD_TITLE
|
static java.lang.String |
MSG_P4_COMMIT_TITLE
|
static java.lang.String |
MSG_P4_EDIT_TITLE
|
static java.lang.String |
MSG_P4_FILE_NOT_ON_CLIENT
|
static java.lang.String |
MSG_P4_FILE_REVERTED
|
static java.lang.String |
MSG_P4_FILE_REVERTED_AFTER_ADD
|
static java.lang.String |
MSG_P4_NO_CONNECTION
|
static java.lang.String |
MSG_P4_OPEN_FOR_ADD
|
static java.lang.String |
MSG_P4_OPEN_FOR_EDIT
|
static java.lang.String |
MSG_P4_REVERT_TITLE
|
static java.lang.String |
MSG_P4_SUBMIT_TITLE
|
static java.lang.String |
MSG_P4_SUBMITTED
|
static java.lang.String |
MSG_P4_SYNCHRO_TITLE
|
static java.lang.String |
MSG_P4_UPDATING
|
static java.lang.String |
MSG_P4_UPTODATE
|
static java.lang.String |
MSG_P4_WAS_ADD
|
static java.lang.String |
MSG_SUCCESSFULL
|
static java.lang.String |
MSG_UNSUCCESSFULL
|
Constructor Summary | |
P4Cmd()
|
Method Summary | |
java.lang.String |
add(com.borland.primetime.node.Node[] nodeList)
Add file(s) to P4 and update the lists file on the P4ClientSpec |
java.lang.String |
add(com.borland.primetime.node.Node[] nodeList,
java.util.Set fileList,
com.borland.primetime.node.Project prj)
Add file(s) to P4 and update the lists file on the P4ClientSpec |
java.lang.String |
add(java.util.Set fileList,
com.borland.primetime.node.Project prj)
Add file(s) to P4 and update the lists file on the P4ClientSpec |
java.lang.String |
commit(java.util.Set fileList,
com.borland.primetime.util.runner.OutputRunnerListener oOutrunner,
com.borland.primetime.node.Project prj)
For submit all modifications selected on the status window to P4. |
boolean |
connect()
Try to connect with P4, for this make a refresh |
java.lang.String |
edit(com.borland.primetime.node.Node[] nodeList)
For "check-out" file(s) from P4 and update the lists file on the P4ClientSpec |
java.lang.String |
edit(com.borland.primetime.node.Node[] nodeList,
java.util.Set fileList,
com.borland.primetime.node.Project prj)
For "check-out" file(s) from P4 and update the lists file on the P4ClientSpec |
java.lang.String |
edit(java.util.Set fileList,
com.borland.primetime.node.Project prj)
For "check-out" file(s) from P4 and update the lists file on the P4ClientSpec |
java.util.Map |
getStatus(com.borland.primetime.node.Project project)
Get the status from the current description |
boolean |
isConnected()
Check on a attribute of the P4ClientSpec, if it's null, the connection is down |
boolean |
isOnVCS(com.borland.primetime.vfs.Url url,
com.borland.primetime.node.Project project,
int nDepotPending)
Test if the file pass on parameter is under P4. |
void |
refresh()
Refresch the class, get the description from P4 |
java.lang.String |
revert(com.borland.primetime.node.Node[] nodeList)
Undo the modifications and update the lists file on the P4ClientSpec |
java.lang.String |
revert(com.borland.primetime.node.Node[] nodeList,
java.util.Set fileList,
com.borland.primetime.node.Project prj)
Undo the modifications and update the lists file on the P4ClientSpec |
java.lang.String |
revert(java.util.Set fileList,
com.borland.primetime.node.Project prj)
Undo the modifications and update the lists file on the P4ClientSpec |
java.lang.String |
submit(com.borland.primetime.node.Node[] nodeList,
java.lang.String sDescription)
For submit all modifications to P4 and update the lists file on the P4ClientSpec Warning: If another user had modified and submit the files, you must launch P4 for merge the files. |
java.lang.String |
sync(com.borland.primetime.node.Node[] nodeList)
For synchronize file(s) with P4, |
java.lang.String |
sync(com.borland.primetime.node.Node[] nodeList,
java.util.Set fileList,
com.borland.primetime.node.Project prj)
For synchronize file(s) with P4, |
java.lang.String |
sync(java.util.Set fileList,
com.borland.primetime.node.Project prj)
For synchronize file(s) with P4, |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String CMD_P4
public static final java.lang.String CMD_SYNC
public static final java.lang.String CMD_EDIT
public static final java.lang.String CMD_SUBMIT
public static final java.lang.String CMD_REVERT
public static final java.lang.String CMD_CLIENT
public static final java.lang.String CMD_ADD
public static final java.lang.String CMD_HAVE
public static final java.lang.String CMD_CHANGE
public static final java.lang.String CMD_PASSWORD
public static final java.lang.String CMD_USER
public static final java.lang.String CMD_CLIENT_OPTION
public static final java.lang.String CMD_CONSOLE_MODE
public static final java.lang.String CMD_CONSOLE_INPUT
public static final java.lang.String CMD_FILE_TYPE
public static final java.lang.String CMD_HOST_OPTION
public static final java.lang.String CMD_PORT_OPTION
public static final java.lang.String CMD_FILE_TYPE_TEXT
public static final java.lang.String MSG_CONNECT_IMPOSSIBLE
public static final java.lang.String MSG_CONNECT_TITLE
public static final java.lang.String MSG_NO_ITEMS
public static final java.lang.String MSG_P4_SYNCHRO_TITLE
public static final java.lang.String MSG_P4_ADD_TITLE
public static final java.lang.String MSG_P4_REVERT_TITLE
public static final java.lang.String MSG_P4_SUBMIT_TITLE
public static final java.lang.String MSG_P4_EDIT_TITLE
public static final java.lang.String MSG_P4_COMMIT_TITLE
public static final java.lang.String MSG_IS_UPTODATE
public static final java.lang.String MSG_SUCCESSFULL
public static final java.lang.String MSG_UNSUCCESSFULL
public static final java.lang.String MSG_ENTER_COMMENT
public static final java.lang.String MSG_NO_SUBMITTED
public static final java.lang.String MSG_COMMIT
public static final java.lang.String MSG_COMMITTED
public static final java.lang.String MSG_P4_UPTODATE
public static final java.lang.String MSG_P4_UPDATING
public static final java.lang.String MSG_P4_FILE_NOT_ON_CLIENT
public static final java.lang.String MSG_P4_OPEN_FOR_ADD
public static final java.lang.String MSG_P4_WAS_ADD
public static final java.lang.String MSG_P4_OPEN_FOR_EDIT
public static final java.lang.String MSG_P4_SUBMITTED
public static final java.lang.String MSG_P4_NO_CONNECTION
public static final java.lang.String MSG_P4_FILE_REVERTED
public static final java.lang.String MSG_P4_FILE_REVERTED_AFTER_ADD
public static P4ClientSpec _mySpec
Constructor Detail |
public P4Cmd()
Method Detail |
public java.lang.String sync(com.borland.primetime.node.Node[] nodeList) throws P4ErrorApplication, P4ErrorConnection
First, get description of the P4 client for get the root path and the name of the depot
Second, Check the connection with p4 by read the description value.
Third, create the list of file to synchronize.
Fourth, create the command line for P4 by adding user, password, List of file and send to p4 Last, update the lists file on the P4ClientSpec
nodeList
- List of file must be synchronizeP4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String sync(java.util.Set fileList, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
First, get description of the P4 client for get the root path and the name of the depot
Second, Check the connection with p4 by read the description value.
Third, create the list of file to synchronize.
Fourth, create the command line for P4 by adding user, password, List of file and send to p4 Last, update the lists file on the P4ClientSpec
fileList
- List of file must be synchronizeprj
- The active project for get P4 information (eg: User,...)P4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String sync(com.borland.primetime.node.Node[] nodeList, java.util.Set fileList, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
First, get description of the P4 client for get the root path and the name of the depot
Second, Check the connection with p4 by read the description value.
Third, create the list of file to synchronize.
Fourth, create the command line for P4 by adding user, password, List of file and send to p4 Last, update the lists file on the P4ClientSpec
nodeList
- List of file must be synchronizefileList
- List of file must be synchronize(if come form the commit browser)prj
- The active project for get P4 information (eg: User,...)P4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String edit(com.borland.primetime.node.Node[] nodeList) throws P4ErrorApplication, P4ErrorConnection
nodeList
- List of file must be editedP4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String edit(java.util.Set fileList, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
fileList
- List of file must be editedprj
- The active project for get P4 information (eg: User,...)P4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String edit(com.borland.primetime.node.Node[] nodeList, java.util.Set fileList, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
nodeList
- List of file must be editedfileList
- List of file must be edited(if come form the commit browser)prj
- The active project for get P4 information (eg: User,...)P4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String submit(com.borland.primetime.node.Node[] nodeList, java.lang.String sDescription) throws P4ErrorApplication, P4ErrorConnection
nodeList
- List of file must be submitP4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String commit(java.util.Set fileList, com.borland.primetime.util.runner.OutputRunnerListener oOutrunner, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
nodeList
- List of file must be submitP4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String revert(com.borland.primetime.node.Node[] nodeList) throws P4ErrorApplication, P4ErrorConnection
nodeList
- List of file must be revertedP4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String revert(java.util.Set fileList, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
fileList
- List of file must be reverted(if come form the commit browser)prj
- The active project for get P4 information (eg: User,...)P4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String revert(com.borland.primetime.node.Node[] nodeList, java.util.Set fileList, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
nodeList
- List of file must be revertedfileList
- List of file must be reverted(if come form the commit browser)prj
- The active project for get P4 information (eg: User,...)P4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String add(com.borland.primetime.node.Node[] nodeList) throws P4ErrorApplication, P4ErrorConnection
nodeList
- List of file must be addedP4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String add(java.util.Set fileList, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
fileList
- List of file must be added(if come form the commit browser)prj
- The active project for get P4 information (eg: User,...)P4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic java.lang.String add(com.borland.primetime.node.Node[] nodeList, java.util.Set fileList, com.borland.primetime.node.Project prj) throws P4ErrorApplication, P4ErrorConnection
nodeList
- List of file must be added(if come form the commit browser)fileList
- List of file must be added(if come form the commit browser)prj
- The active project for get P4 information (eg: User,...)P4ErrorApplication
- Applicative error from P4P4ErrorConnection
- Connection to P4 defectpublic boolean isOnVCS(com.borland.primetime.vfs.Url url, com.borland.primetime.node.Project project, int nDepotPending)
Return true if it's
public boolean connect() throws P4ErrorConnection
public void refresh()
public java.util.Map getStatus(com.borland.primetime.node.Project project)
public boolean isConnected()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |