类 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.RegularFilePropertyorg.gradle.api.file.RegularFilePropertyorg.gradle.api.provider.ListProperty<String>org.gradle.api.file.FileCollectionorg.gradle.api.file.RegularFilePropertyorg.gradle.api.file.FileCollectionAll of the files that will be signed by this task.org.gradle.api.provider.Property<String>org.gradle.api.file.RegularFilePropertyorg.gradle.api.NamedDomainObjectSet<ObfArtifact>org.gradle.api.file.FileCollectionAll of the signature files that will be generated by this operation.org.gradle.api.file.RegularFilePropertyorg.gradle.api.file.RegularFilePropertygetSrg()org.gradle.api.provider.Property<Boolean>voidConfigures 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) voidsetExtraSrg(List<String> extraSrg) voidvoidvoidvoidsetUseRetroGuard(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
@Inject public ReobfTask(org.gradle.api.model.ObjectFactory objectFactory)
-
-
方法详细资料
-
getUseRetroGuard
-
getMcVersion
-
getSrg
@InputFile public org.gradle.api.file.RegularFileProperty getSrg() -
getFieldCsv
@Optional @InputFile public org.gradle.api.file.RegularFileProperty getFieldCsv() -
getMethodCsv
@Optional @InputFile public org.gradle.api.file.RegularFileProperty getMethodCsv() -
getExceptorCfg
@Optional @InputFile public org.gradle.api.file.RegularFileProperty getExceptorCfg() -
getDeobfFile
@Optional @InputFile public org.gradle.api.file.RegularFileProperty getDeobfFile() -
getRecompFile
@Optional @InputFile public org.gradle.api.file.RegularFileProperty getRecompFile() -
getExtraSrg
-
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
-
getFilesToObfuscate
@InputFiles public org.gradle.api.file.FileCollection getFilesToObfuscate()All of the files that will be signed by this task. -
getObfuscatedFiles
@OutputFiles public org.gradle.api.file.FileCollection getObfuscatedFiles()All of the signature files that will be generated by this operation. -
setUseRetroGuard
public void setUseRetroGuard(boolean useRG) -
setExtraSrg
-
addExtraSrgFile
-
getExtraSrgFiles
@InputFiles public org.gradle.api.file.FileCollection getExtraSrgFiles() -
setSrg
-
setSrgSrg
public void setSrgSrg() -
setSrgMcp
public void setSrgMcp() -
getObfOutput
-