org.xins.common.ant
Class UppercaseTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.xins.common.ant.UppercaseTask
All Implemented Interfaces:
Cloneable

public class UppercaseTask
extends Task

Apache Ant task that uppercase a text. Note that hyphens '-' are translated to underscores '_'.

Since:
XINS 1.1.0
Version:
$Revision: 1.13 $ $Date: 2008/07/04 10:22:41 $
Author:
Anthony Goubard

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
UppercaseTask()
           
 
Method Summary
 void execute()
          Called by the project to let the task do its work.
 void setProperty(String newPropertyName)
          Sets the name of the property.
 void setText(String text)
          Sets the text to be set in uppercase.
 
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
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UppercaseTask

public UppercaseTask()
Method Detail

setProperty

public void setProperty(String newPropertyName)
Sets the name of the property.

Parameters:
newPropertyName - the name of the property to store the uppercase value.

setText

public void setText(String text)
Sets the text to be set in uppercase.

Parameters:
text - the text that has to be set in uppercase.

execute

public void execute()
             throws BuildException
Called by the project to let the task do its work.

Throws:
BuildException - if something goes wrong with the build.


See http://www.xins.org/.