bodewig 2003/05/27 02:43:22
Modified: src/main/org/apache/tools/ant/types CommandlineJava.java Log: Remove split System.arraycopy that is a leftover from times where we forced the -jar argument to be the first on the command line. Revision Changes Path 1.41 +2 -6 ant/src/main/org/apache/tools/ant/types/CommandlineJava.java Index: CommandlineJava.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/types/CommandlineJava.java,v retrieving revision 1.40 retrieving revision 1.41 diff -u -r1.40 -r1.41 --- CommandlineJava.java 27 May 2003 09:30:17 -0000 1.40 +++ CommandlineJava.java 27 May 2003 09:43:22 -0000 1.41 @@ -293,12 +293,8 @@ 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,