From cdf128015bad588566b90d913fba4b346460d82d Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Thu, 5 Jun 2003 09:35:47 +0000 Subject: [PATCH] Fix for 20499: When a proxied task throws a build exception, or other exception, the taskadapter reports this at error level. This is incorrect as the intent of taskadapter is to transparently adapt a task, the exception should be reported at verbose level. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274649 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/TaskAdapter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/org/apache/tools/ant/TaskAdapter.java b/src/main/org/apache/tools/ant/TaskAdapter.java index 08b4831c7..5621ddecf 100644 --- a/src/main/org/apache/tools/ant/TaskAdapter.java +++ b/src/main/org/apache/tools/ant/TaskAdapter.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2002 The Apache Software Foundation. All rights + * Copyright (c) 2000-2003 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -147,7 +147,7 @@ public class TaskAdapter extends Task { executeM.invoke(proxy, null); return; } catch (java.lang.reflect.InvocationTargetException ie) { - log("Error in " + proxy.getClass(), Project.MSG_ERR); + log("Error in " + proxy.getClass(), Project.MSG_VERBOSE); Throwable t = ie.getTargetException(); if (t instanceof BuildException) { throw ((BuildException) t); @@ -155,7 +155,7 @@ public class TaskAdapter extends Task { throw new BuildException(t); } } catch (Exception ex) { - log("Error in " + proxy.getClass(), Project.MSG_ERR); + log("Error in " + proxy.getClass(), Project.MSG_VERBOSE); throw new BuildException(ex); }