Commit 16c4754a authored by Jos van den Oever's avatar Jos van den Oever

Allow combination of run modes.

parent af740c82
......@@ -25,23 +25,27 @@ public class Main {
System.exit(1);
return;
}
boolean idle = true;
OdfZipNormalizer odfNormalizer = new OdfZipNormalizer();
if (conf.testsDir != null) {
if (!Tester.runTests(conf.testsDir, odfNormalizer.odfNormalizer)) {
return;
}
idle = false;
}
if (conf.input != null && conf.output != null) {
odfNormalizer.normalize(conf.input, conf.output);
return;
idle = false;
}
if (conf.historyFile != null && conf.repoDir != null
&& conf.officeDir != null) {
OdfHistory.create(conf.historyFile, conf.repoDir, conf.officeDir,
odfNormalizer.odfNormalizer);
return;
idle = false;
}
if (idle) {
usage();
}
usage();
}
private static void usage() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment