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(Long adjust)
Set the amount by which files' lengths should be adjusted.
|
void |
setCreate(boolean create)
Set whether to create nonexistent files.
|
void |
setFile(File f)
Set a single target File.
|
void |
setLength(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, setTaskType
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
public void add(ResourceCollection rc)
rc
- the ResourceCollection to add.public void execute()
public void setAdjust(Long adjust)
adjust
- (positive or negative) adjustment amount.public void setCreate(boolean create)
create
- boolean, default true
.public void setFile(File f)
f
- the single Filepublic void setLength(Long length)
length
- (positive) adjustment amount.public void setMkdirs(boolean mkdirs)
mkdirs
- boolean, default false
.