|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.internal.artifacts.publish.AbstractPublishArtifact
com.github.abrarsyed.gmcp.tasks.obfuscate.ObfArtifact
class ObfArtifact extends AbstractPublishArtifact
Property Summary | |
---|---|
java.lang.String |
classifier
|
java.util.Date |
date
|
java.lang.String |
extension
|
java.io.File |
file
|
java.lang.String |
name
|
ArtifactSpec |
outputSpec
|
java.io.File |
srg
|
PublishArtifact |
toObfArtifact
|
java.lang.String |
type
|
Constructor Summary | |
ObfArtifact(PublishArtifact toObf, ArtifactSpec artifactSpec, ReobfTask task)
Creates an obfuscated artifact for the given public artifact. |
|
ObfArtifact(java.io.File toObf, ArtifactSpec artifactSpec, ReobfTask task)
Creates an obfuscated artifact for the given file. |
|
ObfArtifact(groovy.lang.Closure toObf, ArtifactSpec outputSpec, ReobfTask task)
Creates an obfuscated artifact for the file returned by the toObf closure. |
Method Summary | |
---|---|
void
|
generate()
Obfuscates the file |
java.lang.String
|
getClassifier()
The classifier 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()
|
Property Detail |
---|
java.lang.String classifier
java.util.Date date
java.lang.String extension
java.io.File file
java.lang.String name
final ArtifactSpec outputSpec
java.io.File srg
final PublishArtifact toObfArtifact
java.lang.String type
Constructor Detail |
---|
ObfArtifact(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 invoke generate() on this jar (optional)
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 invoke generate() on this jar (optional)
ObfArtifact(groovy.lang.Closure toObf, ArtifactSpec outputSpec, ReobfTask task)
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 invoke generate() on this jar (optional)
Method Detail |
---|
void generate()
java.lang.String getClassifier()
Defaults to the classifier of the source artifact (if obfuscating an artifact) or the given classifier at construction (if given).
java.util.Date getDate()
Defaults to the last modified time of the obfuscated file (if exists)
java.lang.String getExtension()
Defaults to '.jar'.
java.io.File getFile()
Defaults to a the getToObf() () file to obfuscate}
java.lang.String getName()
Defaults to the name of the obfuscated artifact file.
java.io.File getToObf()
java.lang.String getType()
Groovy Documentation