Package org.apache.ace.bnd.repository

Examples of org.apache.ace.bnd.repository.AceObrRepository


        InputStream input = null;
        try {
            input = new FileInputStream(file);
            if (m_deploymentRepo instanceof AceObrRepository) {
                // ACE OBR can handle non-bundle resources if we pass a correct filename
                AceObrRepository aceToRepo = (AceObrRepository) m_deploymentRepo;
                aceToRepo.upload(input, getFileName(resource, snapshotVersion), getMimetype(resource));
            }
            else {
                m_deploymentRepo.put(input, null);
            }
            m_deploymentRepo.reset();
View Full Code Here


    public static AceObrRepository createRepository(String type, String location) throws Exception {
        Map<String, String> properties = new HashMap<String, String>();
        properties.put(AceObrRepository.PROP_REPO_TYPE, type);
        properties.put(AceObrRepository.PROP_LOCATIONS, location);
        AceObrRepository repository = new AceObrRepository();
        repository.setProperties(properties);
        return repository;
    }
View Full Code Here

        InputStream input = null;
        try {
            input = new FileInputStream(file);
            if (targetRepo instanceof AceObrRepository) {
                // ACE OBR can handle non bundle resource if we pass a filename
                AceObrRepository aceToRepo = (AceObrRepository) targetRepo;
                aceToRepo.upload(input, getFileName(resource), getMimetype(resource));
            }
            else {
                targetRepo.put(input, null);
            }
            targetRepo.reset();
View Full Code Here

        InputStream input = null;
        try {
            input = location.openStream();
            if (targetRepo instanceof AceObrRepository) {
                // ACE OBR can handle non bundle resource if we pass a filename
                AceObrRepository aceToRepo = (AceObrRepository) targetRepo;
                aceToRepo.upload(input, filename, null);
            }
            else {
                targetRepo.put(input, null);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.ace.bnd.repository.AceObrRepository

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.