# GenerateEclipseJdt

API Documentation: | `GenerateEclipseJdt`

Generates the Eclipse JDT configuration file. If you want to fine tune the eclipse configuration

At this moment nearly all configuration is done via `EclipseJdt`.

### Properties

Property | Description
`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.
`outputFile` | The output file to write the final configuration to.
`sourceCompatibility` | Deprecated. Please use #eclipse.jdt.sourceCompatibility. See examples in `EclipseJdt`.
`targetCompatibility` | Deprecated. Please use #eclipse.jdt.targetCompatibility. See examples in `EclipseJdt`.

### Property details

#### `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.

#### `File` `outputFile`

The output file to write the final configuration to.

Default with `eclipse` and `java` plugins:
  ``${project.projectDir}`/.settings/org.eclipse.jdt.core.prefs`

#### `JavaVersion` `sourceCompatibility`

Deprecated. Please use #eclipse.jdt.sourceCompatibility. See examples in `EclipseJdt`.

The source Java language level.

Default with `eclipse` and `java` plugins:
  `project.sourceCompatibility`

#### `JavaVersion` `targetCompatibility`

Deprecated. Please use #eclipse.jdt.targetCompatibility. See examples in `EclipseJdt`.

The target JVM to generate `.class` files for.

Default with `eclipse` and `java` plugins:
  `project.targetCompatibility`

### Script blocks

No script blocks

### Methods

Method | Description
`beforeConfigured(closure)` | Deprecated. Moved to the relevant type. Where? For starters, see examples in `IdeaProject` or `EclipseProject`.
`beforeConfigured(action)` | Deprecated. Moved to the relevant type. Where? For starters, see examples in `IdeaProject` or `EclipseProject`.
`whenConfigured(closure)` | Deprecated. Moved to the relevant type. Where? For starters, see examples in `IdeaProject` or `EclipseProject`.
`whenConfigured(action)` | Deprecated. Moved to the relevant type. Where? For starters, see examples in `IdeaProject` or `EclipseProject`.

### Method details

#### `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)

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

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.