Skip to content

Commit

Permalink
Merge pull request quarkusio#40869 from gastaldi/fix_indent
Browse files Browse the repository at this point in the history
Set the target file in the Model
  • Loading branch information
gsmet authored May 30, 2024
2 parents fdd1fcc + 5a65e49 commit 8d30b16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ private static Properties loadPomProps(Path appJar, Path artifactIdPath) throws
}

public static Model readModel(final Path pomXml) throws IOException {
return readModel(Files.newInputStream(pomXml));
Model model = readModel(Files.newInputStream(pomXml));
model.setPomFile(pomXml.toFile());
return model;
}

public static Model readModel(InputStream stream) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ protected void refreshData() {
return;
}
try {
model = ModelUtils.readModel(projectPom);
model = MojoUtils.readPom(projectPom.toFile());
} catch (IOException e) {
throw new RuntimeException("Failed to read " + projectPom, e);
}
Expand Down

0 comments on commit 8d30b16

Please sign in to comment.