StringBuffer buf = new StringBuffer();
buf.append("antxconfig ");
// descriptor patterns
PatternSet descriptorPatterns = descriptorPatternsControl.getPatterns();
buf.append(patternsToString("-d ", descriptorPatterns.getIncludes(), " "));
buf.append(patternsToString("-D ", descriptorPatterns.getExcludes(), " "));
// package patterns
PatternSet packagePatterns = packagePatternsControl.getPatterns();
buf.append(patternsToString("-p ", packagePatterns.getIncludes(), " "));
buf.append(patternsToString("-P ", packagePatterns.getExcludes(), " "));
// files
for (Iterator i = getFiles().iterator(); i.hasNext();) {
File file = (File) i.next();