Overview | Package | Class | Deprecated | Index | Help
| Groovy Documentation
| FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD

## org.gradle.plugins.ide.eclipse
[Groovy] Class GenerateEclipseClasspath

    java.lang.Object
      org.gradle.api.internal.AbstractTask
          org.gradle.api.DefaultTask
              org.gradle.api.internal.ConventionTask
                  org.gradle.plugins.ide.api.GeneratorTask
                      org.gradle.plugins.ide.api.XmlGeneratorTask
                          org.gradle.plugins.ide.eclipse.GenerateEclipseClasspath

    class GenerateEclipseClasspath
    extends XmlGeneratorTask

Generates an Eclipse `.classpath` file. If you want to fine tune the eclipse configuration

At this moment nearly all configuration is done via EclipseClasspath.

Authors:
  Hans Dockter

Field Summary

Fields inherited from class GeneratorTask
afterConfigured, beforeConfigured, domainObject, generator

Fields inherited from class org.gradle.api.internal.ConventionTask
TASK_NAME, TASK_DESCRIPTION, TASK_GROUP, TASK_TYPE, TASK_DEPENDS_ON, TASK_OVERWRITE, TASK_ACTION

Property Summary
`EclipseClasspath` | `classpath`

Constructor Summary
`GenerateEclipseClasspath()`

Method Summary
`protected void` | `configure(Classpath xmlClasspath)`
`void` | `containers(java.lang.String... containers)` Deprecated.
`protected Classpath` | `create()`
`java.util.Set` | `getContainers()` Deprecated.
`java.io.File` | `getDefaultOutputDir()` Deprecated.
`boolean` | `getDownloadJavadoc()` Deprecated.
`boolean` | `getDownloadSources()` Deprecated.
`java.util.Collection` | `getMinusConfigurations()` Deprecated.
`java.util.Collection` | `getPlusConfigurations()` Deprecated.
`java.lang.Iterable` | `getSourceSets()` Deprecated.
`java.util.Map` | `getVariables()` Deprecated.
`void` | `setContainers(java.util.Set containers)`
`void` | `setDefaultOutputDir(java.io.File defaultOutputDir)`
`void` | `setDownloadJavadoc(boolean downloadJavadoc)`
`void` | `setDownloadSources(boolean downloadSources)`
`void` | `setMinusConfigurations(java.util.Collection minusConfigurations)`
`void` | `setPlusConfigurations(java.util.Collection plusConfigurations)`
`void` | `setSourceSets(java.lang.Iterable sourceSets)` Deprecated.
`void` | `setVariables(java.util.Map variables)`
`void` | `variables(java.util.Map variables)` Deprecated.

Methods inherited from class XmlGeneratorTask
configure, create, getXmlTransformer, withXml, withXml

Methods inherited from class GeneratorTask
beforeConfigured, beforeConfigured, getInputFile, getOutputFile, setInputFile, setOutputFile, whenConfigured, whenConfigured

Methods inherited from class org.gradle.api.internal.ConventionTask
org.gradle.api.internal.ConventionTask#conventionMapping(java.lang.String, org.gradle.api.tasks.ConventionValue), org.gradle.api.internal.ConventionTask#getConventionMapping(), org.gradle.api.internal.ConventionTask#setConventionMapping(org.gradle.api.internal.ConventionMapping), org.gradle.api.internal.ConventionTask#setProperty(java.lang.String, java.lang.Object), org.gradle.api.internal.ConventionTask#toString(), org.gradle.api.internal.ConventionTask#compareTo(org.gradle.api.Task), org.gradle.api.internal.ConventionTask#compareTo(java.lang.Object), org.gradle.api.internal.ConventionTask#getName(), org.gradle.api.internal.ConventionTask#getActions(), org.gradle.api.internal.ConventionTask#setName(java.lang.String), org.gradle.api.internal.ConventionTask#getState(), org.gradle.api.internal.ConventionTask#getPath(), org.gradle.api.internal.ConventionTask#getLogger(), org.gradle.api.internal.ConventionTask#execute(), org.gradle.api.internal.ConventionTask#configure(groovy.lang.Closure), org.gradle.api.internal.ConventionTask#configure(groovy.lang.Closure), org.gradle.api.internal.ConventionTask#getDescription(), org.gradle.api.internal.ConventionTask#isEnabled(), org.gradle.api.internal.ConventionTask#captureStandardOutput(org.gradle.api.logging.LogLevel), org.gradle.api.internal.ConventionTask#disableStandardOutputCapture(), org.gradle.api.internal.ConventionTask#property(java.lang.String), org.gradle.api.internal.ConventionTask#setEnabled(boolean), org.gradle.api.internal.ConventionTask#setDescription(java.lang.String), org.gradle.api.internal.ConventionTask#getProject(), org.gradle.api.internal.ConventionTask#getGroup(), org.gradle.api.internal.ConventionTask#setGroup(java.lang.String), org.gradle.api.internal.ConventionTask#dependsOn([Ljava.lang.Object;), org.gradle.api.internal.ConventionTask#getAnt(), org.gradle.api.internal.ConventionTask#getConvention(), org.gradle.api.internal.ConventionTask#hasProperty(java.lang.String), org.gradle.api.internal.ConventionTask#getLogging(), org.gradle.api.internal.ConventionTask#getExtensions(), org.gradle.api.internal.ConventionTask#executeWithoutThrowingTaskFailure(), org.gradle.api.internal.ConventionTask#setActions(java.util.List), org.gradle.api.internal.ConventionTask#getTaskDependencies(), org.gradle.api.internal.ConventionTask#getTaskDependencies(), org.gradle.api.internal.ConventionTask#getDependsOn(), org.gradle.api.internal.ConventionTask#setDependsOn(java.lang.Iterable), org.gradle.api.internal.ConventionTask#onlyIf(groovy.lang.Closure), org.gradle.api.internal.ConventionTask#onlyIf(org.gradle.api.specs.Spec), org.gradle.api.internal.ConventionTask#setOnlyIf(org.gradle.api.specs.Spec), org.gradle.api.internal.ConventionTask#setOnlyIf(groovy.lang.Closure), org.gradle.api.internal.ConventionTask#setDidWork(boolean), org.gradle.api.internal.ConventionTask#getDidWork(), org.gradle.api.internal.ConventionTask#doFirst(org.gradle.api.Action), org.gradle.api.internal.ConventionTask#doFirst(groovy.lang.Closure), org.gradle.api.internal.ConventionTask#doLast(org.gradle.api.Action), org.gradle.api.internal.ConventionTask#doLast(groovy.lang.Closure), org.gradle.api.internal.ConventionTask#leftShift(groovy.lang.Closure), org.gradle.api.internal.ConventionTask#deleteAllActions(), org.gradle.api.internal.ConventionTask#getEnabled(), org.gradle.api.internal.ConventionTask#dependsOnTaskDidWork(), org.gradle.api.internal.ConventionTask#getInputs(), org.gradle.api.internal.ConventionTask#getOutputs(), org.gradle.api.internal.ConventionTask#getOutputs(), org.gradle.api.internal.ConventionTask#getTemporaryDir(), org.gradle.api.internal.ConventionTask#setProject(org.gradle.api.Project), org.gradle.api.internal.ConventionTask#getStandardOutputCapture(), org.gradle.api.internal.ConventionTask#getAdditionalProperties(), org.gradle.api.internal.ConventionTask#getDynamicObjectHelper(), org.gradle.api.internal.ConventionTask#getAsDynamicObject(), org.gradle.api.internal.ConventionTask#addValidator(org.gradle.api.internal.tasks.execution.TaskValidator), org.gradle.api.internal.ConventionTask#getValidators(), org.gradle.api.internal.ConventionTask#getExecuter(), org.gradle.api.internal.ConventionTask#setExecuter(org.gradle.api.internal.tasks.TaskExecuter), org.gradle.api.internal.ConventionTask#getOnlyIf(), org.gradle.api.internal.ConventionTask#injectIntoNewInstance(org.gradle.api.internal.project.ProjectInternal, java.lang.String, java.util.concurrent.Callable), org.gradle.api.internal.ConventionTask#wait(long), org.gradle.api.internal.ConventionTask#wait(long, int), org.gradle.api.internal.ConventionTask#wait(), org.gradle.api.internal.ConventionTask#equals(java.lang.Object), org.gradle.api.internal.ConventionTask#hashCode(), org.gradle.api.internal.ConventionTask#getClass(), org.gradle.api.internal.ConventionTask#notify(), org.gradle.api.internal.ConventionTask#notifyAll()

Property Detail

### classpath

    EclipseClasspath classpath

Constructor Detail

### GenerateEclipseClasspath

    GenerateEclipseClasspath()

Method Detail

### configure

    @Override
    protected void configure(Classpath xmlClasspath)

### containers

    void containers(java.lang.String... containers)

  Deprecated. Please use #eclipse.classpath.containers. See examples in EclipseClasspath.

  Adds containers to the .classpath.

  Parameters:
    `containers` - the container names to be added to the .classpath.

### create

    @Override
    protected Classpath create()

### getContainers

    java.util.Set getContainers()

  Deprecated. Please use #eclipse.classpath.containers. See examples in EclipseClasspath.

  Containers to be added to the classpath

### getDefaultOutputDir

    java.io.File getDefaultOutputDir()

  Deprecated. Please use #eclipse.classpath.defaultOutputDir. See examples in EclipseClasspath.

  The default output directory for eclipse generated files, eg classes.

### getDownloadJavadoc

    boolean getDownloadJavadoc()

  Deprecated. Please use #eclipse.classpath.downloadJavadoc. See examples in EclipseClasspath.

  Whether to download and add javadocs associated with the dependency jars. Defaults to false.

### getDownloadSources

    boolean getDownloadSources()

  Deprecated. Please use #eclipse.classpath.downloadSources. See examples in EclipseClasspath.

  Whether to download and add sources associated with the dependency jars. Defaults to true.

### getMinusConfigurations

    java.util.Collection getMinusConfigurations()

  Deprecated. Please use #eclipse.classpath.minusConfigurations. See examples in EclipseClasspath.

  The configurations which files are to be excluded from the classpath entries.

### getPlusConfigurations

    java.util.Collection getPlusConfigurations()

  Deprecated. Please use #eclipse.classpath.plusConfigurations. See examples in EclipseClasspath.

  The configurations which files are to be transformed into classpath entries.

### getSourceSets

    java.lang.Iterable getSourceSets()

  Deprecated. Please use #eclipse.classpath.sourceSets. See examples in EclipseClasspath.

  The source sets to be added to the classpath.

### getVariables

    java.util.Map getVariables()

  Deprecated. Please use #eclipse.pathVariables. See examples in EclipseClasspath.

  Adds path variables to be used for replacing absolute paths in classpath entries.

  Parameters:
    `pathVariables` - A map with String->File pairs.

### setContainers

    void setContainers(java.util.Set containers)

### setDefaultOutputDir

    void setDefaultOutputDir(java.io.File defaultOutputDir)

### setDownloadJavadoc

    void setDownloadJavadoc(boolean downloadJavadoc)

### setDownloadSources

    void setDownloadSources(boolean downloadSources)

### setMinusConfigurations

    void setMinusConfigurations(java.util.Collection minusConfigurations)

### setPlusConfigurations

    void setPlusConfigurations(java.util.Collection plusConfigurations)

### setSourceSets

    void setSourceSets(java.lang.Iterable sourceSets)

  Deprecated. Please use #eclipse.classpath.sourceSets. See examples in EclipseClasspath.

  The source sets to be added to the classpath.

### setVariables

    void setVariables(java.util.Map variables)

### variables

    void variables(java.util.Map variables)

  Deprecated. Please use #eclipse.pathVariables. See examples in EclipseClasspath.

  Adds variables to be used for replacing absolute paths in classpath entries.

  Parameters:
    `variables` - A map where the keys are the variable names and the values are the variable values.

Groovy Documentation