Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.ui.externaltools/External Tools/org/eclipse/ui/externaltools/internal/core/AntFileRunner.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools/org/eclipse/ui/externaltools/internal/core/AntFileRunner.java b/org.eclipse.ui.externaltools/External Tools/org/eclipse/ui/externaltools/internal/core/AntFileRunner.java
index 9cdc19b86..7ec65618f 100644
--- a/org.eclipse.ui.externaltools/External Tools/org/eclipse/ui/externaltools/internal/core/AntFileRunner.java
+++ b/org.eclipse.ui.externaltools/External Tools/org/eclipse/ui/externaltools/internal/core/AntFileRunner.java
@@ -39,13 +39,10 @@ public class AntFileRunner extends ExternalToolsRunner {
if (baseDir.length() > 0) {
String baseDirArg = BASE_DIR_PREFIX + baseDir;
- String[] newArgs = new String[args.length+1];
- for (int i=0; i< newArgs.length; i++) {
- newArgs[i] = args[i];
- }
+ String[] newArgs = new String[args.length + 1];
+ System.arraycopy(args, 0, newArgs, 0, args.length);
newArgs[newArgs.length - 1] = baseDirArg;
-
- runner.setArguments(newArgs); //$NON-NLS-1$
+ runner.setArguments(newArgs);
} else {
runner.setArguments(args);
}

Back to the top