From a9e34c1fe5804d900ab54ffd2572b92e83ddfb74 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Thu, 2 Apr 2009 20:21:16 +0000 Subject: [PATCH] o Decoupled from plexus-utils git-svn-id: https://svn.apache.org/repos/asf/maven/core-integration-testing/trunk@761415 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/plugin/coreit/CoreItMojo.java | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/its/core-it-support/core-it-plugins/maven-it-plugin-toolchain/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java b/its/core-it-support/core-it-plugins/maven-it-plugin-toolchain/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java index df2f7c19a5..7407f6a90b 100644 --- a/its/core-it-support/core-it-plugins/maven-it-plugin-toolchain/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java +++ b/its/core-it-support/core-it-plugins/maven-it-plugin-toolchain/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java @@ -32,7 +32,6 @@ import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.toolchain.MisconfiguredToolchainException; import org.apache.maven.toolchain.ToolchainManagerPrivate; import org.apache.maven.toolchain.ToolchainPrivate; -import org.codehaus.plexus.util.IOUtil; /** * @goal toolchain @@ -76,7 +75,7 @@ public class CoreItMojo throw new MojoExecutionException( e.getMessage(), e ); } - getLog().info( "Toolchain in compiler-plugin: " + Arrays.asList( tcs ) ); + getLog().info( "[MAVEN-CORE-IT-LOG] Toolchains in plugin: " + Arrays.asList( tcs ) ); Properties properties = new Properties(); @@ -105,7 +104,16 @@ public class CoreItMojo } finally { - IOUtil.close( out ); + if ( out != null ) + { + try + { + out.close(); + } + catch ( IOException e ) + { + } + } } } }