public class Truncate extends Task
truncate Unix utility/function.description, location, project| Constructor and Description | 
|---|
| Truncate() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | add(ResourceCollection rc)Add a nested (filesystem-only) ResourceCollection. | 
| void | execute()Called by the project to let the task do its work. | 
| void | setAdjust(java.lang.Long adjust)Set the amount by which files' lengths should be adjusted. | 
| void | setCreate(boolean create)Set whether to create nonexistent files. | 
| void | setFile(java.io.File f)Set a single target File. | 
| void | setLength(java.lang.Long length)Set the length to which files should be set. | 
| void | setMkdirs(boolean mkdirs)Set whether, when creating nonexistent files, nonexistent directories
 should also be created. | 
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic void setFile(java.io.File f)
f - the single Filepublic void add(ResourceCollection rc)
rc - the ResourceCollection to add.public void setAdjust(java.lang.Long adjust)
adjust - (positive or negative) adjustment amount.public void setLength(java.lang.Long length)
length - (positive) adjustment amount.public void setCreate(boolean create)
create - boolean, default true.public void setMkdirs(boolean mkdirs)
mkdirs - boolean, default false.public void execute()