Package com.sun.grid.cull

Examples of com.sun.grid.cull.CullDefinition$Elem


        DirectoryScanner ds = cullfiles.getDirectoryScanner(getProject());

        File baseDir = ds.getBasedir();

        CullDefinition ret = new CullDefinition();

        String[] files = ds.getIncludedFiles();

        for (int i = 0; i < files.length; i++) {
            File f = new File(baseDir, files[i]);
            try {
                log("parse file " + f, Project.MSG_VERBOSE);
                ret.addFile(f);
            } catch (IOException ioe) {
                throw new BuildException("I/O Error while parsing file " + f, ioe);
            } catch (com.sun.grid.cull.ParseException e) {
                throw new BuildException("Parse Error: " + f + ": " + e.getMessage(), e);
            }
        }
        int errorCount = ret.verify();
        if (errorCount > 0) {
            throw new BuildException("cull defintion contains " + errorCount + " errors");
        }
        return ret;
    }
View Full Code Here


        logger.addHandler(myHandler);
        logger.setLevel(Level.ALL);
        myHandler.setLevel(Level.ALL);


        CullDefinition def = parseFiles();

        def.setPackageName(packageName);

        for (ConverterDefinition conv : converterList) {
            try {
                CullDefinition filteredDef = conv.createFilteredCullDefinition(def);
                conv.createConverter().convert(filteredDef);
            } catch (BuildException be) {
                throw be;
            } catch (IOException ioe) {
                throw new BuildException("converter " + conv.getClassname() + " failed: " + ioe.getMessage(), ioe);
View Full Code Here

TOP

Related Classes of com.sun.grid.cull.CullDefinition$Elem

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.