Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Oct 10, 2024
1 parent cb2f735 commit 824e3c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public Xml.Document visitDocument(Xml.Document document, ExecutionContext ctx) {
if (goal.getContent() != null && goal.getContent().size() == 1 && goal.getContent().get(0) instanceof Xml.CharData) {
Xml.CharData existingValue = (Xml.CharData) goal.getContent().get(0);
if ("native-image".equalsIgnoreCase(existingValue.getText())) {
doAfterVisit(new RemoveContentVisitor<>(goal, true));
doAfterVisit(new RemoveContentVisitor<>(goal, true, true));
doAfterVisit(new AddQuarkusPackageTypePropertyToNativeProfile());
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public void defaults(RecipeSpec spec) {
@Test
void removeQuarkusMavenPluginNativeImageGoalTest() {
rewriteRun(
//language=xml
pomXml(
"""
<project>
Expand Down Expand Up @@ -96,6 +97,7 @@ void removeQuarkusMavenPluginNativeImageGoalTest() {
@Test
void addPropertyToNativeProfile() {
rewriteRun(
//language=xml
pomXml(
"""
<project>
Expand Down

0 comments on commit 824e3c3

Please sign in to comment.