|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.resolve.AbstractIvyDependencyManager
public abstract class AbstractIvyDependencyManager extends java.lang.Object
Base class for IvyDependencyManager with some logic implemented in Java.
Field Summary | |
---|---|
static java.util.List |
ALL_CONFIGURATIONS
|
static org.apache.ivy.core.module.descriptor.Configuration |
BUILD_CONFIGURATION
|
static org.apache.ivy.core.module.descriptor.Configuration |
COMPILE_CONFIGURATION
|
static org.apache.ivy.core.module.descriptor.Configuration |
DOCS_CONFIGURATION
|
static org.apache.ivy.core.module.descriptor.Configuration |
PROVIDED_CONFIGURATION
|
static org.apache.ivy.core.module.descriptor.Configuration |
RUNTIME_CONFIGURATION
|
static java.lang.String |
SNAPSHOT_CHANGING_PATTERN
|
static org.apache.ivy.core.module.descriptor.Configuration |
TEST_CONFIGURATION
|
protected java.lang.String |
applicationName
|
protected java.lang.String |
applicationVersion
|
protected BuildSettings |
buildSettings
|
protected java.lang.String[] |
configurationNames
|
protected java.util.Set |
dependencies
|
protected java.util.Set |
dependencyDescriptors
|
protected boolean |
hasApplicationDependencies
|
protected boolean |
includeJavadoc
|
protected boolean |
includeSource
|
protected org.apache.ivy.core.settings.IvySettings |
ivySettings
|
protected Metadata |
metadata
|
protected java.util.Set |
metadataRegisteredPluginNames
|
protected org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor |
moduleDescriptor
|
protected java.util.Set |
modules
|
protected java.util.Map |
orgToDepMap
|
protected java.util.Set |
pluginDependencyDescriptors
|
protected java.util.Map |
pluginNameToDescriptorMap
|
protected boolean |
readPom
|
protected java.util.Collection |
usedConfigurations
|
Constructor Summary | |
AbstractIvyDependencyManager(org.apache.ivy.core.settings.IvySettings ivySettings, BuildSettings buildSettings, Metadata metadata)
|
Method Summary | |
---|---|
void
|
configureDependencyDescriptor(EnhancedDefaultDependencyDescriptor dependencyDescriptor, java.lang.String scope)
@deprecated use registerDependency(String, EnhancedDefaultDependencyDescriptor) |
void
|
configureDependencyDescriptor(EnhancedDefaultDependencyDescriptor dependencyDescriptor, java.lang.String scope, boolean pluginMode)
@deprecated use registerDependency(String, EnhancedDefaultDependencyDescriptor) or registerPluginDependency(String EnhancedDefaultDependencyDescriptor) |
protected org.apache.ivy.core.module.id.ArtifactId
|
createExcludeArtifactId(java.lang.String excludeName)
|
protected org.apache.ivy.core.module.id.ArtifactId
|
createExcludeArtifactId(java.lang.String excludeName, java.lang.String group)
|
org.apache.ivy.core.module.descriptor.ModuleDescriptor
|
createModuleDescriptor()
|
java.lang.String
|
getApplicationName()
|
java.lang.String
|
getApplicationVersion()
|
BuildSettings
|
getBuildSettings()
|
org.apache.ivy.plugins.resolver.ChainResolver
|
getChainResolver()
|
java.util.Map
|
getConfigurationMappings()
|
java.lang.String[]
|
getConfigurationNames()
|
java.util.Set
|
getDependencies()
Obtains a list of dependencies defined in the project |
org.apache.ivy.core.settings.IvySettings
|
getIvySettings()
|
Metadata
|
getMetadata()
|
java.util.Set
|
getMetadataRegisteredPluginNames()
|
org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor
|
getModuleDescriptor()
|
org.apache.ivy.core.module.descriptor.DependencyDescriptor
|
getPluginDependencyDescriptor(java.lang.String pluginName)
Obtains a particular DependencyDescriptor by the plugin name |
java.util.Set
|
getPluginDependencyNames()
Obtains a set of plugins this application is dependent onb |
java.util.Set
|
getPluginExcludes(java.lang.String plugin)
|
boolean
|
getReadPom()
|
java.util.Collection
|
getUsedConfigurations()
|
boolean
|
hasApplicationDependencies()
Returns true if the application has any dependencies that are not inherited from the framework or other plugins |
boolean
|
isExcludedFromPlugin(java.lang.String plugin, java.lang.String dependencyName)
|
boolean
|
isExcludedFromPlugin(org.apache.ivy.core.module.descriptor.DependencyDescriptor currentPlugin, org.apache.ivy.core.module.id.ArtifactId dependency)
|
boolean
|
isOffline()
|
boolean
|
isPluginTransitive(java.lang.String pluginName)
Returns whether a plugin is transitive, ie whether its dependencies are resolved transitively |
boolean
|
isPluginTransitivelyIncluded(java.lang.String pluginName)
Whether the plugin is directly included or a transitive dependency of another plugin |
void
|
parseDependencies(groovy.lang.Closure definition)
Parses the Ivy DSL definition |
void
|
parseDependencies(java.lang.String pluginName, groovy.lang.Closure definition)
Parses dependencies of a plugin. |
org.apache.ivy.core.module.descriptor.DependencyDescriptor[]
|
readDependenciesFromPOM()
|
void
|
registerDependency(java.lang.String scope, EnhancedDefaultDependencyDescriptor descriptor)
Registers a JAR dependency with the dependency manager. |
void
|
registerPluginDependency(java.lang.String scope, EnhancedDefaultDependencyDescriptor descriptor)
Registers a plugin dependency (as in Grails plugin). |
void
|
setApplicationName(java.lang.String applicationName)
|
void
|
setApplicationVersion(java.lang.String applicationVersion)
|
void
|
setChainResolver(org.apache.ivy.plugins.resolver.ChainResolver chainResolver)
|
void
|
setIncludeJavadoc(boolean includeJavadoc)
|
void
|
setIncludeSource(boolean includeSource)
|
void
|
setMetadataRegisteredPluginNames(java.util.Set metadataRegisteredPluginNames)
|
void
|
setModuleDescriptor(org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor moduleDescriptor)
|
void
|
setOffline(boolean offline)
|
void
|
setReadPom(boolean flag)
|
void
|
setUsedConfigurations(java.util.Collection usedConfigurations)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static java.util.List ALL_CONFIGURATIONS
public static org.apache.ivy.core.module.descriptor.Configuration BUILD_CONFIGURATION
public static org.apache.ivy.core.module.descriptor.Configuration COMPILE_CONFIGURATION
public static org.apache.ivy.core.module.descriptor.Configuration DOCS_CONFIGURATION
public static org.apache.ivy.core.module.descriptor.Configuration PROVIDED_CONFIGURATION
public static org.apache.ivy.core.module.descriptor.Configuration RUNTIME_CONFIGURATION
public static final java.lang.String SNAPSHOT_CHANGING_PATTERN
public static org.apache.ivy.core.module.descriptor.Configuration TEST_CONFIGURATION
protected java.lang.String applicationName
protected java.lang.String applicationVersion
protected final BuildSettings buildSettings
protected java.lang.String[] configurationNames
protected java.util.Set dependencies
protected java.util.Set dependencyDescriptors
protected boolean hasApplicationDependencies
protected boolean includeJavadoc
protected boolean includeSource
protected final org.apache.ivy.core.settings.IvySettings ivySettings
protected final Metadata metadata
protected java.util.Set metadataRegisteredPluginNames
protected org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor moduleDescriptor
protected java.util.Set modules
protected java.util.Map orgToDepMap
protected java.util.Set pluginDependencyDescriptors
protected java.util.Map pluginNameToDescriptorMap
protected boolean readPom
protected java.util.Collection usedConfigurations
Constructor Detail |
---|
public AbstractIvyDependencyManager(org.apache.ivy.core.settings.IvySettings ivySettings, BuildSettings buildSettings, Metadata metadata)
Method Detail |
---|
@Deprecated public void configureDependencyDescriptor(EnhancedDefaultDependencyDescriptor dependencyDescriptor, java.lang.String scope)
@Deprecated public void configureDependencyDescriptor(EnhancedDefaultDependencyDescriptor dependencyDescriptor, java.lang.String scope, boolean pluginMode)
protected org.apache.ivy.core.module.id.ArtifactId createExcludeArtifactId(java.lang.String excludeName)
protected org.apache.ivy.core.module.id.ArtifactId createExcludeArtifactId(java.lang.String excludeName, java.lang.String group)
public org.apache.ivy.core.module.descriptor.ModuleDescriptor createModuleDescriptor()
public java.lang.String getApplicationName()
public java.lang.String getApplicationVersion()
public BuildSettings getBuildSettings()
public org.apache.ivy.plugins.resolver.ChainResolver getChainResolver()
public java.util.Map getConfigurationMappings()
public java.lang.String[] getConfigurationNames()
public java.util.Set getDependencies()
public org.apache.ivy.core.settings.IvySettings getIvySettings()
public Metadata getMetadata()
public java.util.Set getMetadataRegisteredPluginNames()
public org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor getModuleDescriptor()
public org.apache.ivy.core.module.descriptor.DependencyDescriptor getPluginDependencyDescriptor(java.lang.String pluginName)
pluginName
- The plugin name
public java.util.Set getPluginDependencyNames()
public java.util.Set getPluginExcludes(java.lang.String plugin)
public boolean getReadPom()
public java.util.Collection getUsedConfigurations()
public boolean hasApplicationDependencies()
public boolean isExcludedFromPlugin(java.lang.String plugin, java.lang.String dependencyName)
public boolean isExcludedFromPlugin(org.apache.ivy.core.module.descriptor.DependencyDescriptor currentPlugin, org.apache.ivy.core.module.id.ArtifactId dependency)
public boolean isOffline()
public boolean isPluginTransitive(java.lang.String pluginName)
pluginName
- The name of the plugin
public boolean isPluginTransitivelyIncluded(java.lang.String pluginName)
pluginName
- The plugin name
public void parseDependencies(@SuppressWarnings("rawtypes") groovy.lang.Closure definition)
public void parseDependencies(java.lang.String pluginName, groovy.lang.Closure definition)
pluginName
- the name of the plugindefinition
- the Ivy DSL definition
public org.apache.ivy.core.module.descriptor.DependencyDescriptor[] readDependenciesFromPOM()
public void registerDependency(java.lang.String scope, EnhancedDefaultDependencyDescriptor descriptor)
public void registerPluginDependency(java.lang.String scope, EnhancedDefaultDependencyDescriptor descriptor)
public void setApplicationName(java.lang.String applicationName)
public void setApplicationVersion(java.lang.String applicationVersion)
public void setChainResolver(org.apache.ivy.plugins.resolver.ChainResolver chainResolver)
public void setIncludeJavadoc(boolean includeJavadoc)
public void setIncludeSource(boolean includeSource)
public void setMetadataRegisteredPluginNames(java.util.Set metadataRegisteredPluginNames)
public void setModuleDescriptor(org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor moduleDescriptor)
public void setOffline(boolean offline)
public void setReadPom(boolean flag)
public void setUsedConfigurations(java.util.Collection usedConfigurations)
Groovy Documentation