public class IniArtifactDataReader extends Object
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 and Description |
---|
IniArtifactDataReader()
Constructs a data reader with the prefix
"" . |
IniArtifactDataReader(String prefix)
Constructs a data reader with the given prefix.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public IniArtifactDataReader()
""
.public IniArtifactDataReader(String prefix)
prefix
- the prefix to use for loading resources from the classpath.public ArtifactDescription parse(String resource) throws IOException
IOException
public ArtifactDescription parse(URL res) throws IOException
IOException
public ArtifactDescription parseLiteral(String description) throws IOException
IOException
Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.