Examples of buildFromFile()


Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

        getLogger().debug(".act(): Creator : " + creator.getClass().getName());

        // Init creator
        // "Read" the configuration from the DOM node
        DefaultConfigurationBuilder defaultConfigBuilder = new DefaultConfigurationBuilder();
        Configuration[] docTypeConfigs = defaultConfigBuilder.buildFromFile(absoluteDoctypesPath +
                "doctypes.xconf").getChildren();

        Configuration doctypeConf = null;

        for (int i = 0; i < docTypeConfigs.length; i++) {
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
        Configuration config = null;

        try {
            assert file.exists();
            config = builder.buildFromFile(file);
        } catch (Exception e) {
            String errorMsg =
                "Exception when reading the configuration from file: " + file.getName();

            // an exception occured when trying to read the configuration
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

        File configurationFile = new File(configurationFilePath);

        try {
            DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
            Configuration configuration = builder.buildFromFile(configurationFile);
            configure(configuration);
        } catch (Exception e) {
            log.info(
                "Did not load publishing configuration from publisher.xconf (No such file or directory: " + configurationFile  + "). " +
                "That means you can't access all PublishingEnvironment parameters and you should only " +
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

        if (configurationFile.isFile()) {
            DefaultConfigurationBuilder builder =
                new DefaultConfigurationBuilder();
            Configuration configuration =
                builder.buildFromFile(configurationFile);
            configure(configuration);

        } else {
            log.info(
                "Task configuration not loaded - file ["
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

        getLogger().debug(".act(): Creator : " + creator.getClass().getName());

        // Init creator
        // "Read" the configuration from the DOM node
        DefaultConfigurationBuilder defaultConfigBuilder = new DefaultConfigurationBuilder();
        Configuration[] docTypeConfigs = defaultConfigBuilder.buildFromFile(absoluteDoctypesPath +
                "doctypes.xconf").getChildren();

        Configuration doctypeConf = null;

        for (int i = 0; i < docTypeConfigs.length; i++) {
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

            DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
            String path = getServletContextPath() + getSchedulerConfigurationPath();
            log.debug("Initializing scheduler configuration: " + path);

            File configurationFile = new File(path);
            Configuration configuration = builder.buildFromFile(configurationFile);

            return configuration;
        } catch (Exception e) {
            log.error("Can't initialize scheduler configuration: ", e);
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

    private Configuration getConfiguration(String filename)
            throws SAXException, IOException, ConfigurationException
    {
        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();

        return builder.buildFromFile(filename);
    }

    public void clearVisualizer()
    {
        //current = -1;
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

        null,hier,null,null
        );
   
    DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
    try {
      Configuration c = builder.buildFromFile(cfg);
      Context ctx = new DefaultContext();
      manager.contextualize(ctx);
        manager.configure(c);
    } catch (IllegalArgumentException e) {
      // This happens if the default log-target id-ref specifies a non-existent target
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

    private Configuration getConfiguration(String filename)
            throws SAXException, IOException, ConfigurationException
    {
        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();

        return builder.buildFromFile(filename);
    }

    public void clearVisualizer()
    {
        //current = -1;
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfigurationBuilder.buildFromFile()

            useRoles = false;
            getLogger().info("Not using seperate roles file");
        }
        // process configuration files
        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
        Configuration sysConfig = builder.buildFromFile(configFileName);
        if (useRoles)
        {
            Configuration roleConfig = builder.buildFromFile(roleFileName);
            // Setup the RoleManager
            DefaultRoleManager roles = new DefaultRoleManager();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.