summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Sobolev2012-09-28 02:25:42 (EDT)
committerAndrey Sobolev2012-09-28 02:25:42 (EDT)
commit150f0a367c19465d4e115a357a66946e4c5556b9 (patch)
tree6a696ad4efedef064da91dbc2db9b389f41b5dac
parentb1069e75434e23fa9b6861ebd847b2af2f6311e0 (diff)
downloadorg.eclipse.dltk.core-150f0a367c19465d4e115a357a66946e4c5556b9.zip
org.eclipse.dltk.core-150f0a367c19465d4e115a357a66946e4c5556b9.tar.gz
org.eclipse.dltk.core-150f0a367c19465d4e115a357a66946e4c5556b9.tar.bz2
* Apply a patch for issue - Bug 390358 - Interpreters arguments quotes
are trimmed. Thanks to Kevin KIN-FOO(kkinfoo@sierrawireless.com)
-rw-r--r--core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/InterpreterDefinitionsContainer.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/InterpreterDefinitionsContainer.java b/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/InterpreterDefinitionsContainer.java
index fef945e..b76dd00 100644
--- a/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/InterpreterDefinitionsContainer.java
+++ b/core/plugins/org.eclipse.dltk.launching/src/org/eclipse/dltk/internal/launching/InterpreterDefinitionsContainer.java
@@ -515,13 +515,9 @@ public class InterpreterDefinitionsContainer {
element.appendChild(environmentVariableElement);
}
- String[] InterpreterArgs = interpreter.getInterpreterArguments();
- if (InterpreterArgs != null && InterpreterArgs.length > 0) {
- StringBuffer buffer = new StringBuffer();
- for (int i = 0; i < InterpreterArgs.length; i++) {
- buffer.append(InterpreterArgs[i] + " "); //$NON-NLS-1$
- }
- element.setAttribute(IARGS_ATTR, buffer.toString());
+ final String InterpreterArgs = interpreter.getInterpreterArgs();
+ if (InterpreterArgs != null && InterpreterArgs.length() > 0) {
+ element.setAttribute(IARGS_ATTR, InterpreterArgs);
}
if (interpreter instanceof IInterpreterInstallExtensionContainer) {