Groovy Documentation

org.codehaus.groovy.grails.resolve
[Java] Class AbstractIvyDependencyManager

java.lang.Object
  org.codehaus.groovy.grails.resolve.AbstractIvyDependencyManager

@SuppressWarnings("serial")
public abstract class AbstractIvyDependencyManager
extends java.lang.Object

Base class for IvyDependencyManager with some logic implemented in Java.

Authors:
Graeme Rocher
Since:
1.3


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 org.apache.ivy.core.module.descriptor.Configuration TEST_CONFIGURATION

protected java.lang.String applicationName

protected java.lang.String applicationVersion

protected BuildSettings buildSettings

protected String[] configurationNames

protected java.util.Set dependencies

protected java.util.Set dependencyDescriptors

protected boolean hasApplicationDependencies

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.Set pluginDependencyNames

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()

java.util.Map getConfigurationMappings()

String[] getConfigurationNames()

java.util.Set getDependencies()

Obtains a list of dependencies defined in the project

org.apache.ivy.core.settings.IvySettings getIvySettings()

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 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

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 setMetadataRegisteredPluginNames(java.util.Set metadataRegisteredPluginNames)

void setModuleDescriptor(org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor moduleDescriptor)

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

ALL_CONFIGURATIONS

public static java.util.List ALL_CONFIGURATIONS


BUILD_CONFIGURATION

public static org.apache.ivy.core.module.descriptor.Configuration BUILD_CONFIGURATION


COMPILE_CONFIGURATION

public static org.apache.ivy.core.module.descriptor.Configuration COMPILE_CONFIGURATION


DOCS_CONFIGURATION

public static org.apache.ivy.core.module.descriptor.Configuration DOCS_CONFIGURATION


PROVIDED_CONFIGURATION

public static org.apache.ivy.core.module.descriptor.Configuration PROVIDED_CONFIGURATION


RUNTIME_CONFIGURATION

public static org.apache.ivy.core.module.descriptor.Configuration RUNTIME_CONFIGURATION


TEST_CONFIGURATION

public static org.apache.ivy.core.module.descriptor.Configuration TEST_CONFIGURATION


applicationName

protected java.lang.String applicationName


applicationVersion

protected java.lang.String applicationVersion


buildSettings

protected final BuildSettings buildSettings


configurationNames

protected String[] configurationNames


dependencies

protected java.util.Set dependencies


dependencyDescriptors

protected java.util.Set dependencyDescriptors


hasApplicationDependencies

protected boolean hasApplicationDependencies


ivySettings

protected final org.apache.ivy.core.settings.IvySettings ivySettings


metadata

protected final Metadata metadata


metadataRegisteredPluginNames

protected java.util.Set metadataRegisteredPluginNames


moduleDescriptor

protected org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor moduleDescriptor


modules

protected java.util.Set modules


orgToDepMap

protected java.util.Map orgToDepMap


pluginDependencyDescriptors

protected java.util.Set pluginDependencyDescriptors


pluginDependencyNames

protected java.util.Set pluginDependencyNames


pluginNameToDescriptorMap

protected java.util.Map pluginNameToDescriptorMap


readPom

protected boolean readPom


usedConfigurations

protected java.util.Collection usedConfigurations


 
Constructor Detail

AbstractIvyDependencyManager

public AbstractIvyDependencyManager(org.apache.ivy.core.settings.IvySettings ivySettings, BuildSettings buildSettings, Metadata metadata)


 
Method Detail

configureDependencyDescriptor

public void configureDependencyDescriptor(EnhancedDefaultDependencyDescriptor dependencyDescriptor, java.lang.String scope)
deprecated:
use registerDependency(String, EnhancedDefaultDependencyDescriptor)


configureDependencyDescriptor

public void configureDependencyDescriptor(EnhancedDefaultDependencyDescriptor dependencyDescriptor, java.lang.String scope, boolean pluginMode)
deprecated:
use registerDependency(String, EnhancedDefaultDependencyDescriptor) or registerPluginDependency(String EnhancedDefaultDependencyDescriptor)


createExcludeArtifactId

protected org.apache.ivy.core.module.id.ArtifactId createExcludeArtifactId(java.lang.String excludeName)


createExcludeArtifactId

protected org.apache.ivy.core.module.id.ArtifactId createExcludeArtifactId(java.lang.String excludeName, java.lang.String group)


createModuleDescriptor

public org.apache.ivy.core.module.descriptor.ModuleDescriptor createModuleDescriptor()


getApplicationName

public java.lang.String getApplicationName()


getApplicationVersion

public java.lang.String getApplicationVersion()


getConfigurationMappings

public java.util.Map getConfigurationMappings()


getConfigurationNames

public String[] getConfigurationNames()


getDependencies

public java.util.Set getDependencies()
Obtains a list of dependencies defined in the project


getIvySettings

public org.apache.ivy.core.settings.IvySettings getIvySettings()


getMetadataRegisteredPluginNames

public java.util.Set getMetadataRegisteredPluginNames()


getModuleDescriptor

public org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor getModuleDescriptor()


getPluginDependencyDescriptor

public org.apache.ivy.core.module.descriptor.DependencyDescriptor getPluginDependencyDescriptor(java.lang.String pluginName)
Obtains a particular DependencyDescriptor by the plugin name
Parameters:
pluginName - The plugin name
Returns:
A DependencyDescriptor or null


getPluginDependencyNames

public java.util.Set getPluginDependencyNames()
Obtains a set of plugins this application is dependent onb
Returns:
A set of plugins names


getPluginExcludes

public java.util.Set getPluginExcludes(java.lang.String plugin)


getReadPom

public boolean getReadPom()


getUsedConfigurations

public java.util.Collection getUsedConfigurations()


hasApplicationDependencies

public boolean hasApplicationDependencies()
Returns true if the application has any dependencies that are not inherited from the framework or other plugins


isExcludedFromPlugin

public boolean isExcludedFromPlugin(java.lang.String plugin, java.lang.String dependencyName)


isExcludedFromPlugin

public boolean isExcludedFromPlugin(org.apache.ivy.core.module.descriptor.DependencyDescriptor currentPlugin, org.apache.ivy.core.module.id.ArtifactId dependency)


isPluginTransitive

public boolean isPluginTransitive(java.lang.String pluginName)
Returns whether a plugin is transitive, ie whether its dependencies are resolved transitively
Parameters:
pluginName - The name of the plugin
Returns:
True if the plugin is transitive


isPluginTransitivelyIncluded

public boolean isPluginTransitivelyIncluded(java.lang.String pluginName)
Whether the plugin is directly included or a transitive dependency of another plugin
Parameters:
pluginName - The plugin name
Returns:
True if is transitively included


parseDependencies

public void parseDependencies(groovy.lang.Closure definition)
Parses the Ivy DSL definition


parseDependencies

public void parseDependencies(java.lang.String pluginName, groovy.lang.Closure definition)
Parses dependencies of a plugin
Parameters:
pluginName - the name of the plugin
definition - the Ivy DSL definition


readDependenciesFromPOM

public DependencyDescriptor[] readDependenciesFromPOM()


registerDependency

public void registerDependency(java.lang.String scope, EnhancedDefaultDependencyDescriptor descriptor)
Registers a JAR dependency with the dependency manager.
See Also:
registerPluginDependency(String, EnhancedDefaultDependencyDescriptor)


registerPluginDependency

public void registerPluginDependency(java.lang.String scope, EnhancedDefaultDependencyDescriptor descriptor)
Registers a plugin dependency (as in Grails plugin).
See Also:
registerDependency(String, EnhancedDefaultDependencyDescriptor)


setApplicationName

public void setApplicationName(java.lang.String applicationName)


setApplicationVersion

public void setApplicationVersion(java.lang.String applicationVersion)


setMetadataRegisteredPluginNames

public void setMetadataRegisteredPluginNames(java.util.Set metadataRegisteredPluginNames)


setModuleDescriptor

public void setModuleDescriptor(org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor moduleDescriptor)


setReadPom

public void setReadPom(boolean flag)


setUsedConfigurations

public void setUsedConfigurations(java.util.Collection usedConfigurations)


 

Groovy Documentation