public class DefaultPublishArtifact extends AbstractPublishArtifact implements ConfigurablePublishArtifact
| Constructor and Description |
|---|
DefaultPublishArtifact(String name,
String extension,
String type,
String classifier,
Date date,
File file,
Object... tasks) |
| Modifier and Type | Method and Description |
|---|---|
DefaultPublishArtifact |
builtBy(Object... tasks)
Registers some tasks which build this artifact.
|
String |
getClassifier()
Returns the classifier of this published artifact, if any.
|
Date |
getDate()
Returns the date that should be used when publishing this artifact.
|
String |
getExtension()
Returns the extension of this published artifact.
|
File |
getFile()
Returns the file of this artifact.
|
String |
getName()
Returns the name of the artifact.
|
String |
getType()
Returns the type of the published artifact.
|
void |
setClassifier(String classifier)
Sets the classifier of this artifact.
|
void |
setDate(Date date) |
void |
setExtension(String extension)
Sets the extension of this artifact.
|
void |
setFile(File file) |
void |
setName(String name)
Sets the name of this artifact.
|
void |
setType(String type)
Sets the type of this artifact.
|
getBuildDependencies, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBuildDependenciespublic DefaultPublishArtifact builtBy(Object... tasks)
ConfigurablePublishArtifactbuiltBy in interface ConfigurablePublishArtifactbuiltBy in class AbstractPublishArtifacttasks - The tasks. These are evaluated as for Task.dependsOn(Object...).public String getName()
PublishArtifactgetName in interface PublishArtifactpublic String getExtension()
PublishArtifactgetExtension in interface PublishArtifactpublic String getType()
PublishArtifactgetType in interface PublishArtifactpublic String getClassifier()
PublishArtifactgetClassifier in interface PublishArtifactpublic File getFile()
PublishArtifactgetFile in interface PublishArtifactpublic Date getDate()
PublishArtifactgetDate in interface PublishArtifactpublic void setName(String name)
ConfigurablePublishArtifactsetName in interface ConfigurablePublishArtifactname - The name. Should not be null.public void setExtension(String extension)
ConfigurablePublishArtifactsetExtension in interface ConfigurablePublishArtifactextension - The extension. Should not be null.public void setType(String type)
ConfigurablePublishArtifactsetType in interface ConfigurablePublishArtifacttype - The type. Should not be null.public void setClassifier(String classifier)
ConfigurablePublishArtifactsetClassifier in interface ConfigurablePublishArtifactclassifier - The classifier. May be null.public void setDate(Date date)
public void setFile(File file)
Copyright © 2013. All rights reserved