commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CONFIGURATION-211) CommandLineConfiguration
Date Wed, 25 Apr 2007 23:53:15 GMT

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

Emmanuel Bourg updated CONFIGURATION-211:
-----------------------------------------

    Attachment: CommandLineConfiguration.java

This is another implementation derived from my previous class :
- the remaining arguments are added to the configuration under the CommandLineConfiguration.PARAMETERS_KEY
- properties can be specified as -key=value and --key=value
- the value is optional, -key is considered as a boolean flag
- a no arg constructor is present, allowing a change of the list delimiter before parsing
the arguments



> CommandLineConfiguration
> ------------------------
>
>                 Key: CONFIGURATION-211
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-211
>             Project: Commons Configuration
>          Issue Type: Improvement
>    Affects Versions: Nightly Builds
>            Reporter: Emmanuel Bourg
>            Priority: Minor
>             Fix For: 1.5
>
>         Attachments: CLI-CommandLineConfiguration.java, CommandLineConfiguration.java,
CommandLineConfiguration.java, TestCommandLineConfiguration.java
>
>
> I implemented a simple configuration taking the properties from the command
> line. I don't know if it is worth adding in the main code base, but I'm
> submitting it here if ever someone find it useful. Comments are welcome :)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message