|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.rhq.enterprise.agent.update.CopyWithBackup
public class CopyWithBackup
Compares two files, an old one and a new one and if they differ, one will win and be kept as-is
in the new file's parent directory while the other one will get copied under a new name in
the new file's parent directory as a backup copy.
If the two files are identical, this task is a no-op and does nothing.
If backupextension is not specified, the file that is not to be kept will not be backed up.
| 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 | |
|---|---|
CopyWithBackup()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
void |
setBackupextension(String ext)
|
void |
setFailonerror(Boolean flag)
|
void |
setFilename(String filename)
|
void |
setKeep(String keep)
|
void |
setNewdir(File dir)
|
void |
setOlddir(File dir)
|
| 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 |
|---|
public CopyWithBackup()
| Method Detail |
|---|
public void setOlddir(File dir)
public void setNewdir(File dir)
public void setFilename(String filename)
public void setKeep(String keep)
public void setBackupextension(String ext)
public void setFailonerror(Boolean flag)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||