From 2e8ca8c4cd407c5f942742a957ede04de9224f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sun, 4 Aug 2024 18:14:17 +0200 Subject: [PATCH] Fix using targetFile reference directly --- .../java/org/eclipse/tycho/versionbump/UpdateTargetMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tycho-extras/tycho-version-bump-plugin/src/main/java/org/eclipse/tycho/versionbump/UpdateTargetMojo.java b/tycho-extras/tycho-version-bump-plugin/src/main/java/org/eclipse/tycho/versionbump/UpdateTargetMojo.java index f37fb0ba5d..73d6dcd99c 100644 --- a/tycho-extras/tycho-version-bump-plugin/src/main/java/org/eclipse/tycho/versionbump/UpdateTargetMojo.java +++ b/tycho-extras/tycho-version-bump-plugin/src/main/java/org/eclipse/tycho/versionbump/UpdateTargetMojo.java @@ -83,7 +83,7 @@ protected void doUpdate() throws IOException, URISyntaxException, ParserConfigur getLog().info("Update target file " + file); //we use the descent xml parser here because we need to retain the formating of the original file XMLParser parser = new XMLParser(); - Document target = parser.parse(new XMLIOSource(targetFile)); + Document target = parser.parse(new XMLIOSource(file)); boolean changed = false; try (FileInputStream input = new FileInputStream(file)) { TargetDefinitionFile parsedTarget = TargetDefinitionFile.read(file);