You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by bo...@apache.org on 2002/03/04 11:13:55 UTC

cvs commit: jakarta-alexandria/proposal/gump/java Project.java

bodewig     02/03/04 02:13:55

  Modified:    proposal/gump/java Project.java
  Log:
  not only claim to drop projects with broken dependencies, do it.
  
  Revision  Changes    Path
  1.33      +10 -1     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.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- Project.java	4 Mar 2002 08:08:18 -0000	1.32
  +++ Project.java	4 Mar 2002 10:13:55 -0000	1.33
  @@ -45,7 +45,7 @@
               
           // Resolve all references so that the XML can be processed in
           // one pass.
  -        for (Enumeration e=projects.elements(); e.hasMoreElements();) {
  +        for (Enumeration e=((Hashtable) projects.clone()).elements(); e.hasMoreElements();) {
               Project p = ((Project)(e.nextElement()));
               try {
                   p.expandDepends();
  @@ -53,6 +53,7 @@
               } catch (Throwable t) {
                   System.err.println("Dropping " + p.get("name")
                                      + " because of Exception " + t);
  +                p.remove();
               }
           }
           
  @@ -664,5 +665,13 @@
           throw new Exception(
              attr + " \"" + value + "\" not found processing project " + name
           );
  +    }
  +
  +    /**
  +     * Remove this Project instance from the workspace.
  +     */
  +    private void remove() {
  +        projects.remove(name);
  +        element.getParentNode().removeChild(element);
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>