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 2016/05/16 18:04:12 UTC

[jira] [Reopened] (CODEC-212) Create a minimal Digest command line utility: org.apache.commons.codec.digest.Digest

     [ https://issues.apache.org/jira/browse/CODEC-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb reopened CODEC-212:
------------------------
      Assignee:     (was: Gary Gregory)

I wonder if the class would be better placed in a new package and jar?

The code is useful, but is not really part of the main library.

It might be better to use the approach taken by NET.
This has a set of example classes which are packaged in a separate jar.

The examples jar is created with a Main-Class attribute so it can be run using:

java -jar xxx.jar args

There are quite a few working examples in NET, so there is a main dispatcher class that can be used to run the appropriate example. 

The dispatcher approach would only become essential if there were further Codec main() apps, but adding it now would avoid changing the user interface later if a new example is added.

> Create a minimal Digest command line utility: org.apache.commons.codec.digest.Digest
> ------------------------------------------------------------------------------------
>
>                 Key: CODEC-212
>                 URL: https://issues.apache.org/jira/browse/CODEC-212
>             Project: Commons Codec
>          Issue Type: New Feature
>         Environment: Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T08:41:47-08:00)
> Maven home: E:\Java\apache-maven-3.3.9\bin\..
> Java version: 1.7.0_79, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_79\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary Gregory
>             Fix For: 1.11
>
>
> Create a minimal Digest command line utility: org.apache.commons.codec.digest.Digest.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)