Package org.apache.geronimo.system.configuration

Examples of org.apache.geronimo.system.configuration.RepositoryConfigurationStore


        //

        Maven2RepositoryAdapter.ArtifactLookup lookup = new ArtifactLookupImpl(new HashMap());
        sourceRepo = new Maven2RepositoryAdapter(dependencies, lookup);
        // sourceRepo = new Maven2RepositoryAdapter(new File(sourceRepository.getBasedir()));
        sourceStore = new RepositoryConfigurationStore(sourceRepo);

        FileUtils.forceMkdir(targetRepositoryDirectory);

        targetRepo = new Maven2Repository(targetRepositoryDirectory);
        targetStore = new RepositoryConfigurationStore(targetRepo);

        ArtifactManager artifactManager = new DefaultArtifactManager();
        geronimoArtifactResolver = new ExplicitDefaultArtifactResolver(
                explicitResolutionProperties.getPath(),
                artifactManager,
View Full Code Here


        FileUtils.forceMkdir(new File(targetServerPath));
        serverInfo = new BasicServerInfo(targetServerPath, false);
        File targetRepositoryFile = serverInfo.resolve(targetRepositoryPath);
        FileUtils.forceMkdir(targetRepositoryFile);
        writeableRepo = new Maven2Repository(targetRepositoryFile);
        configStore = new RepositoryConfigurationStore(writeableRepo);
        threadPool = null;
        asyncKeys = Collections.synchronizedMap(new HashMap<Object, DownloadResults>());
        this.serverInstanceDatas = serverInstanceDatas;
        this.persistentConfigurationLists = Collections.emptyList();
        this.classLoader = classLoader;
View Full Code Here

        //

        Maven2RepositoryAdapter.ArtifactLookup lookup = new ArtifactLookupImpl(new HashMap());
        sourceRepo = new Maven2RepositoryAdapter(dependencies, lookup);
//        sourceRepo = new Maven2RepositoryAdapter(new File(sourceRepository.getBasedir()));
        sourceStore = new RepositoryConfigurationStore(sourceRepo);

        FileUtils.forceMkdir(targetRepositoryDirectory);

        targetRepo = new Maven2Repository(targetRepositoryDirectory);
        targetStore = new RepositoryConfigurationStore(targetRepo);

        ArtifactManager artifactManager = new DefaultArtifactManager();
        geronimoArtifactResolver = new ExplicitDefaultArtifactResolver(
                explicitResolutionProperties.getPath(),
                artifactManager,
View Full Code Here

        this.explicitResolutionLocation = explicitResolutionLocation;
    }

    public void execute() throws Exception {
        sourceRepo = new Maven1Repository(getSourceRepository());
        sourceStore = new RepositoryConfigurationStore(sourceRepo);

        targetRepo = new Maven2Repository(new File(targetRoot, targetRepository));
        targetStore = new RepositoryConfigurationStore(targetRepo);

        ArtifactManager artifactManager = new DefaultArtifactManager();
        artifactResolver = new ExplicitDefaultArtifactResolver(explicitResolutionLocation,
                artifactManager,
                Collections.singleton(sourceRepo),
View Full Code Here

        public File getFile() throws IOException {
            location = File.createTempFile("geronimo-plugin-download-", ".tmp");
            OutputStream output = new FileOutputStream(location);
            WritableListableRepository writableRepo = new RepoWrapper(repo);
            ConfigurationStore store = new RepositoryConfigurationStore(writableRepo);
            try {
                store.exportConfiguration(artifact, output);
            } catch (NoSuchConfigException e) {
                throw (IOException)new IOException("Could not locate artefact " + artifact).initCause(e);
            }

            return location;
View Full Code Here

        FileUtils.forceMkdir(new File(targetServerPath));
        serverInfo = new BasicServerInfo(targetServerPath, false);
        File targetRepositoryFile = serverInfo.resolve(targetRepositoryPath);
        FileUtils.forceMkdir(targetRepositoryFile);
        writeableRepo = new Maven2Repository(targetRepositoryFile);
        configStore = new RepositoryConfigurationStore(writeableRepo);
        threadPool = null;
        asyncKeys = Collections.synchronizedMap(new HashMap<Object, DownloadResults>());
        this.serverInstanceDatas = serverInstanceDatas;
        this.persistentConfigurationLists = Collections.emptyList();
        this.classLoader = classLoader;
View Full Code Here

        File repoBase = new File(new File(new File(new File(new File(getBaseDir(), "src"), "test"), "resources"), "copyfiletest"), "repository");
        if (!repoBase.exists()) {
            throw new RuntimeException("Could not locate repo :" + repoBase);
        }
        Maven2Repository repo = new Maven2Repository(repoBase.toURI(), serverInfo, true);
        configStore = new RepositoryConfigurationStore(repo);
        installer = new PluginInstallerGBean(new MockConfigurationManager(),
                repo,
                configStore,
                installedPluginsList, serverInfo,
                new ThreadPool() {
View Full Code Here

        public File getFile() throws IOException {
            location = File.createTempFile("geronimo-plugin-download-", ".tmp");
            OutputStream output = new FileOutputStream(location);
            WritableListableRepository writableRepo = new RepoWrapper(repo);
            ConfigurationStore store = new RepositoryConfigurationStore(writableRepo);
            try {
                store.exportConfiguration(artifact, output);
            } catch (NoSuchConfigException e) {
                throw (IOException)new IOException("Could not locate artefact " + artifact).initCause(e);
            }

            return location;
View Full Code Here

        forceMkdir(new File(targetServerPath));
        serverInfo = new BasicServerInfo(targetServerPath, false, null);
        File targetRepositoryFile = serverInfo.resolve(targetRepositoryPath);
        forceMkdir(targetRepositoryFile);
        writeableRepo = new Maven2Repository(targetRepositoryFile);
        configStore = new RepositoryConfigurationStore(writeableRepo);
        threadPool = null;
        asyncKeys = new ConcurrentHashMap<Object, DownloadResults>();
        this.serverInstanceDatas = serverInstanceDatas;
        this.persistentConfigurationLists = Collections.emptyList();
        this.bundleContext = bundleContext;
View Full Code Here

    protected ConfigurationStore newConfigurationStore(Kernel kernel,
        String objectName,
        AbstractName abstractName,
        WritableListableRepository repository) {
        return new RepositoryConfigurationStore(kernel, objectName, abstractName, repository);
    }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.system.configuration.RepositoryConfigurationStore

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.