Skip to content

Commit

Permalink
Set the target file in the Model
Browse files Browse the repository at this point in the history
This is necessary so `maven-model-helper` can know which pom.xml the change refers to.

- Fixes quarkusio#40853
  • Loading branch information
gastaldi committed May 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a7d0d56 commit 41ae1b3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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 {

0 comments on commit 41ae1b3

Please sign in to comment.