net.uworks.andariel
Class Trim

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bynet.uworks.andariel.Trim

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

Task definition for an ANT task that removes the adjacent spaces of a property.


 Usage:

   Task declaration in the project:
   
     <taskdef name="trim" classname="net.uworks.andariel.Trim" />
   

   Task calling syntax:
    
     <trim name="name" [outputproperty="property"] />
    


   Attributes:
       name            -> The name of the property to trim
       outputproperty  -> The name of the property to place the result (optional)


 Crude Example:

     
     <trim name="propertyName" />
     

 

Since:
Ant 1.5
Version:
$Revision: 1.0 $
Author:
Josep del Rio

Field Summary
 
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
Trim()
           
 
Method Summary
 void execute()
          Execute this task.
 void setName(java.lang.String name)
          Set the name of the property to trim.
 void setOutputproperty(java.lang.String outputproperty)
          Set the name of the property where we place the result.
 
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
 

Constructor Detail

Trim

public Trim()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute this task.

Throws:
org.apache.tools.ant.BuildException - Description of the Exception

setName

public void setName(java.lang.String name)
Set the name of the property to trim.

Parameters:
name - the property to trim.

setOutputproperty

public void setOutputproperty(java.lang.String outputproperty)
Set the name of the property where we place the result.

Parameters:
outputproperty - the property to place the result.