You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2019/05/27 00:15:08 UTC
[tomee] branch master updated: [TOMEE-2509] Wrap FileWriter with a
BufferedWriter in a loop
This is an automated email from the ASF dual-hosted git repository.
dblevins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/master by this push:
new c92fd5f [TOMEE-2509] Wrap FileWriter with a BufferedWriter in a loop
new ce94e4d Merge pull request #459 from bd2019us/TOMEE-2509-PATCH
c92fd5f is described below
commit c92fd5f90ff71cc9161cfc71018c26d3bc54e880
Author: bd2019us <bd...@126.com>
AuthorDate: Sat Apr 13 22:12:57 2019 -0500
[TOMEE-2509] Wrap FileWriter with a BufferedWriter in a loop
---
.../src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/maven/jarstxt-maven-plugin/src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java b/maven/jarstxt-maven-plugin/src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java
index 3603b00..8d76499 100644
--- a/maven/jarstxt-maven-plugin/src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java
+++ b/maven/jarstxt-maven-plugin/src/main/java/org/apache/openejb/maven/jarstxt/JarsTxtMojo.java
@@ -40,6 +40,7 @@ import org.apache.openejb.loader.ProvisioningUtil;
import org.codehaus.plexus.util.FileUtils;
import java.io.File;
+import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.net.MalformedURLException;
@@ -91,9 +92,9 @@ public class JarsTxtMojo extends AbstractMojo {
FileUtils.mkdir(outputFile.getParentFile().getAbsolutePath());
}
- FileWriter writer = null;
+ BufferedWriter writer = null;
try {
- writer = new FileWriter(outputFile);
+ writer = new BufferedWriter(new FileWriter(outputFile));
final TreeSet<String> set = new TreeSet<>();