From ab7c90fc67c35a1c3c7df13b359e04829f06d91a Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 27 May 2003 09:43:22 +0000 Subject: [PATCH] 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 --- src/main/org/apache/tools/ant/types/CommandlineJava.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/CommandlineJava.java b/src/main/org/apache/tools/ant/types/CommandlineJava.java index 02928ca3e..d3e462701 100644 --- a/src/main/org/apache/tools/ant/types/CommandlineJava.java +++ b/src/main/org/apache/tools/ant/types/CommandlineJava.java @@ -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,