Package com.yworks.common.ant
Class YGuardBaseTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.yworks.common.ant.YGuardBaseTask
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
ObfuscatorTask,ShrinkTask,YGuardTask
public abstract class YGuardBaseTask extends org.apache.tools.ant.TaskThe type Y guard base task.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classYGuardBaseTask.InOutPairSectionThe type In out pair section.
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<AttributesSection>attributesSectionsThe Attributes sections.protected booleanmodeThe Mode.protected static booleanMODE_NESTEDThe constant MODE_NESTED.protected static booleanMODE_STANDALONEThe constant MODE_STANDALONE.protected java.util.List<ShrinkBag>pairsThe Pairs.protected java.util.MappropertiesThe Properties.protected org.apache.tools.ant.types.PathresourceClassPathThe Resource class path.
-
Constructor Summary
Constructors Constructor Description YGuardBaseTask()Instantiates a new Y guard base task.YGuardBaseTask(boolean mode)Instantiates a new Y guard base task.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaddAttributesSections(java.util.List<AttributesSection> attributesSections)Add attributes sections.voidaddConfiguredInOutPair(ShrinkBag pair)Add configured in out pair.voidaddConfiguredInOutPairs(YGuardBaseTask.InOutPairSection section)Add configured in out pairs.voidaddConfiguredProperty(Property p)Add configured property.AttributesSectioncreateAttribute()Create attribute attributes section.org.apache.tools.ant.types.PathcreateExternalClasses()Create external classes path.ShrinkBagcreateInOutPair()Create in out pair shrink bag.abstract ExcludecreateKeep()Create keep exclude.protected AttributesSectionnewAttributesSection()Instantiates an attributes section, subclasses may provide custom implementations.protected InOutPairnewInOutPair()Instantiates an in out pair shrink bag, subclasses may provide custom implementations.voidsetResourceClassPath(org.apache.tools.ant.types.Path path)Sets resource class path.-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, execute, 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
-
MODE_STANDALONE
protected static final boolean MODE_STANDALONE
The constant MODE_STANDALONE.- See Also:
- Constant Field Values
-
MODE_NESTED
protected static final boolean MODE_NESTED
The constant MODE_NESTED.- See Also:
- Constant Field Values
-
mode
protected final boolean mode
The Mode.
-
pairs
protected java.util.List<ShrinkBag> pairs
The Pairs.
-
resourceClassPath
protected org.apache.tools.ant.types.Path resourceClassPath
The Resource class path.
-
attributesSections
protected java.util.List<AttributesSection> attributesSections
The Attributes sections.
-
properties
protected java.util.Map properties
The Properties.
-
-
Method Detail
-
createAttribute
public AttributesSection createAttribute()
Create attribute attributes section.- Returns:
- the attributes section
-
newAttributesSection
protected AttributesSection newAttributesSection()
Instantiates an attributes section, subclasses may provide custom implementations.- Returns:
- the new attributes section
-
createInOutPair
public ShrinkBag createInOutPair()
Create in out pair shrink bag.- Returns:
- the shrink bag
-
newInOutPair
protected InOutPair newInOutPair()
Instantiates an in out pair shrink bag, subclasses may provide custom implementations.- Returns:
- the new shrink bag
-
addConfiguredInOutPairs
public void addConfiguredInOutPairs(YGuardBaseTask.InOutPairSection section)
Add configured in out pairs.- Parameters:
section- the section
-
addConfiguredInOutPair
public void addConfiguredInOutPair(ShrinkBag pair)
Add configured in out pair.- Parameters:
pair- the pair
-
createExternalClasses
public org.apache.tools.ant.types.Path createExternalClasses()
Create external classes path.- Returns:
- the path
-
setResourceClassPath
public void setResourceClassPath(org.apache.tools.ant.types.Path path)
Sets resource class path.- Parameters:
path- the path
-
createKeep
public abstract Exclude createKeep()
Create keep exclude.- Returns:
- the exclude
-
addAttributesSections
public abstract void addAttributesSections(java.util.List<AttributesSection> attributesSections)
Add attributes sections.- Parameters:
attributesSections- the attributes sections
-
addConfiguredProperty
public void addConfiguredProperty(Property p)
Add configured property.- Parameters:
p- the p
-
-