Package com.yworks.yguard
Class YGuardTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.yworks.common.ant.YGuardBaseTask
-
- com.yworks.yguard.YGuardTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class YGuardTask extends YGuardBaseTask
The type Y guard task.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yworks.common.ant.YGuardBaseTask
YGuardBaseTask.InOutPairSection
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<YGuardBaseTask>subTasks-
Fields inherited from class com.yworks.common.ant.YGuardBaseTask
attributesSections, mode, MODE_NESTED, MODE_STANDALONE, pairs, properties, resourceClassPath
-
-
Constructor Summary
Constructors Constructor Description YGuardTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributesSections(java.util.List<AttributesSection> attributesSections)Add attributes sections.ExcludecreateKeep()Create keep exclude.ObfuscatorTaskcreateObfuscate()Create obfuscate obfuscator task.ObfuscatorTaskcreateRename()Create rename obfuscator task.ShrinkTaskcreateShrink()Create shrink shrink task.voidexecute()protected ObfuscatorTasknewObfuscatorTask(boolean mode)Instantiates an obfuscator task, subclasses may provide custom implementations.protected ShrinkTasknewShrinkTask(boolean mode)Instantiates a shrink task, subclasses may provide custom implementations.-
Methods inherited from class com.yworks.common.ant.YGuardBaseTask
addConfiguredInOutPair, addConfiguredInOutPairs, addConfiguredProperty, createAttribute, createExternalClasses, createInOutPair, newAttributesSection, newInOutPair, setResourceClassPath
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Field Detail
-
subTasks
protected java.util.List<YGuardBaseTask> subTasks
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
createShrink
public ShrinkTask createShrink()
Create shrink shrink task.- Returns:
- the shrink task
-
newShrinkTask
protected ShrinkTask newShrinkTask(boolean mode)
Instantiates a shrink task, subclasses may provide custom implementations.- Returns:
- the new shrink task
-
createRename
public ObfuscatorTask createRename()
Create rename obfuscator task.- Returns:
- the obfuscator task
-
newObfuscatorTask
protected ObfuscatorTask newObfuscatorTask(boolean mode)
Instantiates an obfuscator task, subclasses may provide custom implementations.- Returns:
- the new obfuscator task
-
createObfuscate
public ObfuscatorTask createObfuscate()
Create obfuscate obfuscator task.- Returns:
- the obfuscator task
-
createKeep
public Exclude createKeep()
Description copied from class:YGuardBaseTaskCreate keep exclude.- Specified by:
createKeepin classYGuardBaseTask- Returns:
- the exclude
-
addAttributesSections
public void addAttributesSections(java.util.List<AttributesSection> attributesSections)
Description copied from class:YGuardBaseTaskAdd attributes sections.- Specified by:
addAttributesSectionsin classYGuardBaseTask- Parameters:
attributesSections- the attributes sections
-
-