Package org.lilyproject.runtime.rapi.ModuleSource

Examples of org.lilyproject.runtime.rapi.ModuleSource.Resource


    }

    protected List<ConfigPath> getConfigFiles() {
        List<ConfigPath> configPaths = new ArrayList<ConfigPath>();

        Resource resource = moduleSource.getResource("conf");
        if (resource == null) {
            return configPaths;
        }

        collectConfigFiles(configPaths, resource, "");
View Full Code Here


    private void collectConfigFiles(List<ConfigPath> configPaths, Resource resource, String path) {
        for (String child : resource.getChildren()) {
            String childPath = path.length() > 0 ? path + "/" + child : child;
            String resourcePath = "conf/" + childPath;
            Resource childResource = moduleSource.getResource(resourcePath);
            if (acceptFileName(childResource.isDirectory(), child)) {
                if (childResource.isDirectory()) {
                    collectConfigFiles(configPaths, childResource, childPath);
                } else {
                    if (childPath.endsWith(CONFIG_FILE_EXT)) { // should be the case
                        childPath = childPath.substring(0, childPath.length() - CONFIG_FILE_EXT.length());
                    }
View Full Code Here

TOP

Related Classes of org.lilyproject.runtime.rapi.ModuleSource.Resource

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.