Skip to content

Commit

Permalink
Fix Velocity rendering issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sualeh committed Jan 15, 2022
1 parent 7f65845 commit 10b2f03
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,11 @@ public void execute() {
String templatePath = ".";
final Path templateFilePath = Paths.get(templateLocation);
if (Files.exists(templateFilePath)) {
templatePath = templatePath + "," + templateFilePath.getParent().toAbsolutePath();
templateLocation = templateFilePath.getFileName().toString();
final Path templateFileParentPath = templateFilePath.normalize().getParent();
if (templateFileParentPath != null) {
templatePath = templatePath + "," + templateFileParentPath.toAbsolutePath();
templateLocation = templateFilePath.getFileName().toString();
}
}

try {
Expand Down

0 comments on commit 10b2f03

Please sign in to comment.