Class ShrinkTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ShrinkTask
    extends YGuardBaseTask
    The type Shrink task.
    • Constructor Detail

      • ShrinkTask

        public ShrinkTask()
        Instantiates a new Shrink task.
      • ShrinkTask

        public ShrinkTask​(boolean mode)
        Instantiates a new Shrink task.
        Parameters:
        mode - the mode
    • Method Detail

      • execute

        public void execute()
                     throws org.apache.tools.ant.BuildException
        Overrides:
        execute in class org.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 nested entryPoint element.
        Returns:
        an EntryPointsSection instance
      • newEntryPointsSection

        protected EntryPointsSection newEntryPointsSection​(YGuardBaseTask bt)
        Instantiates the nested entryPoint element, 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
      • addConfiguredEntrypointjar

        public void addConfiguredEntrypointjar​(EntryPointJar entrypointjar)
        Add configured entrypointjar.
        Parameters:
        entrypointjar - the entrypointjar