From 86d75717e301e4585ead041501c64879b93d2e42 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 (cherry picked from commit f293355b249f086e7b822b8ab442c5553163e56a) --- .../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);