ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant TaskAdapter.java
Date Sat, 13 Oct 2001 00:08:27 GMT
conor       01/10/12 17:08:27

  Modified:    src/main/org/apache/tools/ant TaskAdapter.java
  Log:
  Ignore NoSuchMethod exceptions when looking for setProject in non
  Task classes being used as tasks
  
  Revision  Changes    Path
  1.7       +3 -0      jakarta-ant/src/main/org/apache/tools/ant/TaskAdapter.java
  
  Index: TaskAdapter.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/TaskAdapter.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -w -u -r1.6 -r1.7
  --- TaskAdapter.java	2001/08/03 16:38:20	1.6
  +++ TaskAdapter.java	2001/10/13 00:08:27	1.7
  @@ -79,6 +79,9 @@
               if(setProjectM != null) {
                   setProjectM.invoke(proxy, new Object[] {project});
               }
  +        } catch (NoSuchMethodException e) {
  +            // ignore this if the class being used as a task does not have
  +            // a set project method.
           } catch( Exception ex ) {
               log("Error setting project in " + proxy.getClass(), 
                   Project.MSG_ERR);
  
  
  

Mime
View raw message