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/src/java/org/apache/antlib/extensions LibraryDisplayer.java
Date Thu, 04 Apr 2002 10:49:03 GMT
donaldp     02/04/04 02:49:03

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/extensions
                        LibraryDisplayer.java
  Log:
  Make library displayer more useful for debugging other extension/library related tasks
  
  Revision  Changes    Path
  1.2       +20 -6     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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LibraryDisplayer.java	3 Apr 2002 11:16:06 -0000	1.1
  +++ LibraryDisplayer.java	4 Apr 2002 10:49:03 -0000	1.2
  @@ -9,13 +9,12 @@
   
   import java.io.File;
   import java.io.IOException;
  -import java.util.jar.Manifest;
  -import java.util.jar.JarFile;
   import java.text.ParseException;
  -import java.lang.StringBuffer;
  -import org.apache.myrmidon.api.TaskException;
  +import java.util.jar.JarFile;
  +import java.util.jar.Manifest;
   import org.apache.avalon.excalibur.extension.Extension;
   import org.apache.avalon.excalibur.extension.Specification;
  +import org.apache.myrmidon.api.TaskException;
   
   /**
    * Utility class to output the information in a jar relating
  @@ -23,7 +22,7 @@
    * and Package Specifications.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.1 $ $Date: 2002/04/03 11:16:06 $
  + * @version $Revision: 1.2 $ $Date: 2002/04/04 10:49:03 $
    */
   class LibraryDisplayer
   {
  @@ -34,10 +33,25 @@
        * @param file the file
        * @throws TaskException if fail to read file
        */
  -    public void displayLibrary( final File file )
  +    void displayLibrary( final File file )
           throws TaskException
       {
           final Manifest manifest = getManifest( file );
  +        displayLibrary( file, manifest );
  +    }
  +
  +    /**
  +     * Display the extensions and specifications contained
  +     * within specified file.
  +     *
  +     * @param file the file to use while reporting
  +     * @param manifest the manifest of file
  +     * @throws TaskException if fail to read file
  +     */
  +    void displayLibrary( final File file,
  +                         final Manifest manifest )
  +        throws TaskException
  +    {
           final Extension[] available = Extension.getAvailable( manifest );
           final Extension[] required = Extension.getRequired( manifest );
           final Specification[] specifications = getSpecifications( manifest );
  
  
  

--
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