You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2003/06/05 11:35:47 UTC

cvs commit: ant/src/main/org/apache/tools/ant TaskAdapter.java

peterreilly    2003/06/05 02:35:47

  Modified:    src/main/org/apache/tools/ant TaskAdapter.java
  Log:
  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.
  
  Revision  Changes    Path
  1.20      +3 -3      ant/src/main/org/apache/tools/ant/TaskAdapter.java
  
  Index: TaskAdapter.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/TaskAdapter.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- TaskAdapter.java	10 Feb 2003 14:13:30 -0000	1.19
  +++ TaskAdapter.java	5 Jun 2003 09:35:47 -0000	1.20
  @@ -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 @@
               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 @@
                   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);
           }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org