类 ReobfTask
java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
net.minecraftforge.gradle.tasks.user.reobf.ReobfTask
- 所有已实现的接口:
Comparable<org.gradle.api.Task>,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.Named,org.gradle.api.plugins.ExtensionAware,org.gradle.api.Task,org.gradle.util.Configurable<org.gradle.api.Task>
public class ReobfTask
extends org.gradle.api.DefaultTask
-
嵌套类概要
从接口继承的嵌套类/接口 org.gradle.api.Named
org.gradle.api.Named.Namer -
字段概要
从接口继承的字段 org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddExtraSrgFile(Object thing) voiddoTask()Generates the signature files.org.gradle.api.file.FileCollectionorg.gradle.api.NamedDomainObjectSet<ObfArtifact>getSrg()booleanvoidConfigures the task to reobf each of the given filesvoidConfigures the task to reobf each of the given filesvoidreobf(File file, org.gradle.api.Action<ArtifactSpec> artifactSpec) voidreobf(org.gradle.api.artifacts.Configuration... configurations) Configures the task to obfuscate every artifact of the given configurationsvoidreobf(org.gradle.api.artifacts.Configuration configuration, groovy.lang.Closure<Object> artifactSpec) Configures the task to obfuscate every artifact of the given configurationsvoidreobf(org.gradle.api.artifacts.PublishArtifact... publishArtifacts) Configures the task to sign each of the given artifactsvoidreobf(org.gradle.api.artifacts.PublishArtifact publishArtifact, groovy.lang.Closure<Object> artifactSpec) Configures the task to sign each of the given artifactsvoidreobf(org.gradle.api.artifacts.PublishArtifact art, org.gradle.api.Action<ArtifactSpec> artifactSpec) voidreobf(org.gradle.api.Task... tasks) Configures the task to sign the archive produced for each of the given tasks (which must be archive tasks).voidvoidreobf(org.gradle.api.Task task, org.gradle.api.Action<ArtifactSpec> artifactSpec) voidsetDeobfFile(DelayedFile deobfFile) voidsetExceptorCfg(DelayedFile file) voidsetExtraSrg(List<String> extraSrg) voidsetFieldCsv(DelayedFile fieldCsv) voidsetMcVersion(DelayedString mcVersion) voidsetMethodCsv(DelayedFile methodCsv) voidsetRecompFile(DelayedFile recompFile) voidvoidsetSrg(DelayedFile srg) voidvoidvoidsetUseRetroGuard(boolean useRG) 从类继承的方法 org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService从类继承的方法 org.gradle.api.internal.AbstractTask
acceptServiceReferences, appendParallelSafeAction, doNotTrackState, doNotTrackStateIf, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonsNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions, setImpliesSubProjects从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.gradle.api.Task
doNotTrackState, notCompatibleWithConfigurationCache
-
构造器详细资料
-
ReobfTask
public ReobfTask()
-
-
方法详细资料
-
reobf
-
reobf
-
reobf
public void reobf(org.gradle.api.Task... tasks) Configures the task to sign the archive produced for each of the given tasks (which must be archive tasks).- 参数:
tasks- tasks
-
reobf
public void reobf(org.gradle.api.artifacts.PublishArtifact art, org.gradle.api.Action<ArtifactSpec> artifactSpec) -
reobf
public void reobf(org.gradle.api.artifacts.PublishArtifact publishArtifact, groovy.lang.Closure<Object> artifactSpec) Configures the task to sign each of the given artifacts- 参数:
publishArtifact- artifactartifactSpec- configuration closure
-
reobf
public void reobf(org.gradle.api.artifacts.PublishArtifact... publishArtifacts) Configures the task to sign each of the given artifacts- 参数:
publishArtifacts- artifacts
-
reobf
-
reobf
Configures the task to reobf each of the given files- 参数:
file- fileartifactSpec- configuration closure
-
reobf
Configures the task to reobf each of the given files- 参数:
files- files
-
reobf
public void reobf(org.gradle.api.artifacts.Configuration configuration, groovy.lang.Closure<Object> artifactSpec) Configures the task to obfuscate every artifact of the given configurations- 参数:
configuration- configartifactSpec- configuration closure
-
reobf
public void reobf(org.gradle.api.artifacts.Configuration... configurations) Configures the task to obfuscate every artifact of the given configurations- 参数:
configurations- configs
-
doTask
Generates the signature files.- 抛出:
Exception- Becuase of FileIO and because retroguard throws an Exception
-
getUseRetroGuard
public boolean getUseRetroGuard() -
setUseRetroGuard
public void setUseRetroGuard(boolean useRG) -
getMcVersion
-
setMcVersion
-
getDeobfFile
-
setDeobfFile
-
getRecompFile
-
setRecompFile
-
getExceptorCfg
-
setExceptorCfg
-
getExtraSrg
-
setExtraSrg
-
addExtraSrgFile
-
getExtraSrgFiles
@InputFiles public org.gradle.api.file.FileCollection getExtraSrgFiles() -
getSrg
-
setSrg
-
setSrg
-
setSrgSrg
public void setSrgSrg() -
setSrgMcp
public void setSrgMcp() -
getFieldCsv
-
setFieldCsv
-
getMethodCsv
-
setMethodCsv
-
getObfOutput
-