Package com.sun.faban.common

Examples of com.sun.faban.common.ParamReader


        doc.appendChild(root);
        return doc;
    }

    private static Document editRunXml() throws Exception {
        ParamReader reader = new ParamReader(runXmlFileName, true);
        Document doc = reader.getDocument();
        XPath xPath = reader.getXPath();
        Node n = (Node) xPath.evaluate("//fa:runConfig/fd:outputDir", doc,
                                                    XPathConstants.NODE);
        if (n == null)
            throw new ConfigurationException(
                    "Element fa:runConfig/fd:outputDir not found.");
View Full Code Here


            configFileName = System.getProperty("benchmark.config");
            if (configFileName == null) {
        throw new IOException("Property \"benchmark.config\" not set.");
      }

            ParamReader reader = new ParamReader(configFileName, true);
            Document doc = reader.getDocument();
            xp = reader.getXPath();
            rootElement = doc.getDocumentElement();
            String rootNS = rootElement.getNamespaceURI();
            String rootName = rootElement.getLocalName();

            if (FABANURI.equals(rootNS) && "runConfig".equals(rootName)) {
View Full Code Here

     */
    public XMLReader(String file, boolean useFabanNS, boolean warnDeprecated) {
        if (useFabanNS)
            try {
                this.file = file;
                ParamReader reader = new ParamReader(file, warnDeprecated);
                doc = reader.getDocument();
                xPath = reader.getXPath();
            } catch (Exception e) {
                throw new XMLException(e.getMessage(), e);
            }
        else
            initLocal(file);
View Full Code Here

TOP

Related Classes of com.sun.faban.common.ParamReader

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.