Package com.yworks.yshrink.ant
Class ShrinkTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- com.yworks.common.ant.YGuardBaseTask
-
- com.yworks.yshrink.ant.ShrinkTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ShrinkTask extends YGuardBaseTask
The type Shrink 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 EntryPointsSectionentryPointsSection-
Fields inherited from class com.yworks.common.ant.YGuardBaseTask
attributesSections, mode, MODE_NESTED, MODE_STANDALONE, pairs, properties, resourceClassPath
-
-
Constructor Summary
Constructors Constructor Description ShrinkTask()Instantiates a new Shrink task.ShrinkTask(boolean mode)Instantiates a new Shrink task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributesSections(java.util.List<AttributesSection> attributesSections)Add attributes sections.voidaddConfiguredEntrypointjar(EntryPointJar entrypointjar)Add configured entrypointjar.EntryPointsSectioncreateEntryPoints()Used by ant to handle the nestedentryPointelement.EntryPointsSectioncreateExpose()Create expose entry points section.ExcludecreateKeep()Create keep exclude.voidexecute()booleangetCreateStubs()Gets create stubs.java.lang.StringgetDigests()Gets digests.protected EntryPointsSectionnewEntryPointsSection(YGuardBaseTask bt)Instantiates the nestedentryPointelement, subclasses may provide custom implementations.voidsetCreateStubs(boolean createStubs)Sets create stubs.voidsetDigests(java.lang.String digests)Sets digests.voidsetEntryPointsExternally(EntryPointsSection eps)not for ant, used if the ShrinkTask is created 'artificially'.voidsetLogFile(java.io.File file)Sets log file.-
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
-
entryPointsSection
protected EntryPointsSection entryPointsSection
-
-
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
-
getCreateStubs
public boolean getCreateStubs()
Gets create stubs.- Returns:
- the create stubs
-
setCreateStubs
public void setCreateStubs(boolean createStubs)
Sets create stubs.- Parameters:
createStubs- the create stubs
-
getDigests
public java.lang.String getDigests()
Gets digests.- Returns:
- the digests
-
setDigests
public void setDigests(java.lang.String digests)
Sets digests.- Parameters:
digests- the digests
-
setLogFile
public void setLogFile(java.io.File file)
Sets log file.- Parameters:
file- the file
-
createEntryPoints
public EntryPointsSection createEntryPoints()
Used by ant to handle the nestedentryPointelement.- Returns:
- an EntryPointsSection instance
-
newEntryPointsSection
protected EntryPointsSection newEntryPointsSection(YGuardBaseTask bt)
Instantiates the nestedentryPointelement, subclasses may provide custom implementations.- Returns:
- a new EntryPointsSection instance
-
setEntryPointsExternally
public void setEntryPointsExternally(EntryPointsSection eps)
not for ant, used if the ShrinkTask is created 'artificially'.- Parameters:
eps- the eps
-
createExpose
public EntryPointsSection createExpose()
Create expose entry points section.- Returns:
- the entry points section
-
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
-
addConfiguredEntrypointjar
public void addConfiguredEntrypointjar(EntryPointJar entrypointjar)
Add configured entrypointjar.- Parameters:
entrypointjar- the entrypointjar
-
-