Examples of removeRepository()


Examples of org.apache.karaf.features.FeaturesService.removeRepository()

                File file = artifact.getFile();
                try {
                    Kar kar = new Kar(file.toURI());
                    kar.extract(new File(system.getPath()), new File(workDirectory));
                    for (URI repoUri : kar.getFeatureRepos()) {
                        featuresService.removeRepository(repoUri);
                        featuresService.addRepository(repoUri);
                    }
                } catch (Exception e) {
                    throw new RuntimeException("Could not install kar: " + artifact.toString() + "\n", e);
                    //buf.append("Could not install kar: ").append(artifact.toString()).append("\n");
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.removeRepository()

        replay(bundleManager);
        FeaturesServiceImpl svc = new FeaturesServiceImpl(bundleManager);
        EasyMock.verify(bundleManager);

        svc.addRepository(uri);                                                    
        svc.removeRepository(uri);
        verify(bundleManager);
    }

    // Tests install of a Repository that includes a feature
    // with a feature dependency
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.removeRepository()

        // Adds Repository
        svc.addRepository(uri);                                                    
       
        // Removes Repository
        svc.removeRepository(uri);       
    }

    // Tests install of a Repository that includes a feature
    // with a feature dependency
    // The dependant feature is in the same repository
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.removeRepository()

        replay(bundleManager);
        FeaturesServiceImpl svc = new FeaturesServiceImpl(bundleManager);
        EasyMock.verify(bundleManager);

        svc.addRepository(uri);                                                    
        svc.removeRepository(uri);
        verify(bundleManager);
    }

    // Tests install of a Repository that includes a feature
    // with a feature dependency
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.removeRepository()

        // Adds Repository
        svc.addRepository(uri);                                                    
       
        // Removes Repository
        svc.removeRepository(uri);       
    }

    // Tests install of a Repository that includes a feature
    // with a feature dependency
    // The dependant feature is in the same repository
View Full Code Here

Examples of org.apache.karaf.features.internal.FeaturesServiceImpl.removeRepository()

        // Adds Repository
        svc.addRepository(uri);                                                    
       
        // Removes Repository
        svc.removeRepository(uri);       
    }

    // Tests installing all features in a repo and uninstalling
    // all features in a repo
    public void testInstallUninstallAllFeatures() throws Exception {
View Full Code Here

Examples of org.apache.maven.archiva.configuration.RepositoryGroupConfiguration.removeRepository()

     
        // remove the old repository group configuration
        config.removeRepositoryGroup( group );
     
        // save repository group configuration
        group.removeRepository( repoId );
        config.addRepositoryGroup( group );
     
        return saveConfiguration( config );
    }
   
View Full Code Here

Examples of org.apache.maven.archiva.configuration.RepositoryGroupConfiguration.removeRepository()

     
        // remove the old repository group configuration
        config.removeRepositoryGroup( group );
     
        // save repository group configuration
        group.removeRepository( repoId );
        config.addRepositoryGroup( group );
       
        triggerAuditEvent( repoId, null, AuditEvent.DELETE_REPO_FROM_GROUP + " " + repoGroupId );
     
        return saveConfiguration( config );
View Full Code Here

Examples of org.drools.workbench.common.services.rest.JobRequestHelper.removeRepository()

        JobRequestHelper helper = getHelper(ctx);
        RemoveRepositoryRequest jobRequest = (RemoveRepositoryRequest) request;

        JobResult result = null;
        try {
            result = helper.removeRepository( jobRequest.getJobId(), jobRequest.getRepositoryName() );
        } finally {
            JobStatus status = result != null ? result.getStatus() : JobStatus.SERVER_ERROR;
            logger.info( "-----removeRepository--- , repository name: {} [{}]",
                    jobRequest.getRepositoryName(), status);
        }
View Full Code Here

Examples of org.eclipse.equinox.internal.provisional.p2.artifact.repository.IArtifactRepositoryManager.removeRepository()

        metadataRepositoryManager.removeRepository(location);
    }

    private static void removeArtifactRepository(URI location) throws ProvisioningException {
        IArtifactRepositoryManager artifactRepositoryManager = ServiceHolder.getArtifactRepositoryManager();
        artifactRepositoryManager.removeRepository(location);
    }
}
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.