GenerateEclipseClasspath

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.

Properties

PropertyDescription
containers

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

defaultOutputDir

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

downloadJavadoc

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

downloadSources

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

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

outputFile

The output file to write the final configuration to.

plusConfigurations

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

sourceSets

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

variables

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

Property details

Set<String> containers

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

Containers to be added to the classpath

Default with eclipse and java plugins:
[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 eclipse and java plugins:
${project.projectDir}/bin

boolean downloadJavadoc

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 eclipse and java plugins:
false

boolean downloadSources

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 eclipse and java plugins:
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

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

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

Default with eclipse and java plugins:
[]

File outputFile

The output file to write the final configuration to.

Collection<Configuration> plusConfigurations

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

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

Default with eclipse and java plugins:
project.configurations.testRuntime

Iterable<SourceSet> sourceSets

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

The source sets to be added to the classpath.

Default with eclipse and java plugins:
project.sourceSets

Map<String, File> variables

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

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

Default with eclipse and java plugins:
[:]

Script blocks

No script blocks

Methods

MethodDescription
containers(containers)

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

variables(variables)

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

Method details

void containers(String... containers)

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

Adds containers to the .classpath.

void variables(Map<String, File> variables)

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

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