rubys       02/01/17 05:39:56

  Modified:    proposal/gump/java Project.java
  Log:
  Only need to add things once...
  
  Revision  Changes    Path
  1.29      +6 -3      jakarta-alexandria/proposal/gump/java/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/java/Project.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- Project.java      15 Jan 2002 11:47:57 -0000      1.28
  +++ Project.java      17 Jan 2002 13:39:55 -0000      1.29
  @@ -388,9 +388,12 @@
           // Add the inherited nodes
           for (Enumeration e=inheritance.elements(); e.hasMoreElements(); ) {
               Element inherited = (Element) e.nextElement();
  -            inherited.setAttribute("inherited", "true");
  -            dependsOn.put(inherited.getAttribute("project"),inherited);
  -            element.appendChild(inherited);
  +            String project = inherited.getAttribute("project");
  +            if (dependsOn.get(project) == null) {
  +                inherited.setAttribute("inherited", "true");
  +                dependsOn.put(project, inherited);
  +                element.appendChild(inherited);
  +            }
           }
       }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to