public abstract class AbstractSyncTask extends VfsTask
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractSyncTask.SourceInfo
Information about a source file.
|
| Constructor and Description |
|---|
AbstractSyncTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfiguredSrc(AbstractSyncTask.SourceInfo srcInfo)
Adds a nested
|
protected boolean |
detectMissingSourceFiles()
Check if this task cares about destination files with a missing source
file.
|
void |
execute()
Executes this task.
|
protected void |
handleMissingSourceFile(FileObject destFile)
Handles a destination for which there is no corresponding source file.
|
protected void |
handleOutOfDateFile(FileObject srcFile,
FileObject destFile)
Handles an out-of-date file (a file where the destination file
either doesn't exist, or is older than the source file).
|
protected void |
handleUpToDateFile(FileObject srcFile,
FileObject destFile)
Handles an up-to-date file (where the destination file exists and is
newer than the source file).
|
boolean |
isFailonerror()
Sets whether we should fail if there was an error or not
|
protected void |
logOrDie(java.lang.String message,
int level) |
void |
setDestDir(java.lang.String destDir)
Sets the destination directory.
|
void |
setDestFile(java.lang.String destFile)
Sets the destination file.
|
void |
setFailonerror(boolean failonerror)
Sets whether we should fail if there was an error or not
|
void |
setIncludes(java.lang.String filesList)
Sets the files to includes
|
void |
setSrc(java.lang.String srcFile)
Sets the source file
|
void |
setSrcDir(java.lang.String srcDir)
Sets the source directory
|
void |
setSrcDirIsBase(boolean srcDirIsBase)
Sets whether the source directory should be consider as the base directory.
|
closeManager, resolveFilebindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setDestFile(java.lang.String destFile)
public void setDestDir(java.lang.String destDir)
public void setSrc(java.lang.String srcFile)
public void setSrcDir(java.lang.String srcDir)
public void setSrcDirIsBase(boolean srcDirIsBase)
public void setFailonerror(boolean failonerror)
public boolean isFailonerror()
public void setIncludes(java.lang.String filesList)
public void addConfiguredSrc(AbstractSyncTask.SourceInfo srcInfo) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildExceptionpublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected void logOrDie(java.lang.String message,
int level)
protected void handleOutOfDateFile(FileObject srcFile, FileObject destFile) throws java.lang.Exception
java.lang.Exceptionprotected void handleUpToDateFile(FileObject srcFile, FileObject destFile) throws java.lang.Exception
java.lang.Exceptionprotected void handleMissingSourceFile(FileObject destFile) throws java.lang.Exception
java.lang.Exceptionprotected boolean detectMissingSourceFiles()