svn commit: r33884 - in /dev/ant: README.html RELEASE-NOTES-1.10.6.html

2019-05-02 Thread jaikiran
Author: jaikiran
Date: Thu May  2 13:53:36 2019
New Revision: 33884

Log:
Fix the release notes for rc2 of 1.10.6 of Ant

Modified:
dev/ant/README.html
dev/ant/RELEASE-NOTES-1.10.6.html

Modified: dev/ant/README.html
==
--- dev/ant/README.html (original)
+++ dev/ant/README.html Thu May  2 13:53:36 2019
@@ -1,371 +1,120 @@
-Instructions for making a Release:
-
-Authors: Conor MacNeill
- Stefan Bodewig
- Magesh Umasankar
- Antoine Levy-Lambert
-
-Note: This document was adapted from the one created in the context of
-  releasing Ant 1.9.7. It assumes the first release created from
-  master will be 1.10.
-  Please interpret the branch names, tags, etc. according to
-  your context.
-
-  It reflects the way Stefan prefers to cut the release, parts of
-  this process haven't even been discussed on the dev list and may
-  change with later releases.
-
-1.  Propose a release plan for vote.  This should set out the timetable for
-the release under ideal circumstances.  
-
-In reality, you send a note to the list that you intend to cut the
-release and wait for a few days whether anybody objects.
-
-We haven't created extra branches for releases in a long time and
-with our new 1.9.x LTS policy there is a permanent branch for
-Java5 compatible releases anyway. So no extra branch for the
-releases is needed.
-
-This document assumes you are familiar with git
-http://git-scm.com/book/en/v2/
-may be a good guide if you are not.
-
-2.  Ensure you have all the external libraries that Ant uses in your
-lib/optional directory.  All dependencies are either provided by
-JDK 1.8.0 or downloadable using
-ant -f fetch.xml -Ddest=optional
-To find out whether you have all the libraries you need, execute
-the build with -verbose option and scan for lines beginning with
-"Unable to load...". 
-
-Also check the NOTICE file to make sure it has the correct
-Copyright year. If the year isn't right, update that file to use
-the right year and commit and push the change upstream, before
-starting any release process.
-
-There are certain features that require JDK 9+ version to be used
-while releasing Ant 1.10.x from master branch. Make sure JAVA_HOME
-points to a JDK installation which is minimally Java 9.
-
-3.  We don't want tags for failed votes to end up on our branches so
-the release is first created from a detached head.
-
-Checkout the HEAD of the master branch as a detached head:
-
-$ git checkout master^0
-
-4.  Make sure that your directory tree is clean by running git status.
-Some tests leave behind leftovers which end up in the source
-distribution otherwise.
-
-5.  Set the version number in several files to the required new
-versions. These are:
-
-* manual/cover.html (version should already be correct here)
-* manual/credits.html  (version should already be correct here)
-* build.xml properties : project.version,manifest-version,pom.version
-* POM files under src/etc/poms and subdirectories
-  if you've got mvn installed
-
-  $ mvn versions:set -DnewVersion=1.10.0 -DgenerateBackupPoms=false
-
-  inside src/etc/poms should do the trick.
-
-* ivy.xml in release subdirectory (version should already be correct here)
-* WHATSNEW (version should already be correct here)
-* src/etc/testcases/taskdefs/conditions/antversion.xml (version should 
already be correct here)
-
-6.  Next bootstrap, build and run the tests.
-
-$ ./bootstrap.sh
-
-Make sure the log messages doesn't contain the message:
-
-"Java 9+ features won't be available in the distribution"
-
-If it does, then it's a sign that JAVA_HOME isn't pointing to a JDK 9+ 
version.
-Fix JAVA_HOME to point to a valid JDK 9+ version and redo the release 
steps.
-
-$ ./build.sh
-$ ./build.sh test
-# if you've got maven installed
-$ mvn -f src/etc/poms/pom.xml -DskipTests  package
-
-7.  Then build the distribution. It is important that this be a clean
-build.
-
-# clean
-$ rm -rf bootstrap build dist distribution java-repository target
-$ ./build.sh dist-lite
-$ ./dist/bin/ant -nouserlib -lib lib/optional distribution
-
-build.xml specifies that the code should be compiled with
-source=1.8 and target=1.8.
-
-8.  Commit your changes, tag them, push them.
-
-$ git tag -s -m "Tagging RC1 for version 1.10.0 of Ant" ANT_1.10.0_RC1
-$ git push --tags
-
-9.  Ensure that the GPG key you use is inside the KEYS file in Ant's
-git repository
-

-- and that you copy the KEYS file to /www/www.apache.org/dist/ant
-
-Also make sure you have sent the key that you use to a public
-

svn commit: r33883 - in /dev/ant: ./ binaries/ manual/ source/

2019-05-02 Thread jaikiran
Author: jaikiran
Date: Thu May  2 13:26:30 2019
New Revision: 33883

Log:
Prepare for voting RC2 of Ant 1.10.6 release

Added:
dev/ant/README.html   (with props)
dev/ant/RELEASE-NOTES-1.10.6.html   (with props)
dev/ant/binaries/apache-ant-1.10.6-bin.tar.bz2   (with props)
dev/ant/binaries/apache-ant-1.10.6-bin.tar.bz2.asc
dev/ant/binaries/apache-ant-1.10.6-bin.tar.bz2.sha512
dev/ant/binaries/apache-ant-1.10.6-bin.tar.gz   (with props)
dev/ant/binaries/apache-ant-1.10.6-bin.tar.gz.asc
dev/ant/binaries/apache-ant-1.10.6-bin.tar.gz.sha512
dev/ant/binaries/apache-ant-1.10.6-bin.tar.xz   (with props)
dev/ant/binaries/apache-ant-1.10.6-bin.tar.xz.asc
dev/ant/binaries/apache-ant-1.10.6-bin.tar.xz.sha512
dev/ant/binaries/apache-ant-1.10.6-bin.zip   (with props)
dev/ant/binaries/apache-ant-1.10.6-bin.zip.asc
dev/ant/binaries/apache-ant-1.10.6-bin.zip.sha512
dev/ant/manual/apache-ant-1.10.6-manual.tar.bz2   (with props)
dev/ant/manual/apache-ant-1.10.6-manual.tar.bz2.asc
dev/ant/manual/apache-ant-1.10.6-manual.tar.bz2.sha512
dev/ant/manual/apache-ant-1.10.6-manual.tar.gz   (with props)
dev/ant/manual/apache-ant-1.10.6-manual.tar.gz.asc
dev/ant/manual/apache-ant-1.10.6-manual.tar.gz.sha512
dev/ant/manual/apache-ant-1.10.6-manual.tar.xz   (with props)
dev/ant/manual/apache-ant-1.10.6-manual.tar.xz.asc
dev/ant/manual/apache-ant-1.10.6-manual.tar.xz.sha512
dev/ant/manual/apache-ant-1.10.6-manual.zip   (with props)
dev/ant/manual/apache-ant-1.10.6-manual.zip.asc
dev/ant/manual/apache-ant-1.10.6-manual.zip.sha512
dev/ant/source/apache-ant-1.10.6-src.tar.bz2   (with props)
dev/ant/source/apache-ant-1.10.6-src.tar.bz2.asc
dev/ant/source/apache-ant-1.10.6-src.tar.bz2.sha512
dev/ant/source/apache-ant-1.10.6-src.tar.gz   (with props)
dev/ant/source/apache-ant-1.10.6-src.tar.gz.asc
dev/ant/source/apache-ant-1.10.6-src.tar.gz.sha512
dev/ant/source/apache-ant-1.10.6-src.tar.xz   (with props)
dev/ant/source/apache-ant-1.10.6-src.tar.xz.asc
dev/ant/source/apache-ant-1.10.6-src.tar.xz.sha512
dev/ant/source/apache-ant-1.10.6-src.zip   (with props)
dev/ant/source/apache-ant-1.10.6-src.zip.asc
dev/ant/source/apache-ant-1.10.6-src.zip.sha512

Added: dev/ant/README.html
==
--- dev/ant/README.html (added)
+++ dev/ant/README.html Thu May  2 13:26:30 2019
@@ -0,0 +1,371 @@
+Instructions for making a Release:
+
+Authors: Conor MacNeill
+ Stefan Bodewig
+ Magesh Umasankar
+ Antoine Levy-Lambert
+
+Note: This document was adapted from the one created in the context of
+  releasing Ant 1.9.7. It assumes the first release created from
+  master will be 1.10.
+  Please interpret the branch names, tags, etc. according to
+  your context.
+
+  It reflects the way Stefan prefers to cut the release, parts of
+  this process haven't even been discussed on the dev list and may
+  change with later releases.
+
+1.  Propose a release plan for vote.  This should set out the timetable for
+the release under ideal circumstances.  
+
+In reality, you send a note to the list that you intend to cut the
+release and wait for a few days whether anybody objects.
+
+We haven't created extra branches for releases in a long time and
+with our new 1.9.x LTS policy there is a permanent branch for
+Java5 compatible releases anyway. So no extra branch for the
+releases is needed.
+
+This document assumes you are familiar with git
+http://git-scm.com/book/en/v2/
+may be a good guide if you are not.
+
+2.  Ensure you have all the external libraries that Ant uses in your
+lib/optional directory.  All dependencies are either provided by
+JDK 1.8.0 or downloadable using
+ant -f fetch.xml -Ddest=optional
+To find out whether you have all the libraries you need, execute
+the build with -verbose option and scan for lines beginning with
+"Unable to load...". 
+
+Also check the NOTICE file to make sure it has the correct
+Copyright year. If the year isn't right, update that file to use
+the right year and commit and push the change upstream, before
+starting any release process.
+
+There are certain features that require JDK 9+ version to be used
+while releasing Ant 1.10.x from master branch. Make sure JAVA_HOME
+points to a JDK installation which is minimally Java 9.
+
+3.  We don't want tags for failed votes to end up on our branches so
+the release is first created from a detached head.
+
+Checkout the HEAD of the master branch as a detached head:
+
+$ git checkout master^0
+
+4.  Make sure that your directory tree is clean by running git status.
+Some tests leave behind leftovers which end up in the source
+distribution otherwise.
+
+5.  Set the version number in several files to the 

svn commit: r33882 - in /dev/ant: ./ binaries/ manual/ source/

2019-05-02 Thread jaikiran
Author: jaikiran
Date: Thu May  2 13:21:24 2019
New Revision: 33882

Log:
Remove failed Ant 1.10.6 RC1 release artifacts

Removed:
dev/ant/RELEASE-NOTES-1.10.6.html
dev/ant/binaries/apache-ant-1.10.6-bin.tar.bz2
dev/ant/binaries/apache-ant-1.10.6-bin.tar.bz2.asc
dev/ant/binaries/apache-ant-1.10.6-bin.tar.bz2.sha512
dev/ant/binaries/apache-ant-1.10.6-bin.tar.gz
dev/ant/binaries/apache-ant-1.10.6-bin.tar.gz.asc
dev/ant/binaries/apache-ant-1.10.6-bin.tar.gz.sha512
dev/ant/binaries/apache-ant-1.10.6-bin.tar.xz
dev/ant/binaries/apache-ant-1.10.6-bin.tar.xz.asc
dev/ant/binaries/apache-ant-1.10.6-bin.tar.xz.sha512
dev/ant/binaries/apache-ant-1.10.6-bin.zip
dev/ant/binaries/apache-ant-1.10.6-bin.zip.asc
dev/ant/binaries/apache-ant-1.10.6-bin.zip.sha512
dev/ant/manual/apache-ant-1.10.6-manual.tar.bz2
dev/ant/manual/apache-ant-1.10.6-manual.tar.bz2.asc
dev/ant/manual/apache-ant-1.10.6-manual.tar.bz2.sha512
dev/ant/manual/apache-ant-1.10.6-manual.tar.gz
dev/ant/manual/apache-ant-1.10.6-manual.tar.gz.asc
dev/ant/manual/apache-ant-1.10.6-manual.tar.gz.sha512
dev/ant/manual/apache-ant-1.10.6-manual.tar.xz
dev/ant/manual/apache-ant-1.10.6-manual.tar.xz.asc
dev/ant/manual/apache-ant-1.10.6-manual.tar.xz.sha512
dev/ant/manual/apache-ant-1.10.6-manual.zip
dev/ant/manual/apache-ant-1.10.6-manual.zip.asc
dev/ant/manual/apache-ant-1.10.6-manual.zip.sha512
dev/ant/source/apache-ant-1.10.6-src.tar.bz2
dev/ant/source/apache-ant-1.10.6-src.tar.bz2.asc
dev/ant/source/apache-ant-1.10.6-src.tar.bz2.sha512
dev/ant/source/apache-ant-1.10.6-src.tar.gz
dev/ant/source/apache-ant-1.10.6-src.tar.gz.asc
dev/ant/source/apache-ant-1.10.6-src.tar.gz.sha512
dev/ant/source/apache-ant-1.10.6-src.tar.xz
dev/ant/source/apache-ant-1.10.6-src.tar.xz.asc
dev/ant/source/apache-ant-1.10.6-src.tar.xz.sha512
dev/ant/source/apache-ant-1.10.6-src.zip
dev/ant/source/apache-ant-1.10.6-src.zip.asc
dev/ant/source/apache-ant-1.10.6-src.zip.sha512



[ant] 01/01: Prepare RC2 of 1.10.6 Ant release

2019-05-02 Thread jaikiran
This is an automated email from the ASF dual-hosted git repository.

jaikiran pushed a commit to annotated tag ANT_1.10.6_RC2
in repository https://gitbox.apache.org/repos/asf/ant.git

commit e4a56ec5bd155fccf176ea37a778c486ac5cb92c
Author: Jaikiran Pai 
AuthorDate: Thu May 2 18:42:29 2019 +0530

Prepare RC2 of 1.10.6 Ant release

Signed-off-by: Jaikiran Pai 
---
 build.xml| 4 ++--
 src/etc/poms/ant-antlr/pom.xml   | 6 +++---
 src/etc/poms/ant-apache-bcel/pom.xml | 6 +++---
 src/etc/poms/ant-apache-bsf/pom.xml  | 6 +++---
 src/etc/poms/ant-apache-log4j/pom.xml| 6 +++---
 src/etc/poms/ant-apache-oro/pom.xml  | 6 +++---
 src/etc/poms/ant-apache-regexp/pom.xml   | 6 +++---
 src/etc/poms/ant-apache-resolver/pom.xml | 6 +++---
 src/etc/poms/ant-apache-xalan2/pom.xml   | 6 +++---
 src/etc/poms/ant-commons-logging/pom.xml | 6 +++---
 src/etc/poms/ant-commons-net/pom.xml | 6 +++---
 src/etc/poms/ant-imageio/pom.xml | 6 +++---
 src/etc/poms/ant-jai/pom.xml | 6 +++---
 src/etc/poms/ant-javamail/pom.xml| 6 +++---
 src/etc/poms/ant-jdepend/pom.xml | 6 +++---
 src/etc/poms/ant-jmf/pom.xml | 6 +++---
 src/etc/poms/ant-jsch/pom.xml| 6 +++---
 src/etc/poms/ant-junit/pom.xml   | 6 +++---
 src/etc/poms/ant-junit4/pom.xml  | 6 +++---
 src/etc/poms/ant-junitlauncher/pom.xml   | 6 +++---
 src/etc/poms/ant-launcher/pom.xml| 4 ++--
 src/etc/poms/ant-netrexx/pom.xml | 6 +++---
 src/etc/poms/ant-swing/pom.xml   | 6 +++---
 src/etc/poms/ant-testutil/pom.xml| 6 +++---
 src/etc/poms/ant-xz/pom.xml  | 6 +++---
 src/etc/poms/ant/pom.xml | 6 +++---
 src/etc/poms/pom.xml | 2 +-
 27 files changed, 77 insertions(+), 77 deletions(-)

diff --git a/build.xml b/build.xml
index 6f7fc08..bec80d8 100644
--- a/build.xml
+++ b/build.xml
@@ -33,9 +33,9 @@
   
   
   
-  
+  
   
-  
+  
   
   
 
diff --git a/src/etc/poms/ant-antlr/pom.xml b/src/etc/poms/ant-antlr/pom.xml
index 8302771..3650f27 100644
--- a/src/etc/poms/ant-antlr/pom.xml
+++ b/src/etc/poms/ant-antlr/pom.xml
@@ -27,13 +27,13 @@
 org.apache.ant
 ant-parent
 ../pom.xml
-1.10.6-SNAPSHOT
+1.10.6
   
   4.0.0
   http://ant.apache.org/
   org.apache.ant
   ant-antlr
-  1.10.6-SNAPSHOT
+  1.10.6
   Apache Ant + ANTLR
   antlr specific task.
 The implementation forks a java process, therefore the antlr jar file is 
only needed at runtime
@@ -41,7 +41,7 @@
 
   org.apache.ant
   ant
-  1.10.6-SNAPSHOT
+  1.10.6
   true
   compile
 
diff --git a/src/etc/poms/ant-apache-bcel/pom.xml 
b/src/etc/poms/ant-apache-bcel/pom.xml
index 79720e1..772a235 100644
--- a/src/etc/poms/ant-apache-bcel/pom.xml
+++ b/src/etc/poms/ant-apache-bcel/pom.xml
@@ -27,19 +27,19 @@
 org.apache.ant
 ant-parent
 ../pom.xml
-1.10.6-SNAPSHOT
+1.10.6
   
   4.0.0
   http://ant.apache.org/
   org.apache.ant
   ant-apache-bcel
-  1.10.6-SNAPSHOT
+  1.10.6
   Apache Ant + BCEL
   
 
   org.apache.ant
   ant
-  1.10.6-SNAPSHOT
+  1.10.6
   compile
 
 
diff --git a/src/etc/poms/ant-apache-bsf/pom.xml 
b/src/etc/poms/ant-apache-bsf/pom.xml
index 1209284..3d8a92f 100644
--- a/src/etc/poms/ant-apache-bsf/pom.xml
+++ b/src/etc/poms/ant-apache-bsf/pom.xml
@@ -27,19 +27,19 @@
 org.apache.ant
 ant-parent
 ../pom.xml
-1.10.6-SNAPSHOT
+1.10.6
   
   4.0.0
   http://ant.apache.org/
   org.apache.ant
   ant-apache-bsf
-  1.10.6-SNAPSHOT
+  1.10.6
   Apache Ant + BSF
   
 
   org.apache.ant
   ant
-  1.10.6-SNAPSHOT
+  1.10.6
   compile
 
 
diff --git a/src/etc/poms/ant-apache-log4j/pom.xml 
b/src/etc/poms/ant-apache-log4j/pom.xml
index cb15a21..039caa2 100644
--- a/src/etc/poms/ant-apache-log4j/pom.xml
+++ b/src/etc/poms/ant-apache-log4j/pom.xml
@@ -26,19 +26,19 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/ma
 org.apache.ant
 ant-parent
 ../pom.xml
-1.10.6-SNAPSHOT
+1.10.6
   
   4.0.0
   http://ant.apache.org/  
   org.apache.ant
   ant-apache-log4j
-  1.10.6-SNAPSHOT
+  1.10.6
   Apache Ant + Log4J
   
 
   org.apache.ant
   ant
-  1.10.6-SNAPSHOT
+  1.10.6
   compile
 
 
diff --git a/src/etc/poms/ant-apache-oro/pom.xml 
b/src/etc/poms/ant-apache-oro/pom.xml
index b4f1ee7..b4f7466 100644
--- a/src/etc/poms/ant-apache-oro/pom.xml
+++ b/src/etc/poms/ant-apache-oro/pom.xml
@@ -27,19 +27,19 @@
 org.apache.ant
 ant-parent
 ../pom.xml
-1.10.6-SNAPSHOT
+1.10.6
   
   4.0.0
   http://ant.apache.org/
   org.apache.ant
   ant-apache-oro
-  1.10.6-SNAPSHOT
+  1.10.6
   Apache Ant + Apache Oro
   
 
   org.apache.ant
   ant
-  1.10.6-SNAPSHOT
+  1.10.6
   compile
 
 
diff --git a/src/etc/poms/ant-apache-regexp/pom.xml 

[ant] annotated tag ANT_1.10.6_RC2 created (now 6d36071)

2019-05-02 Thread jaikiran
This is an automated email from the ASF dual-hosted git repository.

jaikiran pushed a change to annotated tag ANT_1.10.6_RC2
in repository https://gitbox.apache.org/repos/asf/ant.git.


  at 6d36071  (tag)
 tagging e4a56ec5bd155fccf176ea37a778c486ac5cb92c (commit)
 replaces ANT_1.10.6_RC1
  by Jaikiran Pai
  on Thu May 2 18:43:17 2019 +0530

- Log -
Tagging RC2 for version 1.10.6 of Ant
-BEGIN PGP SIGNATURE-

iQIzBAABCAAdFiEEjacMAN968bDS+dx03bzBJwop0IEFAlzK7O0ACgkQ3bzBJwop
0IGhhQ//VN1xGKcOyQsWVqRu8zCdac6F2gFQs/NV20BAERlTsXAbIthDUm6lBOy2
PU59mo95P9udLwFYrTpLzF4dBpceOykdwvaDwE88M+cm64t/oKnWnjNfwxAt6Y5f
lVGAjbBuslf3tKDDOhyXKQXsz1dsFMUW9VMA9TPJ+Ky2P9OhyZT7AoLjfPaXVtfW
VTN2zySO8D8cx7QhoecAWdpRaJ2JSBPBeYbVanlFwsOMpBkraMoRbaA+MHeXic+J
IkwcQdTOgpf2gYZ5LcClLlkORd582sH9MVueL+AOdzWSX2PBufrNrrI6OelMxOeG
bT7gRcFrRxv2lmOXyMb8zQSLm0trTzob9StMVEbVFRpV2XgpchzqzDEmurUVdDvX
kQUPIg9fUwXLV1ngGFE2qydjjzXm+O6TjV6LpGbexhK4LyMGfPmpXrT6NdHrbR3Z
7sR9HdDdcAAsZaaQ/UnKuHqofE6UPbZdE+V8bWN+C6kUROCeUhr4/G+FOK7bGRdA
F66/7fk/o/MP7VKZHKsi/YCMIY7GOipRusi2jOFnv+SCAnDKnSTy+tzvOp45MgQP
6ZYonVYujM8GxPjoHzBAz8u18O7Z5FvodqoNotJ/k104KoqZ4UmlrQRVNUTILbKI
5GYzD981D/4cAug6ZbdaZYn0r/QNtselo/z/yqhGjJxAK+xBkcA=
=78LK
-END PGP SIGNATURE-
---

This annotated tag includes the following new commits:

 new e4a56ec  Prepare RC2 of 1.10.6 Ant release

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.




Jenkins build became unstable: Ant-Build-Matrix-master-Linux ยป xenial,JDK 1.8 (latest) #1500

2019-05-02 Thread Apache Jenkins Server
See 




[ant] branch master updated: Wrap FileWriter with BufferedWriter for better performance when the write() method is invoked in a loop

2019-05-02 Thread jaikiran
This is an automated email from the ASF dual-hosted git repository.

jaikiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
 new 4803eb2  Wrap FileWriter with BufferedWriter for better performance 
when the write() method is invoked in a loop
4803eb2 is described below

commit 4803eb24ae9a9b6b3570c0604edae4aaab536b84
Author: bd2019us 
AuthorDate: Sun Apr 14 00:01:28 2019 -0500

Wrap FileWriter with BufferedWriter for better performance when the write() 
method is invoked in a loop
---
 CONTRIBUTORS | 1 +
 contributors.xml | 4 
 src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java | 3 ++-
 3 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index e83a656..452a898 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -453,6 +453,7 @@ Wolfgang Glas
 Wolfgang Werner
 Xavier Hanin
 Xavier Witdouck
+Xia Li
 Yohann Roussel
 Yuji Yamano
 Yves Martin
diff --git a/contributors.xml b/contributors.xml
index 3f567e6..febe63c 100644
--- a/contributors.xml
+++ b/contributors.xml
@@ -1864,6 +1864,10 @@
 Witdouck
   
   
+Xia
+Li
+  
+  
 Yohann
 Roussel
   
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java 
b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
index fd26bf4..e3c22a5 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/ssh/SSHExec.java
@@ -18,6 +18,7 @@
 
 package org.apache.tools.ant.taskdefs.optional.ssh;
 
+import java.io.BufferedWriter;
 import java.io.BufferedReader;
 import java.io.ByteArrayInputStream;
 import java.io.ByteArrayOutputStream;
@@ -481,7 +482,7 @@ public class SSHExec extends SSHBase {
  */
 private void writeToFile(final String from, final boolean append, final 
File to)
 throws IOException {
-try (FileWriter out = new FileWriter(to.getAbsolutePath(), append)) {
+try (BufferedWriter out = new BufferedWriter(new 
FileWriter(to.getAbsolutePath(), append))) {
 final StringReader in = new StringReader(from);
 final char[] buffer = new char[BUFFER_SIZE];
 while (true) {