Class ReplaceDTOResource

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
de.hybris.ant.taskdefs.ReplaceDTOResource
All Implemented Interfaces:
Cloneable

public class ReplaceDTOResource extends org.apache.tools.ant.Task
Directory structure improvement for custom dtos/resources within the platformwebservices/web/gensrc extension.
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    copyFile(File in, File out)
    Copy a file.
    static boolean
    Deletes all files and sub-directories under dir.
    void
     
     
     
    void
    setCustomsrc(org.apache.tools.ant.types.resources.FileResource customsrc)
     
    void
    setDebug(boolean debug)
     
    void
    setGensrc(org.apache.tools.ant.types.resources.FileResource gensrc)
     
    void
    setReplaceDtoPathSegFrom(String replaceDtoPathSegFrom)
     
    void
    setReplaceDtoPathSegTo(String replaceDtoPathSegTo)
     
    void
    setReplaceResourcePathSegFrom(String replaceResourcePathSegFrom)
     
    void
    setReplaceResourcePathSegTo(String replaceResourcePathSegTo)
     

    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 Details

    • ReplaceDTOResource

      public ReplaceDTOResource()
  • Method Details

    • 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
    • copyFile

      public static void copyFile(File in, File out) throws IOException
      Copy a file.
      Parameters:
      in - source file
      out - destination file
      Throws:
      IOException
    • deleteDir

      public static boolean deleteDir(File dir)
      Deletes all files and sub-directories under dir. false.
      Parameters:
      dir - deletes all files and sub-directories under that directory
      Returns:
      returns true if all deletions were successful. If a deletion fails, the method stops attempting to delete and returns
    • setReplaceResourcePathSegFrom

      public void setReplaceResourcePathSegFrom(String replaceResourcePathSegFrom)
      Parameters:
      replaceResourcePathSegFrom - the replaceResourcePathSegFrom to set
    • getReplaceResourcePathSegFrom

      public String getReplaceResourcePathSegFrom()
      Returns:
      the replaceResourcePathSegFrom
    • setReplaceResourcePathSegTo

      public void setReplaceResourcePathSegTo(String replaceResourcePathSegTo)
      Parameters:
      replaceResourcePathSegTo - the replaceResourcePathSegTo to set
    • getReplaceResourcePathSegTo

      public String getReplaceResourcePathSegTo()
      Returns:
      the replaceResourcePathSegTo
    • setGensrc

      public void setGensrc(org.apache.tools.ant.types.resources.FileResource gensrc)
      Parameters:
      gensrc - the gensrc to set
    • setCustomsrc

      public void setCustomsrc(org.apache.tools.ant.types.resources.FileResource customsrc)
      Parameters:
      customsrc - the customsrc to set
    • setReplaceDtoPathSegFrom

      public void setReplaceDtoPathSegFrom(String replaceDtoPathSegFrom)
      Parameters:
      replaceDtoPathSegFrom - the replaceDtoPathSegFrom to set
    • setReplaceDtoPathSegTo

      public void setReplaceDtoPathSegTo(String replaceDtoPathSegTo)
      Parameters:
      replaceDtoPathSegTo - the replaceDtoPathSegTo to set
    • setDebug

      public void setDebug(boolean debug)