You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2012/07/07 13:41:34 UTC

[jira] [Created] (COMPRESS-195) Additional command-line utility classes

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

        

[jira] [Commented] (COMPRESS-195) Additional command-line utility classes

Posted by "Stefan Bodewig (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COMPRESS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424272#comment-13424272 ] 

Stefan Bodewig commented on COMPRESS-195:
-----------------------------------------

Might be a case of fixing COMPRESS-118 and using that with a thin CLI wrapper.  I like the general idea.
                
> 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

        

[jira] [Updated] (COMPRESS-195) Additional command-line utility classes

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COMPRESS-195?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb updated COMPRESS-195:
--------------------------

    Attachment: Archiver.java

Sample archiver class
                
> 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