We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 476443e commit cc6f3fdCopy full SHA for cc6f3fd
opengrok-indexer/src/main/java/org/opengrok/indexer/index/Indexer.java
@@ -870,6 +870,14 @@ private static void checkConfiguration() {
870
if (repositories.size() > 0 && !cfg.isHistoryEnabled()) {
871
die("Repositories were specified; history is off however");
872
}
873
+
874
+ if (! new File(cfg.getSourceRoot()).canRead()) {
875
+ die("Source root '" + cfg.getSourceRoot() + "' must be readable");
876
+ }
877
878
+ if (! new File(cfg.getDataRoot()).canWrite()) {
879
+ die("Data root '" + cfg.getDataRoot() + "' must be writable");
880
881
882
883
private static void die(String message) {
0 commit comments