| API Documentation: | GenerateEclipseClasspath |
|---|
Generates an Eclipse .classpath file. If you want to fine tune the eclipse configuration
At this moment nearly all configuration is done via EclipseClasspath.
| Property | Description |
containers | Deprecated. Please use #eclipse.classpath.containers. See examples in |
defaultOutputDir | Deprecated. Please use #eclipse.classpath.defaultOutputDir. See examples in |
downloadJavadoc | Deprecated. Please use #eclipse.classpath.downloadJavadoc. See examples in |
downloadSources | Deprecated. Please use #eclipse.classpath.downloadSources. See examples in |
inputFile | The input file to load the initial configuration from. Defaults to the output file. If the specified input file does not exist, this task uses some default initial configuration. |
minusConfigurations | Deprecated. Please use #eclipse.classpath.minusConfigurations. See examples in |
outputFile | The output file to write the final configuration to. |
plusConfigurations | Deprecated. Please use #eclipse.classpath.plusConfigurations. See examples in |
sourceSets | Deprecated. Please use #eclipse.classpath.sourceSets. See examples in |
variables | Deprecated. Please use #eclipse.pathVariables. See examples in |
Deprecated. Please use #eclipse.classpath.containers. See examples in EclipseClasspath.
Containers to be added to the classpath
- Default with
eclipseandjavaplugins: - [JRE container]
File defaultOutputDir
Deprecated. Please use #eclipse.classpath.defaultOutputDir. See examples in EclipseClasspath.
The default output directory for eclipse generated files, eg classes.
- Default with
eclipseandjavaplugins: ${project.projectDir}/bin
Deprecated. Please use #eclipse.classpath.downloadJavadoc. See examples in EclipseClasspath.
Whether to download and add javadocs associated with the dependency jars. Defaults to false.
- Default with
eclipseandjavaplugins: false
Deprecated. Please use #eclipse.classpath.downloadSources. See examples in EclipseClasspath.
Whether to download and add sources associated with the dependency jars. Defaults to true.
- Default with
eclipseandjavaplugins: true
File inputFile
The input file to load the initial configuration from. Defaults to the output file. If the specified input file does not exist, this task uses some default initial configuration.
Collection<Configuration> minusConfigurations
Collection<Configuration>Deprecated. Please use #eclipse.classpath.minusConfigurations. See examples in EclipseClasspath.
The configurations which files are to be excluded from the classpath entries.
- Default with
eclipseandjavaplugins: []
File outputFile
The output file to write the final configuration to.
- Default with
eclipseandjavaplugins: ${project.projectDir}/.classpath
Collection<Configuration> plusConfigurations
Collection<Configuration>Deprecated. Please use #eclipse.classpath.plusConfigurations. See examples in EclipseClasspath.
The configurations which files are to be transformed into classpath entries.
- Default with
eclipseandjavaplugins: project.configurations.testRuntime
Deprecated. Please use #eclipse.classpath.sourceSets. See examples in EclipseClasspath.
The source sets to be added to the classpath.
- Default with
eclipseandjavaplugins: project.sourceSets
Deprecated. Please use #eclipse.pathVariables. See examples in EclipseClasspath.
Adds path variables to be used for replacing absolute paths in classpath entries.
- Default with
eclipseandjavaplugins: [:]
| Method | Description |
beforeConfigured(closure) | Deprecated. Moved to the relevant type. Where? For starters, see examples in |
beforeConfigured(action) | Deprecated. Moved to the relevant type. Where? For starters, see examples in |
containers(containers) | Deprecated. Please use #eclipse.classpath.containers. See examples in |
variables(variables) | Deprecated. Please use #eclipse.pathVariables. See examples in |
whenConfigured(closure) | Deprecated. Moved to the relevant type. Where? For starters, see examples in |
whenConfigured(action) | Deprecated. Moved to the relevant type. Where? For starters, see examples in |
withXml(closure) | Deprecated. Moved to the relevant type. Where? For starters, see examples in |
withXml(action) | Deprecated. Moved to the relevant type. Where? For starters, see examples in |
void beforeConfigured(Closure closure)
Deprecated. Moved to the relevant type. Where? For starters, see examples in IdeaProject or
EclipseProject.
Adds a closure to be called before the domain object is configured by this task. The domain object is passed as a parameter to the closure.
The closure is executed after the domain object has been loaded from the input file. Using this method allows you to change the domain object in some way before the task configures it.
void beforeConfigured(Action<? super T> action)
Action<? super T>Deprecated. Moved to the relevant type. Where? For starters, see examples in IdeaProject or
EclipseProject.
Adds an action to be called before the domain object is configured by this task. The domain object is passed as a parameter to the action.
The action is executed after the domain object has been loaded from the input file. Using this method allows you to change the domain object in some way before the task configures it.
void containers(String... containers)
String...Deprecated. Please use #eclipse.classpath.containers. See examples in EclipseClasspath.
Adds containers to the .classpath.
Deprecated. Please use #eclipse.pathVariables. See examples in EclipseClasspath.
Adds variables to be used for replacing absolute paths in classpath entries.
void whenConfigured(Closure closure)
Deprecated. Moved to the relevant type. Where? For starters, see examples in IdeaProject or
EclipseProject.
Adds a closure to be called after the domain object has been configured by this task. The domain object is passed as a parameter to the closure.
The closure is executed just before the domain object is written to the output file. Using this method allows you to override the configuration applied by this task.
void whenConfigured(Action<? super T> action)
Action<? super T>Deprecated. Moved to the relevant type. Where? For starters, see examples in IdeaProject or
EclipseProject.
Adds an action to be called after the domain object has been configured by this task. The domain object is passed as a parameter to the action.
The action is executed just before the domain object is written to the output file. Using this method allows you to override the configuration applied by this task.
void withXml(Closure closure)
Deprecated. Moved to the relevant type. Where? For starters, see examples in IdeaProject or
EclipseProject.
Adds a closure to be called when the XML document has been created. The XML is passed to the closure as a
parameter in form of a XmlProvider. The closure can modify the XML before
it is written to the output file.
void withXml(Action<? super XmlProvider> action)
Action<? super XmlProvider>Deprecated. Moved to the relevant type. Where? For starters, see examples in IdeaProject or
EclipseProject.
Adds an action to be called when the XML document has been created. The XML is passed to the action as a
parameter in form of a XmlProvider. The action can modify the XML before
it is written to the output file.