Package de.hybris.ant.taskdefs
Class ReplaceDTOResource
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- de.hybris.ant.taskdefs.ReplaceDTOResource
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ReplaceDTOResource extends org.apache.tools.ant.TaskDirectory structure improvement for custom dtos/resources within the platformwebservices/web/gensrc extension.
-
-
Constructor Summary
Constructors Constructor Description ReplaceDTOResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcopyFile(java.io.File in, java.io.File out)Copy a file.static booleandeleteDir(java.io.File dir)Deletes all files and sub-directories under dir.voidexecute()java.lang.StringgetReplaceResourcePathSegFrom()java.lang.StringgetReplaceResourcePathSegTo()voidsetCustomsrc(org.apache.tools.ant.types.resources.FileResource customsrc)voidsetDebug(boolean debug)voidsetGensrc(org.apache.tools.ant.types.resources.FileResource gensrc)voidsetReplaceDtoPathSegFrom(java.lang.String replaceDtoPathSegFrom)voidsetReplaceDtoPathSegTo(java.lang.String replaceDtoPathSegTo)voidsetReplaceResourcePathSegFrom(java.lang.String replaceResourcePathSegFrom)voidsetReplaceResourcePathSegTo(java.lang.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
-
-
-
-
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
-
copyFile
public static void copyFile(java.io.File in, java.io.File out) throws java.io.IOExceptionCopy a file.- Parameters:
in- source fileout- destination file- Throws:
java.io.IOException
-
deleteDir
public static boolean deleteDir(java.io.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(java.lang.String replaceResourcePathSegFrom)
- Parameters:
replaceResourcePathSegFrom- the replaceResourcePathSegFrom to set
-
getReplaceResourcePathSegFrom
public java.lang.String getReplaceResourcePathSegFrom()
- Returns:
- the replaceResourcePathSegFrom
-
setReplaceResourcePathSegTo
public void setReplaceResourcePathSegTo(java.lang.String replaceResourcePathSegTo)
- Parameters:
replaceResourcePathSegTo- the replaceResourcePathSegTo to set
-
getReplaceResourcePathSegTo
public java.lang.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(java.lang.String replaceDtoPathSegFrom)
- Parameters:
replaceDtoPathSegFrom- the replaceDtoPathSegFrom to set
-
setReplaceDtoPathSegTo
public void setReplaceDtoPathSegTo(java.lang.String replaceDtoPathSegTo)
- Parameters:
replaceDtoPathSegTo- the replaceDtoPathSegTo to set
-
setDebug
public void setDebug(boolean debug)
-
-