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