equal
deleted
inserted
replaced
52 private static final String MODULE = "module"; |
52 private static final String MODULE = "module"; |
53 private static final String NAME = "name"; |
53 private static final String NAME = "name"; |
54 private static final String DEPEND = "depend"; |
54 private static final String DEPEND = "depend"; |
55 private static final String EXPORT = "export"; |
55 private static final String EXPORT = "export"; |
56 private static final String TO = "to"; |
56 private static final String TO = "to"; |
57 private static final String INCLUDE = "include"; |
|
58 private static final QName REEXPORTS = new QName("re-exports"); |
57 private static final QName REEXPORTS = new QName("re-exports"); |
59 |
58 |
60 private static void writeXML(Set<Module> modules, Path path) |
59 private static void writeXML(Set<Module> modules, Path path) |
61 throws IOException, XMLStreamException |
60 throws IOException, XMLStreamException |
62 { |
61 { |
141 .forEach(pn -> writeExportElement(xtw, pn, depth+1)); |
140 .forEach(pn -> writeExportElement(xtw, pn, depth+1)); |
142 m.exports().entrySet().stream() |
141 m.exports().entrySet().stream() |
143 .filter(e -> !e.getValue().isEmpty()) |
142 .filter(e -> !e.getValue().isEmpty()) |
144 .sorted(Map.Entry.comparingByKey()) |
143 .sorted(Map.Entry.comparingByKey()) |
145 .forEach(e -> writeExportElement(xtw, e.getKey(), e.getValue(), depth+1)); |
144 .forEach(e -> writeExportElement(xtw, e.getKey(), e.getValue(), depth+1)); |
146 m.packages().stream().sorted() |
|
147 .forEach(p -> writeElement(xtw, INCLUDE, p, depth+1)); |
|
148 writeEndElement(xtw, depth); |
145 writeEndElement(xtw, depth); |
149 } catch (XMLStreamException e) { |
146 } catch (XMLStreamException e) { |
150 throw new RuntimeException(e); |
147 throw new RuntimeException(e); |
151 |
148 |
152 } |
149 } |