|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaQute.bnd.maven.MavenRepository
public class MavenRepository
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface aQute.bnd.service.RepositoryPlugin |
|---|
RepositoryPlugin.Strategy |
| Field Summary | |
|---|---|
static String |
NAME
|
| Constructor Summary | |
|---|---|
MavenRepository()
|
|
| Method Summary | |
|---|---|
boolean |
canWrite()
Answer if this repository can be used to store files. |
File[] |
get(String bsn,
String version)
Return a URL to a matching version of the given bundle. |
File |
get(String bsn,
String range,
RepositoryPlugin.Strategy strategy,
Map<String,String> properties)
Return a URL to a matching version of the given bundle. |
String[] |
getGroupAndArtifact(String bsn)
|
String |
getName()
|
List<String> |
list(String regex)
Return a list of bsns that are present in the repository. |
File |
put(Jar jar)
Put a JAR file in the repository. |
void |
setProperties(Map<String,String> map)
Give the plugin the remaining properties. |
void |
setReporter(Reporter processor)
Set the current reporter. |
void |
setRoot(File f)
|
String |
toString()
|
List<Version> |
versions(String bsn)
Return a list of versions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String NAME
| Constructor Detail |
|---|
public MavenRepository()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean canWrite()
RepositoryPlugin
canWrite in interface RepositoryPlugin
public File[] get(String bsn,
String version)
throws Exception
RepositoryPlugin
get in interface RepositoryPluginbsn - Bundle-SymbolicName of the searched bundleversion - Version range for this bundle,"latest" if you only want the
latest, or null when you want all.
Exception - when anything goes wrongpublic List<String> list(String regex)
RepositoryPlugin
list in interface RepositoryPluginregex - if not null, match against the bsn and if matches, return
otherwise skip
public File put(Jar jar)
throws Exception
RepositoryPlugin
put in interface RepositoryPluginException
public List<Version> versions(String bsn)
throws Exception
RepositoryPlugin
versions in interface RepositoryPluginExceptionpublic void setProperties(Map<String,String> map)
Plugin
setProperties in interface Pluginmap - attributes and directives for this plugin's clausepublic void setReporter(Reporter processor)
Plugin
setReporter in interface Pluginpublic String[] getGroupAndArtifact(String bsn)
getGroupAndArtifact in interface BsnToMavenPathpublic String getName()
getName in interface RepositoryPlugin
public File get(String bsn,
String range,
RepositoryPlugin.Strategy strategy,
Map<String,String> properties)
throws Exception
RepositoryPlugin
get in interface RepositoryPluginbsn - Bundle-SymbolicName of the searched bundlerange - Version range for this bundle,"latest" if you only want the
latest, or null when you want all.strategy - Get the highest or the lowest
Exception - when anything goes wrongpublic void setRoot(File f)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||