java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
cosmoworx.ant.task.FileSizeTask
- public class FileSizeTask
- extends org.apache.tools.ant.Task
This Ant task get the size of a specified file and stores it in the specified property.
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
moFile
private java.io.File moFile
msPropertyName
private java.lang.String msPropertyName
FileSizeTask
public FileSizeTask()
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Execute the task.
setFile
public void setFile(java.io.File aoFile)
- Set the file attribute.
setProperty
public void setProperty(java.lang.String asPropertyName)
- Set the property attribute.