merged = DefineArgument.merge(defs[i].getActiveDefines(), merged);
}
StringBuffer buf = new StringBuffer(30);
for (int i = 0; i < merged.length; i++) {
buf.setLength(0);
UndefineArgument current = merged[i];
if (current.isDefine()) {
args.addElement("-D");
buf.append(current.getName());
if (current.getValue() != null
&& current.getValue().length() > 0) {
buf.append('=');
buf.append(current.getValue());
}
args.addElement(buf.toString());
} else {
args.addElement("-U");
args.addElement(current.getName());
}
}
}