Examples of RepositoryConfiguration


Examples of atg.tools.dynunit.test.configuration.RepositoryConfiguration

            connectionSettings.put(
                    (String) entry.getKey(), (String) entry.getValue()
            );

        }
        final RepositoryConfiguration repositoryConfiguration = new RepositoryConfiguration();

        repositoryConfiguration.setDebug(debug);
        repositoryConfiguration.setRoot(configurationLocation);
        repositoryConfiguration.createPropertiesByConfigurationLocation();
        repositoryConfiguration.createFakeXADataSource(connectionProperties);
        repositoryConfiguration.createRepository(repositoryPath, dropTables, createTables, definitionFiles);

        repositoryManager.initializeMinimalRepositoryConfiguration(
                configurationLocation,
                repositoryPath,
                connectionSettings,
View Full Code Here

Examples of com.aragost.javahg.RepositoryConfiguration

        server.initMecurialRepository(dir);
        return dir;
    }

    protected static RepositoryConfiguration makeRepoConf() {
        RepositoryConfiguration conf = new RepositoryConfiguration();
        conf.setCachePolicy(CachePolicy.WEAK);
        conf.addExtension(JavaHgTestExtension.class);

        return conf;
    }
View Full Code Here

Examples of org.apache.ace.client.repository.repository.RepositoryConfiguration

        assert b3.isAssociated(g2, FeatureObject.class) : "After serialization, b3 should still be associated with g2.";
    }

    @Test(groups = { TestUtils.UNIT })
    public void testUnlimitedNumberOfDeploymentVersions() throws IOException {
        RepositoryConfiguration repoConfig = new RepositoryConfigurationImpl();

        m_deploymentVersionRepository = new DeploymentVersionRepositoryImpl(m_mockChangeNotifier, repoConfig);
        TestUtils.configureObject(m_deploymentVersionRepository, BundleContext.class, m_mockBundleContext);

        DeploymentVersionObject target1_v1 = createBasicDeploymentVersionObject("target1", "1", new String[] { "artifact1", "artifact2" });
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.configuration.RepositoryConfiguration

        this.sessionContext = sessionContext;
        this.transientSpace = transientSpace;

        int cacheSize = 0;
        try {
            RepositoryConfiguration config =
                    sessionContext.getGlobalContext().getInstance(
                            RepositoryConfiguration.class);
            cacheSize = config.getNodeStateCacheSize();
        } catch (IllegalStateException ignore) {
            // FIXME: Shouldn't use the context to pass around configuration
        }

        if (cacheSize <= 0) {
View Full Code Here

Examples of org.apache.jackrabbit.ocm.nodemanagement.impl.RepositoryConfiguration

     */
    protected void setUp() throws Exception
    {
        if (session == null)
        {
            RepositoryConfiguration configuration = new RepositoryConfiguration();
            configuration.setConfigurationFile("./src/test/config/jackrabbit/repository.xml");
            configuration.setRepositoryName("repositoryTest");
            configuration.setRepositoryPath("./target/repository");
            session = RepositorySessionFactory.getSession(RepositorySessionFactory.JACKRABBIT, "superuser", "superuser", configuration);
           
            /*RepositoryConfiguration configuration = new RepositoryConfiguration();
            configuration.setConfigurationFile("./src/config/jeceria/jeceira.xml");
            configuration.setRepositoryName("test");
View Full Code Here

Examples of org.apache.jackrabbit.ocm.nodemanagement.impl.RepositoryConfiguration

     */
    protected void setUp() throws Exception
    {
        if (session == null)
        {
            RepositoryConfiguration configuration = new RepositoryConfiguration();
            configuration.setConfigurationFile("./src/test/config/jackrabbit/repository.xml");
            configuration.setRepositoryName("repositoryTest");
            configuration.setRepositoryPath("./target/repository");
            session = RepositorySessionFactory.getSession(RepositorySessionFactory.JACKRABBIT, "superuser", "superuser", configuration);

            /*RepositoryConfiguration configuration = new RepositoryConfiguration();
            configuration.setConfigurationFile("./src/config/jeceria/jeceira.xml");
            configuration.setRepositoryName("test");
View Full Code Here

Examples of org.apache.maven.archiva.configuration.RepositoryConfiguration

            // Already in the database.  Skip it.
            return;
        }

        File artifactFile = toFile( artifact );
        RepositoryConfiguration repo = getRepository( artifact );
        ProjectModelReader reader = project400Reader;

        if ( StringUtils.equals( "legacy", repo.getLayout() ) )
        {
            reader = project300Reader;
        }

        try
View Full Code Here

Examples of org.apache.maven.archiva.configuration.RepositoryConfiguration

        return archivaConfiguration.getConfiguration().findRepositoryById( repoId );
    }

    private File toFile( ArchivaArtifact artifact )
    {
        RepositoryConfiguration repoConfig = getRepository( artifact );

        BidirectionalRepositoryLayout layout = null;

        try
        {
            layout = layoutFactory.getLayout( artifact );
        }
        catch ( LayoutException e )
        {
            getLogger().warn( "Unable to determine layout of " + artifact + ": " + e.getMessage(), e );
            return null;
        }

        String path = layout.toPath( artifact );
        RepositoryURL url = new RepositoryURL( repoConfig.getUrl() );
        return new File( url.getPath(), path );
    }
View Full Code Here

Examples of org.apache.maven.archiva.configuration.RepositoryConfiguration

                .getInstance(), configLocalRepos );

            Iterator it = configLocalRepos.iterator();
            while ( it.hasNext() )
            {
                RepositoryConfiguration repoconfig = (RepositoryConfiguration) it.next();
                ArchivaRepository repo = ArchivaConfigurationAdaptor.toArchivaRepository( repoconfig );
                try
                {
                    RepositoryProjectResolver resolver = toResolver( repo );
View Full Code Here

Examples of org.apache.maven.archiva.configuration.RepositoryConfiguration

            this.repositoryMap.clear();

            Iterator it = configuration.getConfiguration().getRepositories().iterator();
            while ( it.hasNext() )
            {
                RepositoryConfiguration repoconfig = (RepositoryConfiguration) it.next();
                if ( !repoconfig.isManaged() )
                {
                    continue;
                }

                ArchivaRepository repository = ArchivaConfigurationAdaptor.toArchivaRepository( repoconfig );
                IndexedRepositoryDetails pnl = new IndexedRepositoryDetails();

                pnl.path = repository.getUrl().getPath();
                pnl.layout = (BidirectionalRepositoryLayout) this.bidirectionalLayoutMap.get( repoconfig.getLayout() );

                pnl.index = indexFactory.createHashcodeIndex( repository );

                this.repositoryMap.put( repoconfig.getId(), pnl );
            }
        }
    }
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.