Class IniArtifactDescriptorReader
- java.lang.Object
-
- org.eclipse.aether.internal.test.util.IniArtifactDescriptorReader
-
public class IniArtifactDescriptorReader extends Object
An artifact descriptor reader that gets data from a simple text file on the classpath. The data file for an artifact with the coordinatesgid:aid:ext:ver
is expected to be namedgid_aid_ver.ini
and can optionally have some prefix. The data file can have the following sections:- relocation
- dependencies
- managedDependencies
- repositories
gid:aid:ext:ver[:scope][:optional]
The dependency sections may also specify exclusions:-gid:aid
A repository definition is of the form:id:type:url
Example
[relocation] gid:aid:ext:ver [dependencies] gid:aid:ext:ver:scope -exclusion:aid gid:aid2:ext:ver:scope:optional [managed-dependencies] gid:aid2:ext:ver2:scope -gid:aid -gid:aid [repositories] id:type:file:///test-repo
-
-
Constructor Summary
Constructors Constructor Description IniArtifactDescriptorReader(String prefix)
Use the given prefix to load the artifact descriptions from the classpath.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArtifactDescriptorResult
readArtifactDescriptor(RepositorySystemSession session, ArtifactDescriptorRequest request)
Parses the resource$prefix/gid_aid_ver.ini
from the request artifact as an artifact description and wraps it into an ArtifactDescriptorResult.
-
-
-
Constructor Detail
-
IniArtifactDescriptorReader
public IniArtifactDescriptorReader(String prefix)
Use the given prefix to load the artifact descriptions from the classpath.
-
-
Method Detail
-
readArtifactDescriptor
public ArtifactDescriptorResult readArtifactDescriptor(RepositorySystemSession session, ArtifactDescriptorRequest request) throws ArtifactDescriptorException
Parses the resource$prefix/gid_aid_ver.ini
from the request artifact as an artifact description and wraps it into an ArtifactDescriptorResult.- Throws:
ArtifactDescriptorException
-
-