Examples of XmlRepository


Examples of com.volantis.mcs.repository.xml.XMLRepository

                new NonExistantTemporaryFileCreator());
        manager.executeWith(new TemporaryFileExecutor() {
            public void execute(File file) throws Exception {
                // set up
                Map properties = new HashMap();
                XMLRepository repository;
                RepositoryConnection repositoryConnection;

                if (!file.mkdirs()) {
                    throw new Exception("Could not create temporary directory structure for " +
                            file.getPath());
                }

                properties.put(XMLRepository.DEFAULT_PROJECT_DIRECTORY_PROPERTY,
                               file.getAbsolutePath());
                properties.put(XMLRepository.REPLACE_DIR_PROPERTY,
                               new Boolean(true));
                repository = XMLRepository.createRepository(properties);
                repositoryConnection = repository.connect();

                try {
                    command.execute(repositoryConnection,
                                    repository,
                                    file.getAbsolutePath());
                } finally {
                    // tear down
                    repositoryConnection.disconnect();
                    repository.terminate();
                }
            }
        });
    }
View Full Code Here

Examples of org.apache.karaf.features.internal.repository.XmlRepository

            url = url.trim();
            if (!url.isEmpty()) {
                if (url.startsWith("json:")) {
                    repositories.add(new JsonRepository(url.substring("json:".length())));
                } else if (url.startsWith("xml:")) {
                    repositories.add(new XmlRepository(url.substring("xml:".length())));
                } else {
                    logger.warn("Unrecognized resource repository: " + url);
                }
            }
        }
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.