Skip to content

Commit d82085f

Browse files
author
Wolfgang Walter SAUER
authored
Merge pull request #44 from clarin-eric/development
minor bugfix for -c option
2 parents 6c662b3 + 7ef2dc7 commit d82085f

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)