Bugfix crawl plan, doesn't use rewrite() everywhere

This commit is contained in:
Viktor Lofgren 2023-03-30 15:41:07 +02:00
parent d0c72ceb7e
commit 16e37672fc

View File

@ -31,7 +31,7 @@ public class CrawlPlan {
private static String rootDirRewrite = System.getProperty("crawl.rootDirRewrite");
public Path getJobSpec() {
return Path.of(jobSpec);
return Path.of(rewrite(jobSpec));
}
@AllArgsConstructor @NoArgsConstructor @ToString
@ -53,7 +53,7 @@ public class CrawlPlan {
}
String[] parts = rootDirRewrite.split(":");
return dir.replace(parts[0], parts[1]);
return dir.replaceFirst(parts[0], parts[1]);
}
public Path getCrawledFilePath(String fileName) {