ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/lib excalibur-extension-1.0a.jar
Date Sat, 06 Apr 2002 04:49:03 GMT
donaldp     02/04/05 20:49:02

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/extensions
                        LibraryDisplayer.java
               proposal/myrmidon/lib excalibur-extension-1.0a.jar
  Log:
  Display optional dependencies aswell
  
  Revision  Changes    Path
  1.3       +13 -1     jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/extensions/LibraryDisplayer.java
  
  Index: LibraryDisplayer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/extensions/LibraryDisplayer.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- LibraryDisplayer.java	4 Apr 2002 10:49:03 -0000	1.2
  +++ LibraryDisplayer.java	6 Apr 2002 04:49:02 -0000	1.3
  @@ -22,7 +22,7 @@
    * and Package Specifications.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.2 $ $Date: 2002/04/04 10:49:03 $
  + * @version $Revision: 1.3 $ $Date: 2002/04/06 04:49:02 $
    */
   class LibraryDisplayer
   {
  @@ -54,10 +54,12 @@
       {
           final Extension[] available = Extension.getAvailable( manifest );
           final Extension[] required = Extension.getRequired( manifest );
  +        final Extension[] options = Extension.getOptions( manifest );
           final Specification[] specifications = getSpecifications( manifest );
   
           if( 0 == available.length &&
               0 == required.length &&
  +            0 == options.length &&
               0 == specifications.length )
           {
               return;
  @@ -84,6 +86,16 @@
               for( int i = 0; i < required.length; i++ )
               {
                   final Extension extension = required[ i ];
  +                System.out.println( extension.toString() );
  +            }
  +        }
  +
  +        if( 0 != options.length )
  +        {
  +            System.out.println( "Extensions that will be used by Library if present:" );
  +            for( int i = 0; i < options.length; i++ )
  +            {
  +                final Extension extension = options[ i ];
                   System.out.println( extension.toString() );
               }
           }
  
  
  
  1.3       +385 -82   jakarta-ant/proposal/myrmidon/lib/excalibur-extension-1.0a.jar
  
  	<<Binary file>>
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message