|
|||||||||
| 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.apache.tools.ant.taskdefs.Truncate
public class Truncate
Set the length of one or more files, as the intermittently available
truncate Unix utility/function.
| 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 | |
|---|---|
Truncate()
|
|
| Method Summary | |
|---|---|
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. |
| 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 Truncate()
| Method Detail |
|---|
public 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()
execute in class Task
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||