org.apache.tools.ant.taskdefs
public class Truncate extends Task
truncate Unix utility/function.Since: Ant 1.7.1
| Method Summary | |
|---|---|
| void | add(ResourceCollection rc)
Add a nested (filesystem-only) ResourceCollection. |
| void | execute() {@inheritDoc }. |
| 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. |
Parameters: rc the ResourceCollection to add.
Parameters: adjust (positive or negative) adjustment amount.
Parameters: create boolean, default true.
Parameters: f the single File
Parameters: length (positive) adjustment amount.
Parameters: mkdirs boolean, default false.