FileDocCategorySizeDatePackage
Main.javaAPI DocphoneME MR2 API (J2ME)1937Wed May 02 17:59:48 BST 2007config

Main

public class Main extends Object
Wrapper for the Configurator class.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        if (args.length < 3) {
            usage();
        } else {
            Configurator config = new Configurator();
            Hashtable env = Util.getenv();
            Vector extra = new Vector();
            for (int i=3; i<args.length; i++) {
                extra.addElement(args[i]);
            }

            config.readPlatformFile(args[0]);
            config.readInputFile(args[1]);
            config.write(args[2], env, extra);
        }
    
static voidusage()

        System.out.println("Usage: java -jar buildtool.jar " +
                           "config <platformfile> <inputfile> <outputfile> " +
                           "<extraflags> ...");