]>
git.argeo.org Git - gpl/argeo-slc.git/blob - cms/org.argeo.slc.repo/src/org/eclipse/aether/repository/WorkspaceReader.java
1 /*******************************************************************************
2 * Copyright (c) 2010, 2012 Sonatype, Inc.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Sonatype, Inc. - initial API and implementation
10 *******************************************************************************/
11 package org
.eclipse
.aether
.repository
;
14 import java
.util
.List
;
16 import org
.eclipse
.aether
.artifact
.Artifact
;
19 * Manages a repository backed by the IDE workspace, a build session or a similar ad-hoc collection of artifacts.
21 * @see org.eclipse.aether.RepositorySystemSession#getWorkspaceReader()
23 public interface WorkspaceReader
27 * Gets a description of the workspace repository.
29 * @return The repository description, never {@code null}.
31 WorkspaceRepository
getRepository();
34 * Locates the specified artifact.
36 * @param artifact The artifact to locate, must not be {@code null}.
37 * @return The path to the artifact or {@code null} if the artifact is not available.
39 File
findArtifact( Artifact artifact
);
42 * Determines all available versions of the specified artifact.
44 * @param artifact The artifact whose versions should be listed, must not be {@code null}.
45 * @return The available versions of the artifact, must not be {@code null}.
47 List
<String
> findVersions( Artifact artifact
);