Groovy Documentation

org.gradle.api.publish.ivy.tasks
[Java] Class GenerateIvyDescriptor

java.lang.Object
  org.gradle.api.internal.AbstractTask
      org.gradle.api.DefaultTask
          org.gradle.api.publish.ivy.tasks.GenerateIvyDescriptor

@Incubating
public class GenerateIvyDescriptor
extends DefaultTask

Generates an Ivy XML Module Descriptor file.

Since:
1.4


Constructor Summary
GenerateIvyDescriptor(FileResolver fileResolver, ArtifactPublicationServices publicationServices)

 
Method Summary
void doGenerate()

IvyModuleDescriptor getDescriptor()

The module descriptor metadata.

PublishArtifact getDescriptorArtifact()

File getDestination()

The file the descriptor will be written to.

Action getXmlAction()

void setDescriptor(IvyModuleDescriptor descriptor)

void setDestination(Object destination)

Sets the destination the descriptor will be written to.

void setXmlAction(Action xmlAction)

 

Constructor Detail

GenerateIvyDescriptor

@Inject
public GenerateIvyDescriptor(FileResolver fileResolver, ArtifactPublicationServices publicationServices)


 
Method Detail

doGenerate

@TaskAction
public void doGenerate()


getDescriptor

public IvyModuleDescriptor getDescriptor()
The module descriptor metadata.
Returns:
The module descriptor.


getDescriptorArtifact

public PublishArtifact getDescriptorArtifact()


getDestination

@OutputFile
public File getDestination()
The file the descriptor will be written to.
Returns:
The file the descriptor will be written to


getXmlAction

public Action getXmlAction()


setDescriptor

public void setDescriptor(IvyModuleDescriptor descriptor)


setDestination

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.


setXmlAction

public void setXmlAction(Action xmlAction)


 

Gradle API 1.4