org.apache.commons.vfs.tasks
Class MoveTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.commons.vfs.tasks.VfsTask
              extended by org.apache.commons.vfs.tasks.AbstractSyncTask
                  extended by org.apache.commons.vfs.tasks.CopyTask
                      extended by org.apache.commons.vfs.tasks.MoveTask
All Implemented Interfaces:
Cloneable

public class MoveTask
extends CopyTask

An Ant task that moves matching files.

Version:
$Revision: 764356 $ $Date: 2009-04-13 06:06:01 +0200(lun, 13 apr 2009) $
Author:
Adam Murdoch

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.vfs.tasks.AbstractSyncTask
AbstractSyncTask.SourceInfo
 
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
MoveTask()
           
 
Method Summary
protected  void handleOutOfDateFile(FileObject srcFile, FileObject destFile)
          Handles a single source file.
 void setTryRename(boolean tryRename)
          Enable/disable move/rename of file (if possible)
 
Methods inherited from class org.apache.commons.vfs.tasks.CopyTask
handleUpToDateFile, isOverwrite, isPreserveLastModified, setOverwrite, setPreserveLastModified
 
Methods inherited from class org.apache.commons.vfs.tasks.AbstractSyncTask
addConfiguredSrc, detectMissingSourceFiles, execute, handleMissingSourceFile, isFailonerror, logOrDie, setDestDir, setDestFile, setFailonerror, setIncludes, setSrc, setSrcDir, setSrcDirIsBase
 
Methods inherited from class org.apache.commons.vfs.tasks.VfsTask
closeManager, resolveFile
 
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

MoveTask

public MoveTask()
Method Detail

setTryRename

public void setTryRename(boolean tryRename)
Enable/disable move/rename of file (if possible)


handleOutOfDateFile

protected void handleOutOfDateFile(FileObject srcFile,
                                   FileObject destFile)
                            throws FileSystemException
Handles a single source file.

Overrides:
handleOutOfDateFile in class CopyTask
Throws:
FileSystemException


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.