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 XmlLogger.java
Date Thu, 13 Sep 2001 13:06:52 GMT
conor       01/09/13 06:06:52

  Modified:    src/main/org/apache/tools/ant Tag: ANT_14_BRANCH
                        XmlLogger.java
  Log:
  Use the task's idea of its name rather than trying to extract it from the
  class which is not really relevant to the user
  
  PR:	3393
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.8.2.2   +1 -5      jakarta-ant/src/main/org/apache/tools/ant/XmlLogger.java
  
  Index: XmlLogger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/XmlLogger.java,v
  retrieving revision 1.8.2.1
  retrieving revision 1.8.2.2
  diff -u -w -u -r1.8.2.1 -r1.8.2.2
  --- XmlLogger.java	2001/08/22 07:29:45	1.8.2.1
  +++ XmlLogger.java	2001/09/13 13:06:51	1.8.2.2
  @@ -200,11 +200,7 @@
           taskElement.startTime = System.currentTimeMillis();
           taskElement.element = doc.createElement(TASK_TAG);
           
  -        String name = task.getClass().getName();
  -        int pos = name.lastIndexOf(".");
  -        if (pos != -1) {
  -            name = name.substring(pos + 1);
  -        }
  +        String name = event.getTask().getTaskName();
           taskElement.element.setAttribute(NAME_ATTR, name);
           taskElement.element.setAttribute(LOCATION_ATTR, event.getTask().getLocation().toString());
           tasks.put(task, taskElement);
  
  
  

Mime
View raw message