ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant UnknownElement.java
Date Tue, 14 Oct 2003 08:51:27 GMT
peterreilly    2003/10/14 01:51:27

  Modified:    src/main/org/apache/tools/ant UnknownElement.java
  Log:
  remove error added method
  
  Revision  Changes    Path
  1.66      +0 -26     ant/src/main/org/apache/tools/ant/UnknownElement.java
  
  Index: UnknownElement.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/UnknownElement.java,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- UnknownElement.java	14 Oct 2003 08:47:40 -0000	1.65
  +++ UnknownElement.java	14 Oct 2003 08:51:27 -0000	1.66
  @@ -57,7 +57,6 @@
   import java.util.ArrayList;
   import java.util.Iterator;
   import java.util.List;
  -import java.util.Map;
   import java.util.Locale;
   import java.io.IOException;
   
  @@ -107,31 +106,6 @@
           this.elementName = elementName;
       }
   
  -    /**
  -     * Makes a new unknown element based on this unknownelement
  -     * does not copy the children
  -     */
  -    public UnknownElement copyItem() {
  -        UnknownElement ret = new UnknownElement(getTag());
  -        ret.setNamespace(getNamespace());
  -        ret.setProject(getProject());
  -        ret.setQName(getQName());
  -        ret.setTaskName(getTaskName());
  -        ret.setLocation(getLocation());
  -        ret.setOwningTarget(getOwningTarget());
  -        RuntimeConfigurable rc = new RuntimeConfigurable(
  -            ret, getTaskName());
  -        rc.setPolyType(getWrapper().getPolyType());
  -        Map map = getWrapper().getAttributeMap();
  -        for (Iterator i = map.entrySet().iterator(); i.hasNext();) {
  -            Map.Entry entry = (Map.Entry) i.next();
  -            rc.setAttribute(
  -                (String) entry.getKey(),(String) entry.getValue());
  -        }
  -        rc.addText(getWrapper().getText().toString());
  -        return ret;
  -    }
  -    
       /**
        * Returns the name of the XML element which generated this unknown
        * element.
  
  
  

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


Mime
View raw message