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. ...
Get Apache Jakarta Commons: Reusable Java™ Components now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.