org.apache.ws.util.ant
Class FileTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.ws.util.ant.FileTask

public class FileTask
extends org.apache.tools.ant.Task

LOG-DONE Defines a property with a path value, allowing a base dir to be specified for expanding the path if it is relative.

Author:
Ian P. Springer (Hewlett-Packard Company)

Field Summary
static org.apache.ws.util.i18n.Messages MSG
          DOCUMENT_ME
 
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
FileTask()
           
 
Method Summary
 void execute()
           
 void setBaseDir(java.io.File baseDir)
          If the specified location is relative, this directory will be used as the base directory when expanding the location to an absolute path.
 void setLocation(java.lang.String location)
          A filesystem path - may be absolute or relative.
 void setProperty(java.lang.String property)
          Sets the name of the property to set.
 
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

MSG

public static final org.apache.ws.util.i18n.Messages MSG
DOCUMENT_ME

Constructor Detail

FileTask

public FileTask()
Method Detail

setBaseDir

public void setBaseDir(java.io.File baseDir)
If the specified location is relative, this directory will be used as the base directory when expanding the location to an absolute path. If the baseDir attribute is not specified, the project's basedir (i.e. ${basedir}) will be used.

Parameters:
baseDir - used as the base directory when expanding the location to an absolute path

setLocation

public void setLocation(java.lang.String location)
A filesystem path - may be absolute or relative. If relative it will be expanded. NOTE: The parameter is a String and not a File to prevent Ant from resolving relative files based on the project basedir.

Parameters:
location - a filesystem path - may be absolute or relative

setProperty

public void setProperty(java.lang.String property)
Sets the name of the property to set.

Parameters:
property - the name of the property to set

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException
See Also:
{@link org.apache.tools.ant.Task#execute()}


Copyright © 2004-2005 Apache Software Foundation. All Rights Reserved.