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/taskdefs PreSetDef.java
Date Fri, 15 Aug 2003 08:42:52 GMT
peterreilly    2003/08/15 01:42:52

  Modified:    src/main/org/apache/tools/ant/taskdefs PreSetDef.java
  Log:
  implement sameDefinition for preset definition
  
  Revision  Changes    Path
  1.3       +12 -1     ant/src/main/org/apache/tools/ant/taskdefs/PreSetDef.java
  
  Index: PreSetDef.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/PreSetDef.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PreSetDef.java	14 Aug 2003 13:22:24 -0000	1.2
  +++ PreSetDef.java	15 Aug 2003 08:42:52 -0000	1.3
  @@ -150,7 +150,6 @@
               nestedTask.getNamespace(), nestedTask.getTag());
   
           AntTypeDefinition def = helper.getDefinition(componentName);
  -
           if (def == null) {
               throw new BuildException(
                   "Unable to find typedef " + componentName);
  @@ -263,6 +262,18 @@
               }
               element.configure(o);
               return o;
  +        }
  +
  +        /**
  +         * Equality method for this definition
  +         * This only checks for pointer equality.
  +         *
  +         * @param other another definition
  +         * @param project the current project
  +         * @return true if the definitions are the same
  +         */
  +        public boolean sameDefinition(AntTypeDefinition other, Project project) {
  +            return this == other;
           }
       }
   }
  
  
  

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


Mime
View raw message