ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant Project.java
Date Wed, 17 Mar 2004 16:41:27 GMT
mbenson     2004/03/17 08:41:27

  Modified:    src/main/org/apache/tools/ant Project.java
  Log:
  Quick refactoring.
  
  Revision  Changes    Path
  1.164     +2 -6      ant/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.163
  retrieving revision 1.164
  diff -u -r1.163 -r1.164
  --- Project.java	9 Mar 2004 16:47:59 -0000	1.163
  +++ Project.java	17 Mar 2004 16:41:27 -0000	1.164
  @@ -948,11 +948,7 @@
        * @see Project#addOrReplaceTarget
        */
       public void addTarget(Target target) throws BuildException {
  -        String name = target.getName();
  -        if (targets.get(name) != null) {
  -            throw new BuildException("Duplicate target: `" + name + "'");
  -        }
  -        addOrReplaceTarget(name, target);
  +        addTarget(target.getName(), target);
       }
   
       /**
  
  
  

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


Mime
View raw message