Groovy Documentation

org.gradle.api.artifacts
[Java] Class PublishInstruction

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

public class PublishInstruction

Uploading details for artifacts produced by a project.

Authors:
Hans Dockter


Constructor Summary
PublishInstruction()

Creates a publish instruction for not uploading an module descriptor file.

PublishInstruction(boolean uploadDescriptor, java.io.File descriptorDestination)

Creates a publish instruction.

 
Method Summary
boolean equals(java.lang.Object o)

java.io.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
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

PublishInstruction

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


PublishInstruction

public PublishInstruction(boolean uploadDescriptor, java.io.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

equals

@Override
public boolean equals(java.lang.Object o)


getDescriptorDestination

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


hashCode

@Override
public int hashCode()


isUploadDescriptor

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


 

Groovy Documentation