Package org.apache.ace.client.repository.repository

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


     * @param obrBaseUrl the base URL of the OBR, cannot be <code>null</code>.
     * @return a list of used OBR entries, never <code>null</code>.
     * @throws IOException in case an artifact repository is not present.
     */
    private List<OBREntry> getUsedOBRArtifacts(URL obrBaseUrl) throws IOException {
        ArtifactRepository artifactRepository = getArtifactRepository();
        if (artifactRepository == null) {
            throw new IOException("No artifact repository present!");
        }

        final String baseURL = obrBaseUrl.toExternalForm();

        List<OBREntry> fromRepository = new ArrayList<OBREntry>();

        List<ArtifactObject> artifactObjects = artifactRepository.get();
        artifactObjects.addAll(artifactRepository.getResourceProcessors());

        for (ArtifactObject ao : artifactObjects) {
            String artifactURL = ao.getURL();
            if (artifactURL != null && artifactURL.startsWith(baseURL)) {
                // we now know this artifact comes from the OBR we are querying,
View Full Code Here


     * @param artifactURL the URL of the artifact to import, cannot be <code>null</code>.
     * @return the imported artifact object, never <code>null</code>.
     * @throws IOException in case an I/O exception has occurred.
     */
    private ArtifactObject importLocalBundle(URL artifactURL) throws IOException {
        ArtifactRepository artifactRepository = getArtifactRepository();
        if (artifactRepository == null) {
            throw new IOException("No artifact repository present!");
        }
        return artifactRepository.importArtifact(artifactURL, false /* upload */);
    }
View Full Code Here

     * @param artifactURL the URL of the artifact to import, cannot be <code>null</code>.
     * @return the imported artifact object, never <code>null</code>.
     * @throws IOException in case an I/O exception has occurred.
     */
    private ArtifactObject importRemoteBundle(URL artifactURL) throws IOException {
        ArtifactRepository artifactRepository = getArtifactRepository();
        if (artifactRepository == null) {
            throw new IOException("No artifact repository present!");
        }
        return artifactRepository.importArtifact(artifactURL, true /* upload */);
    }
View Full Code Here

TOP

Related Classes of org.apache.ace.client.repository.repository.ArtifactRepository

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.