RED-4510: Generated Redaction Log and Generating will not run with profile

This commit is contained in:
Philipp Schramm 2022-07-26 13:25:58 +02:00
parent c54ee6e7bf
commit 712b86a19a

View File

@ -630,6 +630,9 @@ public class RulesTest {
String absolutePath = path.toAbsolutePath().toString(); String absolutePath = path.toAbsolutePath().toString();
System.out.println("absolutePath: " + absolutePath); System.out.println("absolutePath: " + absolutePath);
int pos = StringUtils.indexOf(absolutePath, StringUtils.replace(RESOURCES_PATH, "/", "\\")) + 18; int pos = StringUtils.indexOf(absolutePath, StringUtils.replace(RESOURCES_PATH, "/", "\\")) + 18;
pos = StringUtils.indexOf(absolutePath, RESOURCES_PATH) + 18;
System.out.println("pos: " + pos); System.out.println("pos: " + pos);
fileNames.add(StringUtils.substring(absolutePath, pos)); fileNames.add(StringUtils.substring(absolutePath, pos));
System.out.println("Added: " + StringUtils.substring(absolutePath, pos)); System.out.println("Added: " + StringUtils.substring(absolutePath, pos));