bodewig     02/03/14 23:41:58

  Modified:    proposal/gump/java Module.java
  Log:
  Maven now specifies an empty repository which make the module
  definition illegal.  Deal with it.
  
  Revision  Changes    Path
  1.14      +19 -4     jakarta-alexandria/proposal/gump/java/Module.java
  
  Index: Module.java
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/proposal/gump/java/Module.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- Module.java       6 Feb 2002 03:45:21 -0000       1.13
  +++ Module.java       15 Mar 2002 07:41:58 -0000      1.14
  @@ -48,8 +48,23 @@
        * @param moudules list of <module> elements
        */
       public static void load(Enumeration modules) throws Exception {
  +        Vector dropThem = new Vector();
           while (modules.hasMoreElements()) {
  -            new Module((Element)modules.nextElement());
  +            Element element = (Element)modules.nextElement();
  +            try {
  +                new Module(element);
  +            } catch (Throwable t) {
  +                dropThem.addElement(element);
  +                System.err.println("Dropping module "
  +                                   + element.getAttribute("name")
  +                                   + " because of Exception " + t);
  +            }
  +        }
  +
  +        Enumeration enum = dropThem.elements();
  +        while (enum.hasMoreElements()) {
  +            Element element = (Element)enum.nextElement();
  +            element.getParentNode().removeChild(element);
           }
   
           cvslogin();
  @@ -71,11 +86,11 @@
       public Module(Element element) throws Exception {
           this.element = element;
           name = element.getAttribute("name");
  -
  +        
           computeSrcDir();
           promoteProjects();
           resolveCvsroot();
  -
  +        
           Node child=element.getFirstChild();
           for (; child != null; child=child.getNextSibling()) {
               if (child.getNodeName().equals("description")) {
  @@ -84,7 +99,7 @@
                   url = (Element) child;
               }
           }
  -
  +        
           modules.put(name, this);
       }
   
  
  
  

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

Reply via email to