Package org.openbravo.erpCommon.utility
Class MigrateAttachments
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.openbravo.erpCommon.utility.MigrateAttachments
-
- All Implemented Interfaces:
Cloneable
public class MigrateAttachments extends org.apache.tools.ant.Task
Migration of attachments based on the new attachment model- Author:
- Shankar Balachandran
-
-
Constructor Summary
Constructors Constructor Description MigrateAttachments()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
delete(File source)
Delete the directory and all the sub files recursively.Extended from FileUtility as source directory is not removed in FileUtility.delete method.void
execute()
static void
migrateAttachments(String attachPath)
Migrates the attachments to new attachment model-
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()
- Overrides:
execute
in classorg.apache.tools.ant.Task
-
delete
public static void delete(File source) throws Exception
Delete the directory and all the sub files recursively.Extended from FileUtility as source directory is not removed in FileUtility.delete method.- Parameters:
source
- Path of the file to be deleted- Throws:
Exception
-
-