This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-antrun-plugin.git
commit ead9f42c720ff9b11260efd90fbde9102a99bb40 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Tue Nov 17 03:57:31 2026 +0000 Use System.lineSeparator(), @Override and try-with-resources --- .../maven/plugins/antrun/AntrunXmlPlexusConfigurationWriter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriter.java b/src/main/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriter.java index da5f1de..9070e6f 100644 --- a/src/main/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriter.java +++ b/src/main/java/org/apache/maven/plugins/antrun/AntrunXmlPlexusConfigurationWriter.java @@ -50,8 +50,7 @@ class AntrunXmlPlexusConfigurationWriter { throws IOException { MXSerializer serializer = new MXSerializer(); serializer.setProperty( - "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", - System.getProperty("line.separator")); + "http://xmlpull.org/v1/doc/properties.html#serializer-line-separator", System.lineSeparator()); serializer.setProperty("http://xmlpull.org/v1/doc/properties.html#serializer-indentation", " "); try (BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(file))) { serializer.setOutput(bos, AntRunMojo.UTF_8);
