Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 78AEADC69 for ; Fri, 17 Aug 2012 15:54:05 +0000 (UTC) Received: (qmail 94403 invoked by uid 500); 17 Aug 2012 15:54:05 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 94371 invoked by uid 500); 17 Aug 2012 15:54:05 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 94364 invoked by uid 99); 17 Aug 2012 15:54:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 15:54:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 15:54:03 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 555C423888EA; Fri, 17 Aug 2012 15:53:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1374332 - /camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java Date: Fri, 17 Aug 2012 15:53:19 -0000 To: commits@camel.apache.org From: davsclaus@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120817155319.555C423888EA@eris.apache.org> Author: davsclaus Date: Fri Aug 17 15:53:18 2012 New Revision: 1374332 URL: http://svn.apache.org/viewvc?rev=1374332&view=rev Log: CAMEL-5507: Close stream after usage. Modified: camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java Modified: camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java?rev=1374332&r1=1374331&r2=1374332&view=diff ============================================================================== --- camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java (original) +++ camel/trunk/components/camel-test-blueprint/src/main/java/org/apache/camel/test/blueprint/CamelBlueprintHelper.java Fri Aug 17 15:53:18 2012 @@ -298,7 +298,7 @@ public final class CamelBlueprintHelper File file = new File(path); FileOutputStream fos = new FileOutputStream(file, true); try { - IOHelper.copy(bundle.build(), fos); + IOHelper.copyAndCloseInput(bundle.build(), fos); } finally { IOHelper.close(fos); }