/** * Append all the arguments to the tail of a supplied list. * @param list the list of arguments. * @since Ant 1.6 */ public void addArgumentsToList(ListIterator<String> list) { for (Argument arg : arguments) { String[] s = arg.getParts(); if (s != null) { for (String value : s) { list.add(value); } } } }
/** * Return the parts this Argument consists of, if the * implementation matches the chosen implementation. * @see org.apache.tools.ant.types.Commandline.Argument#getParts() * @param chosenImpl the implementation to check against. * @return the parts if the implementation matches or an zero length * array if not. */ public final String[] getParts(String chosenImpl) { if (impl == null || impl.equals(chosenImpl)) { return super.getParts(); } return new String[0]; } }