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

java.lang.Object
  extended by org.gradle.api.internal.AbstractTask
      extended by org.gradle.api.DefaultTask
          extended by org.gradle.api.publish.ivy.tasks.GenerateIvyDescriptor
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, ExtensionAware, Task, org.gradle.util.Configurable<Task>

@Incubating
public class GenerateIvyDescriptor
extends DefaultTask

Generates an Ivy XML Module Descriptor file.

Since:
1.4

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer
 
Field Summary
 
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
 
Constructor Summary
GenerateIvyDescriptor(org.gradle.api.internal.file.FileResolver fileResolver, org.gradle.api.internal.artifacts.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<? super XmlProvider> getXmlAction()
           
 void setDescriptor(IvyModuleDescriptor descriptor)
           
 void setDestination(Object destination)
          Sets the destination the descriptor will be written to.
 void setXmlAction(Action<? super XmlProvider> xmlAction)
           
 
Methods inherited from class org.gradle.api.internal.AbstractTask
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getGroup, getInputs, getLogger, getLogging, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getStandardOutputCapture, getState, getStateInternal, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setGroup, setName, setOnlyIf, setOnlyIf, setProject, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenerateIvyDescriptor

@Inject
public GenerateIvyDescriptor(org.gradle.api.internal.file.FileResolver fileResolver,
                                    org.gradle.api.internal.artifacts.ArtifactPublicationServices publicationServices)
Method Detail

getDescriptor

public IvyModuleDescriptor getDescriptor()
The module descriptor metadata.

Returns:
The module descriptor.

setDescriptor

public void setDescriptor(IvyModuleDescriptor descriptor)

getDestination

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

Returns:
The file the descriptor will be written to

setDestination

public void setDestination(Object destination)
Sets the destination the descriptor will be written to. The value is resolved with Project.file(Object)

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

getXmlAction

public Action<? super XmlProvider> getXmlAction()

setXmlAction

public void setXmlAction(Action<? super XmlProvider> xmlAction)

getDescriptorArtifact

public PublishArtifact getDescriptorArtifact()

doGenerate

public void doGenerate()