org.gradle.api.artifacts
Class PublishInstruction

java.lang.Object
  extended by org.gradle.api.artifacts.PublishInstruction

public class PublishInstruction
extends Object

Uploading details for artifacts produced by a project.


Constructor Summary
PublishInstruction()
          Creates a publish instruction for not uploading an module descriptor file.
PublishInstruction(boolean uploadDescriptor, File descriptorDestination)
          Creates a publish instruction.
 
Method Summary
 boolean equals(Object o)
           
 File getDescriptorDestination()
          Returns the file destination where to create the ivy.xml file.
 int hashCode()
           
 boolean isUploadDescriptor()
          Returns whether an xml module descriptor file should be uploaded or not.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishInstruction

public PublishInstruction()
Creates a publish instruction for not uploading an module descriptor file.


PublishInstruction

public PublishInstruction(boolean uploadDescriptor,
                          File descriptorDestination)
Creates a publish instruction. If uploadDescriptor is set to true and the target destination is an ivy repository, the ivy file destination needs to be specified.

Parameters:
uploadDescriptor -
descriptorDestination -
Method Detail

isUploadDescriptor

public boolean isUploadDescriptor()
Returns whether an xml module descriptor file should be uploaded or not.


getDescriptorDestination

public File getDescriptorDestination()
Returns the file destination where to create the ivy.xml file. Can be null.


equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object