Class MigrationTask

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class MigrationTask
    extends org.apache.tools.ant.Task
    Ant task for the Jakarta EE migration tool.
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      Constructor Description
      MigrationTask()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      void setDest​(java.io.File dest)
      Set the destination file.
      void setExcludes​(java.lang.String excludes)
      Set exclusion patterns.
      void setMatchExcludesAgainstPathName​(boolean matchExcludesAgainstPathName)
      Enable exclude matching against the path name.
      void setProfile​(java.lang.String profile)
      Set the profile that should be used.
      void setSrc​(java.io.File src)
      Set the source file.
      void setZipInMemory​(boolean zipInMemory)
      Set the option to handle compressed archive entries in memory.
      • 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
      • Methods inherited from class org.apache.tools.ant.ProjectComponent

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MigrationTask

        public MigrationTask()
        Default constructor.
    • Method Detail

      • setSrc

        public void setSrc​(java.io.File src)
        Set the source file.
        Parameters:
        src - the source file
      • setDest

        public void setDest​(java.io.File dest)
        Set the destination file.
        Parameters:
        dest - the destination file
      • setProfile

        public void setProfile​(java.lang.String profile)
        Set the profile that should be used.
        Parameters:
        profile - the profile to be used
      • setZipInMemory

        public void setZipInMemory​(boolean zipInMemory)
        Set the option to handle compressed archive entries in memory.
        Parameters:
        zipInMemory - true to buffer in memory
      • setExcludes

        public void setExcludes​(java.lang.String excludes)
        Set exclusion patterns.
        Parameters:
        excludes - Comma separated, case sensitive list of glob patterns for files to exclude
      • setMatchExcludesAgainstPathName

        public void setMatchExcludesAgainstPathName​(boolean matchExcludesAgainstPathName)
        Enable exclude matching against the path name.
        Parameters:
        matchExcludesAgainstPathName - true to match excludes against the path name instead of the file name
      • 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