source: other-projects/gs2-java-client/trunk/gnu/getopt/README@ 21017

Last change on this file since 21017 was 2090, checked in by paynter, 23 years ago

GNU Getopts code.

  • Property svn:keywords set to Author Date Id Revision
File size: 2.1 KB
Line 
1This is a Java port of the GNU getopt functions based on the versions
2contained in glibc 2.0.6. I have attempted to keep the functionality
3and programmer's interface as faithful to the original as possible.
4However, due to differences between Java and C, some minor changes
5has to me made. (Given the obtuse interface in the clib version,
6perhaps some major changes should have been made). This should not
7affect the way options appear to be parsed to the end user of program
8that uses this Java getopt. The use of these classes are completely
9documented in the javadoc comments, so I will not repeat that info here.
10
11Note that since these objects are part of a package called "gnu.getopt",
12they need to be in a subdirectory called gnu/getopt somewhere in your
13CLASSPATH. This includes the "MessagesBundle" files.
14
15I am not aware of any bugs. If you find one though, please send email
16to me at [email protected]. The more detailed a bug report the better.
17Bug fixes are also welcome at the same address. Please reference
18release number "1.0.7". If you use this code, it would be helpful
19if you let me know so that I can let you know if anything changes or
20if any major bugs have been found/fixed.
21
22I have included a Makefile for compiling the code. If you do not have
23access to make, then you can simply do a "javac *.java" at the OS
24command line (or follow your vendor's instructions for compiling a
25Java class). To build the documentation, do a "make docs"
26or "javadoc -public *.java". Note that the images needed by the html
27generated by javadoc are not included. You will need to get those
28from some other Java documentation package.
29
30Note that the Makefile is not compliant with the GNU makefile
31standards as I anticipate that at some point a master makefile will
32be created for various GNU Java packages. And it is serious overkill
33to create a megabloat makefile (kinda like this megabloat README) for
34such a simple package.
35
36There is sample code showing how to use getopt available in the
37GetoptDemo.java file.
38
39Happy hacking,
40
41Aaron.
42[email protected]
43http://www.urbanophile.com/arenn/
Note: See TracBrowser for help on using the repository browser.