Browse Source

Remove split System.arraycopy that is a leftover from times where we

forced the -jar argument to be the first on the command line.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274623 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
ab7c90fc67
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      src/main/org/apache/tools/ant/types/CommandlineJava.java

+ 2
- 6
src/main/org/apache/tools/ant/types/CommandlineJava.java View File

@@ -293,12 +293,8 @@ public class CommandlineJava implements Cloneable {
String[] result = new String[size()];
int pos = 0;
String[] vmArgs = getActualVMCommand().getCommandline();
// first argument is the java.exe path...
result[pos++] = vmArgs[0];
// next follows the vm options
System.arraycopy(vmArgs, 1, result, pos, vmArgs.length - 1);
pos += vmArgs.length - 1;
System.arraycopy(vmArgs, 0, result, pos, vmArgs.length);
pos += vmArgs.length;
// properties are part of the vm options...
if (sysProperties.size() > 0) {
System.arraycopy(sysProperties.getVariables(), 0,


Loading…
Cancel
Save