org.xins.common.ant
Class UppercaseTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.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
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 |
UppercaseTask
public UppercaseTask()
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/.