Package org.ozoneDB.DxLib

Examples of org.ozoneDB.DxLib.DxHashSet


    static String sourceDirName = "." + File.separator;


    public static void main(String[] args) {

        DxHashSet classes = new DxHashSet();

        if (args.length == 0) {
            printUsage();
            System.exit(0);
        }

        boolean preservePackageNames = true;

        for (int argCount = 0; argCount < args.length; argCount++) {
            if (args[argCount].equals("-q")) {
                quiet = true;
            } else if (args[argCount].equals("-ks")) {
                keepSource = true;
            } else if (args[argCount].equals("-KS")) {
                keepSource = true;
                compileSource = false;
            } else if (args[argCount].equals("-odmg")) {
                odmg = true;
            } else if (args[argCount].equals("-nc")) {
                cache = false;
            } else if (args[argCount].equals("-st")) {
                printStackTrace = true;
            } else if (args[argCount].equals("-ni")) {
                searchInterfaceSource = false;
            } else if (args[argCount].startsWith("-p")) {
                methodPattern = args[argCount].substring(2);
            } else if (args[argCount].equals("-version")) {
                System.out.println("$Id: OPP.java,v 1.4 2002/06/08 00:49:39 mediumnet Exp $");
                System.exit(0);
            } else if (args[argCount].equals("-h")) {
                printUsage();
                System.exit(0);
            } else if (args[argCount].startsWith("-o")) {
                outputDirName = args[argCount].substring(2) + File.separator;
            } else if (args[argCount].startsWith("-s")) {
                sourceDirName = args[argCount].substring(2) + File.separator;
            } else if (args[argCount].equals("-ip")) {
                preservePackageNames = false;
            } else {
                if (args[argCount].startsWith("-")) {
                    System.out.println("Unknown option '" + args[argCount] + "'!\n");
                    printUsage();
                    System.exit(0);
                } else {
                    classes.add(args[argCount]);
                }
            }
        }
        // We internally use the new directory parameter format,
        // but the user has specified the directory parameters in the old format
        // where packages were ignored
        if (!preservePackageNames) {
            DxIterator i = classes.iterator();

            if (i.next() != null) {
                String className = (String) i.key();

                if (className != null) {
View Full Code Here

TOP

Related Classes of org.ozoneDB.DxLib.DxHashSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.