public class PostDecompileTask extends AbstractEditJarTask
| Constructor | Description |
|---|---|
PostDecompileTask() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
asRead(java.lang.String name,
java.lang.String file) |
Called as the .java files of the jar are read from the jar
|
void |
doStuffAfter() |
Do Stuff after the jar is Written
|
void |
doStuffBefore() |
Do Stuff before the jar is read
|
void |
doStuffMiddle(java.util.Map<java.lang.String,java.lang.String> sourceMap,
java.util.Map<java.lang.String,byte[]> resourceMap) |
Do Stuff after the jar is read, but before it is written.
|
org.gradle.api.file.FileCollection |
getInjects() |
|
protected void |
postWrite(java.util.jar.JarOutputStream jarOut) |
Called after all entries have been written to the jar.
|
protected void |
postWriteEntry(java.util.jar.JarOutputStream jarOut,
java.lang.String entryName) |
Called immediately after every file is written to the jar.
|
void |
setInjects(java.lang.Object injectDir) |
|
void |
setPatches(java.lang.Object patchesDir) |
|
protected boolean |
storeJarInRam() |
Whether to store the contents of the jar in RAM.
|
doTask, setInJar, setOutJaraddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toStringcacheClassHash, defaultCache, doesCache, setDoesCachenewInputDirectory, newInputFile, newOutputDirectory, newOutputFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, hasProperty, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfterpublic void doStuffBefore()
AbstractEditJarTaskdoStuffBefore in class AbstractEditJarTaskpublic java.lang.String asRead(java.lang.String name,
java.lang.String file)
throws java.lang.Exception
AbstractEditJarTaskasRead in class AbstractEditJarTaskname - name of the current entryfile - current contents of the entryjava.lang.Exception - as a convenience for any potential exceptions thrown in this methodprotected void postWriteEntry(java.util.jar.JarOutputStream jarOut,
java.lang.String entryName)
AbstractEditJarTaskjarOut - The jar output streamentryName - The path to the file in the jarprotected void postWrite(java.util.jar.JarOutputStream jarOut)
throws java.io.IOException
AbstractEditJarTaskjarOut - The jar output streamjava.io.IOException - IOExceptionpublic void doStuffAfter()
AbstractEditJarTaskdoStuffAfter in class AbstractEditJarTaskpublic void setPatches(java.lang.Object patchesDir)
@InputFiles public org.gradle.api.file.FileCollection getInjects()
public void setInjects(java.lang.Object injectDir)
public void doStuffMiddle(java.util.Map<java.lang.String,java.lang.String> sourceMap,
java.util.Map<java.lang.String,byte[]> resourceMap)
AbstractEditJarTaskdoStuffMiddle in class AbstractEditJarTasksourceMap - name->contents for all java files in the jarresourceMap - name->contents for everything elseprotected boolean storeJarInRam()
AbstractEditJarTaskstoreJarInRam in class AbstractEditJarTask