Package ise.antelope.tasks
Class FileUtilTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- ise.antelope.tasks.FileUtilTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class FileUtilTask extends org.apache.tools.ant.TaskA task to answer a bunch of questions about a file or directory. Copyright 2003- Version:
- $Revision: 138 $
-
-
Constructor Summary
Constructors Constructor Description FileUtilTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCanread(ise.antelope.tasks.typedefs.file.CanRead op)Is the file readable?voidaddCanwrite(ise.antelope.tasks.typedefs.file.CanWrite op)Is the file writable?voidaddFilecount(ise.antelope.tasks.typedefs.file.FileCount op)How many files are in the directory?voidaddFilelength(ise.antelope.tasks.typedefs.file.FileLength op)What is the length of the file?voidaddFileop(ise.antelope.tasks.typedefs.file.FileOp op)voidaddIsdirectory(ise.antelope.tasks.typedefs.file.IsDirectory op)Is the file a directory?voidaddIsfile(ise.antelope.tasks.typedefs.file.IsFile op)Is the file a file?voidaddIshidden(ise.antelope.tasks.typedefs.file.IsHidden op)Is the file hidden?voidaddLastmodified(ise.antelope.tasks.typedefs.file.LastModified op)When was the file last modified?voidaddLineCount(ise.antelope.tasks.typedefs.file.FileLineCount op)How many lines are in the file?voidaddListFiles(ise.antelope.tasks.typedefs.file.FileList op)What files are in the directory?voidexecute()While multiple ops could be added, only the first one is executed.voidsetFile(java.io.File f)voidsetProperty(java.lang.String name)-
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
-
-
-
-
Method Detail
-
setFile
public void setFile(java.io.File f)
- Parameters:
f- the file in question
-
setProperty
public void setProperty(java.lang.String name)
- Parameters:
name- where to put the answer
-
addFileop
public void addFileop(ise.antelope.tasks.typedefs.file.FileOp op)
-
addCanread
public void addCanread(ise.antelope.tasks.typedefs.file.CanRead op)
Is the file readable?
-
addCanwrite
public void addCanwrite(ise.antelope.tasks.typedefs.file.CanWrite op)
Is the file writable?
-
addFilecount
public void addFilecount(ise.antelope.tasks.typedefs.file.FileCount op)
How many files are in the directory?
-
addIsdirectory
public void addIsdirectory(ise.antelope.tasks.typedefs.file.IsDirectory op)
Is the file a directory?
-
addIsfile
public void addIsfile(ise.antelope.tasks.typedefs.file.IsFile op)
Is the file a file?
-
addIshidden
public void addIshidden(ise.antelope.tasks.typedefs.file.IsHidden op)
Is the file hidden?
-
addFilelength
public void addFilelength(ise.antelope.tasks.typedefs.file.FileLength op)
What is the length of the file?
-
addLastmodified
public void addLastmodified(ise.antelope.tasks.typedefs.file.LastModified op)
When was the file last modified?
-
addListFiles
public void addListFiles(ise.antelope.tasks.typedefs.file.FileList op)
What files are in the directory?
-
addLineCount
public void addLineCount(ise.antelope.tasks.typedefs.file.FileLineCount op)
How many lines are in the file?
-
execute
public void execute()
While multiple ops could be added, only the first one is executed.- Overrides:
executein classorg.apache.tools.ant.Task
-
-