User: user57  
  Date: 02/02/28 01:07:10

  Modified:    tasks/src/main/org/jboss/tools/buildmagic/task/config
                        LibrarySet.java
  Log:
   o Can have an empty LibrarySet
   o Don't attempt to log.debug... too loud!
  
  Revision  Changes    Path
  1.3       +17 -16    
buildmagic/tasks/src/main/org/jboss/tools/buildmagic/task/config/LibrarySet.java
  
  Index: LibrarySet.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/buildmagic/tasks/src/main/org/jboss/tools/buildmagic/task/config/LibrarySet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LibrarySet.java   28 Feb 2002 06:47:41 -0000      1.2
  +++ LibrarySet.java   28 Feb 2002 09:07:10 -0000      1.3
  @@ -49,7 +49,7 @@
    *
    * </xmp>
    *
  - * @version <tt>$Revision: 1.2 $</tt>
  + * @version <tt>$Revision: 1.3 $</tt>
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
    */
   public class LibrarySet
  @@ -107,8 +107,6 @@
      {
         if (name == null)
            throw new MissingAttributeException("name", this);
  -      if (libraries == null)
  -         throw new MissingElementException("library", this);
      }
   
      /**
  @@ -128,22 +126,25 @@
   
         // setup the classpath
         classpath = new Path(project);
  -      Iterator iter = libraries.iterator();
  -      while (iter.hasNext()) {
  -         Library lib = (Library)iter.next();
  -
  -         // set the root if we have one, else use the libs
  -         if (root != null) {
  -            lib.setRoot(root);
  -         }
   
  -         // execute
  -         lib.execute();
  +      if (libraries != null) {
  +         Iterator iter = libraries.iterator();
  +         while (iter.hasNext()) {
  +            Library lib = (Library)iter.next();
  +
  +            // set the root if we have one, else use the libs
  +            if (root != null) {
  +               lib.setRoot(root);
  +            }
  +
  +            // execute
  +            lib.execute();
            
  -         // append the classpath
  -         classpath.append(lib.getClasspath());
  +            // append the classpath
  +            classpath.append(lib.getClasspath());
  +         }
  +         log.debug("classpath: " + classpath);
         }
  -      log.debug("classpath: " + classpath);
   
         // set classpath ref
         Map refs = project.getReferences();
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to