commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COMPRESS-195) Additional command-line utility classes
Date Sat, 07 Jul 2012 11:41:34 GMT
Sebb created COMPRESS-195:
-----------------------------

             Summary: Additional command-line utility classes
                 Key: COMPRESS-195
                 URL: https://issues.apache.org/jira/browse/COMPRESS-195
             Project: Commons Compress
          Issue Type: New Feature
            Reporter: Sebb
         Attachments: Archiver.java

There is a Lister command-line utility which can be used to list the contents of any archive.

It might be useful to have corresponding simple extraction / creation utilities for archive
and compressed formats.

For example:
+ archive contents of a directory (see attached)
+ extract archive into directory
+ compress/decompress files

The existing Lister class is the only main() class at present, and is set as the default entry
point for the jar. This means users don't have to provide the class name on the command line.

It would be useful to extend this feature to cover the other command-line utilities.

For example, create a new Main class as the default entry point, but delegate to the existing
class if there are 1 or two parameters.

Otherwise, delegate to the appropriate new utility class, e.g. based on a command-line flag.

Users would still be able to invoke the individual classes directly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message