Community
Participate
Working Groups
If no command attribute is specified for a String List Tool in a managed make ManagedBuildInfo definition, then a call to ToolReference.getToolFlags() will add "null" to the tool flags string buffer. In that method, string lists commands should be handled similarly to Strings, that is don't append it if null: case IOption.STRING_LIST : String cmd = option.getCommand(); String[] list = option.getStringListValue(); for (int j = 0; j < list.length; j++) { String temp = list[j]; -- buf.append(cmd + temp + WHITE_SPACE); ++ if (cmd != null) buf.append(cmd); ++ buf.append(temp + WHITE_SPACE); } break; It is possible to have a string list option without a command prefix; we're using it for an "additional flags" option where the command is already in the value.
Note: the same affliction affects Tool.getToolFlags() and its StringList, so there's two total places to fix this problem.
Fixed in 2.0.1 and head. Simple change to avoid putting 'null' on the command line.