Skip to content

Commit d1edd47

Browse files
author
jantje
committed
remove unnecessary removal of quotes
1 parent 0689806 commit d1edd47

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

io.sloeber.core/src/io/sloeber/core/tools/ExternalCommandLauncher.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ public ExternalCommandLauncher(String command) {
152152
String[] commandParts = command
153153
.split(" +(?=([^\"]*\"[^\"]*\")*[^\"]*$)"); //$NON-NLS-1$
154154
//TODO do we really want to remove the quotes?
155-
for (int curCommand = 0; curCommand < commandParts.length; curCommand++) {
156-
if (commandParts[curCommand].startsWith("\"") //$NON-NLS-1$
157-
&& commandParts[curCommand].endsWith("\"")) { //$NON-NLS-1$
158-
commandParts[curCommand] = commandParts[curCommand].substring(1,
159-
commandParts[curCommand].length() - 1);
160-
}
161-
162-
}
155+
// for (int curCommand = 0; curCommand < commandParts.length; curCommand++) {
156+
// if (commandParts[curCommand].startsWith("\"") //$NON-NLS-1$
157+
// && commandParts[curCommand].endsWith("\"")) { //$NON-NLS-1$
158+
// commandParts[curCommand] = commandParts[curCommand].substring(1,
159+
// commandParts[curCommand].length() - 1);
160+
// }
161+
//
162+
// }
163163
myProcessBuilder = new ProcessBuilder(Arrays.asList(commandParts));
164164
myProcessBuilder.redirectErrorStream(true);
165165
}

0 commit comments

Comments
 (0)