1 | void getCommentCommand(Commandline cmd) {↵ | | 1 | void getVersionCommand(Commandline cmd) {↵
|
2 | if (getComment() != null) {↵ | | 2 | if (getVersion() != null) {↵
|
3 | /* Had to make two separate commands here because if a space is↵ | | 3 | /* Had to make two separate commands here because if a space is↵
|
4 | inserted between the flag and the value, it is treated as a↵ | | 4 | inserted between the flag and the value, it is treated as a↵
|
5 | Windows filename with a space and it is enclosed in double↵ | | 5 | Windows filename with a space and it is enclosed in double↵
|
6 | quotes ("). This breaks clearcase.↵ | | 6 | quotes ("). This breaks clearcase.↵
|
7 | */↵ | | 7 | */↵
|
8 | cmd.createArgument().setValue(FLAG_COMMENT);↵ | | 8 | cmd.createArgument().setValue(FLAG_VERSION);↵
|
9 | cmd.createArgument().setValue(getComment());↵ | | 9 | cmd.createArgument().setValue(getVersion());↵
|
10 | }↵ | | 10 | }↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Get the 'cfile' command↵ | | 13 | * Get the 'comment' command↵
|
14 | *↵ | | 14 | *↵
|
15 | * @param cmd containing the command line string with or↵ | | 15 | * @param cmd containing the command line string with or↵
|
16 | * without the cfile flag and file appended↵ | | 16 | * without the comment flag and string appended↵
|
17 | */↵ | | 17 | */↵
|
18 | private void getCommentFileCommand(Commandline cmd) {↵ | | 18 | private void getCommentCommand(Commandline cmd) {↵
|
19 | if (getCommentFile() != null) {↵ | | 19 | if (getComment() != null) {↵
|
20 | /* Had to make two separate commands here because if a space is↵ | | 20 | /* Had to make two separate commands here because if a space is↵
|
21 | inserted between the flag and the value, it is treated as a↵ | | 21 | inserted between the flag and the value, it is treated as a↵
|
22 | Windows filename with a space and it is enclosed in double↵ | | 22 | Windows filename with a space and it is enclosed in double↵
|
23 | quotes ("). This breaks clearcase.↵ | | 23 | quotes ("). This breaks clearcase.↵
|
24 | */↵ | | 24 | */↵
|
25 | cmd.createArgument().setValue(FLAG_COMMENTFILE);↵ | | 25 | cmd.createArgument().setValue(FLAG_COMMENT);↵
|
26 | cmd.createArgument().setValue(getCommentFile());↵ | | 26 | cmd.createArgument().setValue(getComment());↵
|
27 | }↵ | | 27 | }↵
|
28 | | | 28 |
|