Skip to main content

Blog Archive for kohsuke during May 2005

Step 1: Download The first thing I did was to download the MathML schema into my local disk. You can compile a remote schema by running XJC like: $ xjc.sh <i>-proxy webcache.sfbay.sun.com:8080</i> http://www.w3.org/Math/XMLSchema/mathml2/mathml2.xsd But when you are going to compile schemas multiple times, it's often easier to first download them locally. Sometimes this ends up in...
Parsing command line options in your program has always been a boring work; you loop through String[] and write a whole bunch of arg.equals("-foo") and arg.equals("-bar"). There are some libraries that attempt to solve this, such as Apache Commons CLI. I tried many of those, but I didn't quite like any of those. I felt that I can write a better one by taking advantanges of JDK 5.0 features. That...