public class ObfArtifact
extends org.gradle.api.internal.artifacts.publish.AbstractPublishArtifact
| Constructor and Description |
|---|
ObfArtifact(org.gradle.api.tasks.bundling.AbstractArchiveTask toObf,
ArtifactSpec artifactSpec,
ReobfTask task)
Creates an obfuscated artifact for the given public artifact.
|
ObfArtifact(groovy.lang.Closure<java.lang.Object> toObf,
ArtifactSpec outputSpec,
ReobfTask task)
Creates an obfuscated artifact for the file returned by the
toObf closure. |
ObfArtifact(java.io.File toObf,
ArtifactSpec artifactSpec,
ReobfTask task)
Creates an obfuscated artifact for the given file.
|
ObfArtifact(org.gradle.api.artifacts.PublishArtifact toObf,
ArtifactSpec artifactSpec,
ReobfTask task)
Creates an obfuscated artifact for the given public artifact.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassifier()
The classifier of the obfuscated artifact.
|
org.gradle.api.file.FileCollection |
getClasspath()
The name of the obfuscated artifact.
|
java.util.Date |
getDate()
The date of the obfuscated artifact.
|
java.lang.String |
getExtension()
The extension of the obfuscated artifact.
|
java.io.File |
getFile()
The file for the obfuscated artifact, which may not yet exist.
|
java.lang.String |
getName()
The name of the obfuscated artifact.
|
java.io.File |
getToObf()
The file that is to be obfuscated.
|
java.lang.String |
getType() |
void |
setClassifier(java.lang.String classifier) |
void |
setClasspath(org.gradle.api.file.FileCollection classpath) |
void |
setDate(java.util.Date date) |
void |
setExtension(java.lang.String extension) |
void |
setFile(java.io.File file) |
void |
setName(java.lang.String name) |
void |
setType(java.lang.String type) |
public ObfArtifact(org.gradle.api.tasks.bundling.AbstractArchiveTask toObf,
ArtifactSpec artifactSpec,
ReobfTask task)
The file to obfuscate will be the file of the given artifact and the name of this obfuscated artifact will default to the name of the given artifact to obfuscate.
The artifact to obfuscate may change after being used as the source.
toObf - The artifact that is to be obfuscatedartifactSpec - The specification of how the obfuscated artifact is to be namedtask - The task(s) that will reobfuscate this jar.public ObfArtifact(org.gradle.api.artifacts.PublishArtifact toObf,
ArtifactSpec artifactSpec,
ReobfTask task)
The file to obfuscate will be the file of the given artifact and the name of this obfuscated artifact will default to the name of the given artifact to obfuscate.
The artifact to obfuscate may change after being used as the source.
toObf - The artifact that is to be obfuscatedartifactSpec - The specification of how the obfuscated artifact is to be namedtask - The task(s) that will reobfuscate this jar.public ObfArtifact(java.io.File toObf,
ArtifactSpec artifactSpec,
ReobfTask task)
toObf - The file that is to be obfuscatedartifactSpec - The specification of how the obfuscated artifact is to be namedtask - The task(s) that will reobfuscate this jar.public ObfArtifact(groovy.lang.Closure<java.lang.Object> toObf,
ArtifactSpec outputSpec,
ReobfTask task)
toObf closure.
The closures will be evaluated on demand whenever the value is needed (e.g. at generation time)
toObf - A closure that produces a File for the object to obfuscate (non File return values will be used as the path to the file)outputSpec - The specification of artifact to outputtedtask - The task(s) that will reobfuscate this jar.public java.io.File getToObf()
null if unknown at this time.public java.lang.String getName()
Defaults to the name of the obfuscated artifact file.
null if unknown at this time.public org.gradle.api.file.FileCollection getClasspath()
Defaults to the name of the obfuscated artifact file.
null if unknown at this time.public java.lang.String getExtension()
Defaults to '.jar'.
null if unknown at this time.public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getClassifier()
Defaults to the classifier of the source artifact (if obfuscating an artifact) or the given classifier at construction (if given).
null if unknown at this time.public java.util.Date getDate()
Defaults to the last modified time of the obfuscated file (if exists)
null if unknown at this time.public java.io.File getFile()
Defaults to a the getToObf() () file to obfuscate}
null if unknown at this time.public void setName(java.lang.String name)
public void setExtension(java.lang.String extension)
public void setClassifier(java.lang.String classifier)
public void setDate(java.util.Date date)
public void setFile(java.io.File file)
public void setClasspath(org.gradle.api.file.FileCollection classpath)