Rio Project 4.2 API Documentation
org.rioproject.test
Class ProjectModuleResolver
java.lang.Object
org.rioproject.resolver.maven2.SimpleResolver
org.rioproject.test.ProjectModuleResolver
- All Implemented Interfaces:
- groovy.lang.GroovyObject, Resolver
public class ProjectModuleResolver
- extends SimpleResolver
| Methods inherited from class org.rioproject.resolver.maven2.SimpleResolver |
doResolve, getLogger, getM2settings, getMetaClass, getProperty, getRemoteRepositories, getRepositories, invokeMethod, main, setLogger, setM2settings, setMetaClass, setProperty, setRepositories, toString |
ProjectModuleResolver
public ProjectModuleResolver()
getLocation
public URL getLocation(String a,
String type,
File pom)
- Description copied from interface:
Resolver
- Get the location of the artifact
- Specified by:
getLocation in interface Resolver- Overrides:
getLocation in class SimpleResolver
- Parameters:
a - The artifact string.type - The type of artifact. Typically either "jar" or
"oar". If null (or empty string), "jar" is used. This is used to
determine the filename extension of the artifact to locate.pom - The artifact pom
- Returns:
- The location of the artifact, or null if not found.
getClassPathFor
public String[] getClassPathFor(String s,
RemoteRepository[] remote,
boolean download)
- Description copied from interface:
Resolver
- Get the classpath for an artifact, and resolve (download) the artifact
and it's dependencies if needed.
- Specified by:
getClassPathFor in interface Resolver- Overrides:
getClassPathFor in class SimpleResolver
- Parameters:
s - The artifact string.remote - Array of repositories to use to resolve the artifactdownload - If true, download and install the resolved elements
- Returns:
- A string array containing the classpath elements for the artifact
getClassPathFor
public String[] getClassPathFor(String a,
File pom,
boolean download)
- Description copied from interface:
Resolver
- Get the classpath for an artifact, and resolve (download) the artifact
and it's dependencies if needed.
- Specified by:
getClassPathFor in interface Resolver- Overrides:
getClassPathFor in class SimpleResolver
- Parameters:
a - The artifact string.pom - The artifact pomdownload - If true, download and install the resolved elements
- Returns:
- A string array containing the classpath elements for the artifact
getDependencyFilter
protected DependencyFilter getDependencyFilter(Artifact a)
- Overrides:
getDependencyFilter in class SimpleResolver
$getStaticMetaClass
protected groovy.lang.MetaClass $getStaticMetaClass()
- Overrides:
$getStaticMetaClass in class SimpleResolver
Copyright © 2006-2011 Rio Project. All Rights Reserved.