mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-28 19:44:02 -06:00
worlkoad templates parsing bug fix
This commit is contained in:
parent
3d95bf38ab
commit
93a1ecbf41
@ -37,8 +37,8 @@ import java.util.stream.Collectors;
|
||||
public class NosqlBenchFiles {
|
||||
|
||||
private final static Logger logger = LoggerFactory.getLogger(NosqlBenchFiles.class);
|
||||
private static Pattern templatePattern = Pattern.compile("TEMPLATE\\((.+)\\)");
|
||||
private static Pattern templatePattern2 = Pattern.compile("<<(.+)>>");
|
||||
private static Pattern templatePattern = Pattern.compile("TEMPLATE\\((.+?)\\)");
|
||||
private static Pattern templatePattern2 = Pattern.compile("<<(.+?)>>");
|
||||
|
||||
|
||||
public static InputStream findRequiredStreamOrFile(String basename, String extension, String... searchPaths) {
|
||||
|
@ -237,6 +237,7 @@ public class NBCLI {
|
||||
System.out.println("# with the following optional parameters and defaults: ");
|
||||
templates.stream()
|
||||
.map(x -> x.replaceAll(",","="))
|
||||
.map(x -> x.replaceAll(":","="))
|
||||
.map(x -> " # "+x)
|
||||
.forEach(System.out::println);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user