A LIST_CMD command introduced. It's used by LIST so that it does not have to
form the command's execution string from it's arguments.
1.1 --- a/vcs.profiles.clearcase/src/org/netbeans/modules/vcs/profiles/clearcase/config/ClearCase.xml Mon Feb 10 16:28:37 2003 +0000
1.2 +++ b/vcs.profiles.clearcase/src/org/netbeans/modules/vcs/profiles/clearcase/config/ClearCase.xml Mon Feb 10 17:56:11 2003 +0000
1.3 @@ -54,7 +54,7 @@
1.4 <value>-1</value>
1.5 </property>
1.6 <property name="exec">
1.7 - <value>org.netbeans.modules.vcs.profiles.clearcase.list.ClearCaseListCommand.class ${RUN} ${ClearCaseCMD} ls ${NUR}</value>
1.8 + <value>org.netbeans.modules.vcs.profiles.clearcase.list.ClearCaseListCommand.class LIST_CMD</value>
1.9 </property>
1.10 <property name="data.date.index">
1.11 <value>-1</value>
1.12 @@ -81,6 +81,11 @@
1.13 <value>(.*$)</value>
1.14 </property>
1.15 </command>
1.16 + <command name="LIST_CMD">
1.17 + <property name="exec">
1.18 + <value>${RUN} ${ClearCaseCMD} ls ${NUR}</value>
1.19 + </property>
1.20 + </command>
1.21 <command displayName="getBundle(org/netbeans/modules/vcs/profiles/clearcase/config/Bundle).getString(CMD_Refresh_Recursively)" name="LIST_SUB">
1.22 <property name="onFile">
1.23 <value>false</value>
2.1 --- a/vcs.profiles.clearcase/src/org/netbeans/modules/vcs/profiles/clearcase/list/ClearCaseListCommand.java Mon Feb 10 16:28:37 2003 +0000
2.2 +++ b/vcs.profiles.clearcase/src/org/netbeans/modules/vcs/profiles/clearcase/list/ClearCaseListCommand.java Mon Feb 10 17:56:11 2003 +0000
2.3 @@ -98,10 +98,14 @@
2.4 this.dataRegex = dataRegex;
2.5 this.errorRegex = errorRegex;
2.6 this.filesByName = filesByName;
2.7 + if (args.length < 1) {
2.8 + stderrNRListener.outputLine("Expecting a command name as an argument!"); //NOI18N
2.9 + return false;
2.10 + }
2.11 initVars(vars);
2.12 initDir(vars);
2.13 try {
2.14 - runCommand(vars, args, false);
2.15 + runCommand(vars, args[0], false);
2.16 } catch (InterruptedException iex) {
2.17 return false;
2.18 }