Package com.volantis.mcs.repository.xml

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

TOP

Related Classes of com.volantis.mcs.repository.xml.XMLRepository

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.