Package org.apache.ace.bnd.repository

Examples of org.apache.ace.bnd.repository.AceObrRepository.upload()


        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


        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

        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
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.