Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 45898 invoked from network); 13 Feb 2005 23:21:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Feb 2005 23:21:28 -0000 Received: (qmail 78005 invoked by uid 500); 13 Feb 2005 23:21:27 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 77659 invoked by uid 500); 13 Feb 2005 23:21:26 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 77646 invoked by uid 500); 13 Feb 2005 23:21:26 -0000 Received: (qmail 77643 invoked by uid 99); 13 Feb 2005 23:21:26 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 13 Feb 2005 15:21:25 -0800 Received: (qmail 45871 invoked by uid 1365); 13 Feb 2005 23:21:24 -0000 Date: 13 Feb 2005 23:21:24 -0000 Message-ID: <20050213232124.45870.qmail@minotaur.apache.org> From: stevel@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional ReplaceRegExp.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N stevel 2005/02/13 15:21:24 Modified: src/main/org/apache/tools/ant/taskdefs/optional ReplaceRegExp.java Log: Fileutils closing Revision Changes Path 1.40 +2 -15 ant/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java Index: ReplaceRegExp.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/ReplaceRegExp.java,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- ReplaceRegExp.java 6 Jan 2005 12:05:08 -0000 1.39 +++ ReplaceRegExp.java 13 Feb 2005 23:21:23 -0000 1.40 @@ -455,21 +455,8 @@ log("No change made", Project.MSG_DEBUG); } } finally { - try { - if (r != null) { - r.close(); - } - } catch (Exception e) { - // ignore any secondary exceptions - } - - try { - if (w != null) { - w.close(); - } - } catch (Exception e) { - // ignore any secondary exceptions - } + FileUtils.close(r); + FileUtils.close(w); if (temp != null) { temp.delete(); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org