org.apache.commons.vfs.tasks
Class MoveTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.commons.vfs.tasks.VfsTask
              extended byorg.apache.commons.vfs.tasks.AbstractSyncTask
                  extended byorg.apache.commons.vfs.tasks.CopyTask
                      extended byorg.apache.commons.vfs.tasks.MoveTask

public class MoveTask
extends CopyTask

An Ant task that moves matching files.

Version:
$Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
Author:
Adam Murdoch

Nested Class Summary
 
Nested classes inherited from class org.apache.commons.vfs.tasks.AbstractSyncTask
AbstractSyncTask.SourceInfo
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
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
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, 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-2006 The Apache Software Foundation. All Rights Reserved.