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 Tue, 20 Apr 2004 22:47:46 GMT
mbenson     2004/04/20 15:47:46

  Modified:    src/main/org/apache/tools/ant Tag: ANT_16_BRANCH
                        Project.java
  Log:
  Lost in last sync with HEAD
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.154.2.9 +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.154.2.8
  retrieving revision 1.154.2.9
  diff -u -r1.154.2.8 -r1.154.2.9
  --- Project.java	22 Mar 2004 15:55:42 -0000	1.154.2.8
  +++ Project.java	20 Apr 2004 22:47:46 -0000	1.154.2.9
  @@ -953,11 +953,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