|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.test.util.IniArtifactDataReader
public class IniArtifactDataReader
A parser for an artifact description in an INI-like format.
Possible sections are:
gid:aid:ver:ext[:scope][:optional]The dependency-sections may specify exclusions:
-gid:aidA repository definition is of the form:
id:type:url
[relocation] gid:aid:ver:ext [dependencies] gid:aid:ver:ext:scope -exclusion:aid gid:aid2:ver:ext:scope:optional [managed-dependencies] gid:aid2:ver2:ext:scope -gid:aid -gid:aid [repositories] id:type:file:///test-repo
IniArtifactDescriptorReader
Constructor Summary | |
---|---|
IniArtifactDataReader()
Constructs a data reader with the prefix "" . |
|
IniArtifactDataReader(String prefix)
Constructs a data reader with the given prefix. |
Method Summary | |
---|---|
ArtifactDescription |
parse(String resource)
Load an artifact description from the classpath and parse it. |
ArtifactDescription |
parse(URL res)
Open the given URL and parse ist. |
ArtifactDescription |
parseLiteral(String description)
Parse the given String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IniArtifactDataReader()
""
.
public IniArtifactDataReader(String prefix)
prefix
- the prefix to use for loading resources from the classpath.Method Detail |
---|
public ArtifactDescription parse(String resource) throws IOException
IOException
public ArtifactDescription parse(URL res) throws IOException
IOException
public ArtifactDescription parseLiteral(String description) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |