Package org.apache.commons.vfs2.tasks
Class ShowFileTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.commons.vfs2.tasks.VfsTask
org.apache.commons.vfs2.tasks.ShowFileTask
- All Implemented Interfaces:
- Cloneable
An Ant task that writes the details of a file to Ant's log.
- 
Field SummaryFields inherited from class org.apache.tools.ant.Tasktarget, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidexecute()Executes the task.voidThe URL of the file to display.voidsetRecursive(boolean recursive) Recursively shows the descendants of the file.voidsetShowContent(boolean showContent) Shows the content.Methods inherited from class org.apache.commons.vfs2.tasks.VfsTaskcloseManager, resolveFileMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
ShowFileTaskpublic ShowFileTask()Constructs a new instance.
 
- 
- 
Method Details- 
executeExecutes the task.- Overrides:
- executein class- org.apache.tools.ant.Task
- Throws:
- org.apache.tools.ant.BuildException- if any exception is thrown.
 
- 
setFileThe URL of the file to display.- Parameters:
- url- The url of the file.
 
- 
setRecursiveRecursively shows the descendants of the file.- Parameters:
- recursive- true if descendants should be shown.
 
- 
setShowContentShows the content. Assumes the content is text, encoded using the platform's default encoding.- Parameters:
- showContent- true if the content should be shown.
 
 
-