Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

cosmoworx.ant.task
Class FileSizeTask  view FileSizeTask download FileSizeTask.java

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bycosmoworx.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.


Field Summary
private  java.io.File moFile
           
private  java.lang.String msPropertyName
           
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
FileSizeTask()
           
 
Method Summary
 void execute()
          Execute the task.
 void setFile(java.io.File aoFile)
          Set the file attribute.
 void setProperty(java.lang.String asPropertyName)
          Set the property attribute.
 
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 org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moFile

private java.io.File moFile

msPropertyName

private java.lang.String msPropertyName
Constructor Detail

FileSizeTask

public FileSizeTask()
Method Detail

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.