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);