public class DefaultWorkspaceReader extends Object implements org.eclipse.aether.repository.WorkspaceReader
WorkspaceReader that resolves artifacts using the IDE workspace or Maven multi-module reactor.| Constructor and Description |
|---|
DefaultWorkspaceReader(List<URL> classPath,
WorkspaceLocationResolver workspaceLocationResolver)
Creates and instance of the workspace reader for the given classPath and workspaceLocationResolver.
|
| Modifier and Type | Method and Description |
|---|---|
File |
findArtifact(org.eclipse.aether.artifact.Artifact artifact) |
static File |
findClassPathURL(org.eclipse.aether.artifact.Artifact artifact,
File workspaceArtifactPath,
List<URL> classPath)
Looks for a matching
URL for a workspace Artifact. |
List<String> |
findVersions(org.eclipse.aether.artifact.Artifact artifact)
Not need to specify the versions here.
|
org.eclipse.aether.repository.WorkspaceRepository |
getRepository() |
static boolean |
isTestArtifact(org.eclipse.aether.artifact.Artifact artifact)
Determines whether the specified artifact refers to test classes.
|
public DefaultWorkspaceReader(List<URL> classPath, WorkspaceLocationResolver workspaceLocationResolver)
classPath - URLs to find the artifact's URLworkspaceLocationResolver - WorkspaceLocationResolver to retrieve the workspace reference for a given
Artifactpublic static File findClassPathURL(org.eclipse.aether.artifact.Artifact artifact, File workspaceArtifactPath, List<URL> classPath)
URL for a workspace Artifact. It also supports to look for jars or classes depending if
the artifacts were packaged or not.public static boolean isTestArtifact(org.eclipse.aether.artifact.Artifact artifact)
artifact - The artifact to check, must not be null.true if the artifact refers to test classes, false otherwise.public org.eclipse.aether.repository.WorkspaceRepository getRepository()
getRepository in interface org.eclipse.aether.repository.WorkspaceReaderpublic File findArtifact(org.eclipse.aether.artifact.Artifact artifact)
findArtifact in interface org.eclipse.aether.repository.WorkspaceReaderCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.