/** * Returns the executable. * * @return The executable */ public String getExecutable() { // Expand the executable and replace '/' and '\\' with the platform // specific file separator char. This is safe here since we know // that this is a platform specific command. return StringUtils.fixFileSeparatorChar(expandArgument(executable)); }
/** * Returns the expanded and quoted command line arguments. * * @return The quoted arguments */ public String[] getArguments() { Argument currArgument; String expandedArgument; final String[] result = new String[arguments.size()]; for (int i=0; i<result.length; i++) { currArgument = arguments.get(i); expandedArgument = expandArgument(currArgument.getValue()); result[i] = currArgument.isHandleQuoting() ? StringUtils.quoteArgument(expandedArgument) : expandedArgument; } return result; }