Package: org.gradle.plugins.ide.api

## [Groovy] Class PropertiesFileContentMerger

- org.gradle.plugins.ide.api.PropertiesFileContentMerger

- Models the generation/parsing/merging capabilities. Adds properties-related hooks.

  For examples see docs for EclipseJdt and others.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `org.gradle.api.internal.PropertiesTransformer` | `transformer`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `PropertiesFileContentMerger (org.gradle.api.internal.PropertiesTransformer transformer)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `withProperties(groovy.lang.Closure closure)` Adds a closure to be called when the file has been created.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class FileContentMerger` | `beforeMerged, whenMerged`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Property Detail

    - #### org.gradle.api.internal.PropertiesTransformer transformer

  - ### Constructor Detail

    - #### PropertiesFileContentMerger(org.gradle.api.internal.PropertiesTransformer transformer)

  - ### Method Detail

    - #### void withProperties(groovy.lang.Closure closure)

      Adds a closure to be called when the file has been created. The Properties are passed to the closure as a parameter. The closure can modify the Properties before they are written to the output file.

      For examples see docs for EclipseJdt and others.

      Parameters:
        `closure` - The closure to execute when the Properties have been created.