Package: org.gradle.api.publish.ivy.tasks

## [Java] Class GenerateIvyDescriptor

- org.gradle.api.publish.ivy.tasks.GenerateIvyDescriptor

- Generates an Ivy XML Module Descriptor file.

  Since:
    1.4

- - ### Constructor Summary

    Constructors
    Constructor and description
    `GenerateIvyDescriptor ()`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `void` | `doGenerate()`
    `IvyModuleDescriptorSpec` | `getDescriptor()` The module descriptor metadata.
    `File` | `getDestination()` The file the descriptor will be written to.
    `protected FileResolver` | `getFileResolver()`
    `void` | `setDescriptor(IvyModuleDescriptorSpec descriptor)`
    `void` | `setDestination(Object destination)` Sets the destination the descriptor will be written to.

- - ### Constructor Detail

    - #### public GenerateIvyDescriptor()

  - ### Method Detail

    - #### @TaskAction public void doGenerate()

    - #### public IvyModuleDescriptorSpec getDescriptor()

      The module descriptor metadata.

      Returns:
        The module descriptor.

    - #### @OutputFile public File getDestination()

      The file the descriptor will be written to.

      Returns:
        The file the descriptor will be written to

    - #### @Inject protected FileResolver getFileResolver()

    - #### public void setDescriptor(IvyModuleDescriptorSpec descriptor)

    - #### public void setDestination(Object destination)

      Sets the destination the descriptor will be written to. The value is resolved with Project.file

      Parameters:
        `destination` - The file the descriptor will be written to.