Skip to content

Commit 7ef2dc7

Browse files
author
WolfgangWalter Sauer (wowasa)
committed
minor bugfix for -c option
1 parent 296628d commit 7ef2dc7

File tree

1 file changed

+6
-3
lines changed
  • curation-module-core/src/main/java/eu/clarin/cmdi/curation/main

1 file changed

+6
-3
lines changed

curation-module-core/src/main/java/eu/clarin/cmdi/curation/main/Main.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,13 @@ else if (cmd.hasOption("c")) {// collection
120120
type = CurationEntityType.COLLECTION;
121121
Configuration.COLLECTION_MODE = true;
122122
if (cmd.hasOption("path")) {
123+
Report<?> report;
124+
123125
for (String path : cmd.getOptionValues("path")) {
124-
//dump(curator.processCollection(Paths.get(path)), type);
125-
dumpAsXML(curator.processCollection(Paths.get(path)), type);
126-
dumpAsHTML(curator.processCollection(Paths.get(path)), type);
126+
report = curator.processCollection(Paths.get(path));
127+
128+
dumpAsXML(report, type);
129+
dumpAsHTML(report, type);
127130
}
128131
} else
129132
throw new Exception("Only path is allowed for collection curation");

0 commit comments

Comments
 (0)