mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
more paths consolidation
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package io.nosqlbench.docsys.api;
|
||||
|
||||
import io.nosqlbench.nb.api.pathutil.VirtDataResources;
|
||||
import io.nosqlbench.nb.api.pathutil.NBPaths;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
@@ -25,7 +25,7 @@ public class Docs implements DocsBinder {
|
||||
}
|
||||
|
||||
public Docs addFirstFoundPath(String... potentials) {
|
||||
Path pathIn = VirtDataResources.findPathIn(potentials);
|
||||
Path pathIn = NBPaths.findPathIn(potentials);
|
||||
if (pathIn == null || !Files.exists(pathIn)) {
|
||||
throw new RuntimeException("Unable to find a path in one of " + Arrays.stream(potentials).collect(Collectors.joining(",")));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user