Chapter 13. CLI (Command-Line Interface)


The Apache Jakarta Commons CLI package is intended to assist in the creation of command-line applications. In conjunction with the String manipulation afforded by the Commons Lang package, aspiring developers could potentially create quite sophisticated console applications. This package takes care of the complexities of parsing incoming arguments, validating the arguments, and displaying help information.

In this chapter, a simple utility function (searching various paths for the location(s) of a particular class file) is first presented from a high level, then a command-line wrapper based on this utility using CLI is shown, and for completeness, the full implementation of the class search tool is presented.



    Apache Jakarta Commons(c) Reusable Java Components
    Real World Web Services
    ISBN: N/A
    EAN: 2147483647
    Year: 2006
    Pages: 137
    Authors: Will Iverson

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net