|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Echo
com.ibm.websphere.ant.tasks.NLSEcho
public class NLSEcho
wsNLSEcho Task: This is a echo extension task to display translated messages. Also provides
variable substitution in the message.
Attributes:
key Key to look for in resource bundle --- Not required
bundle Resource bundle from where resource for key to be loaded - Not required
message Default message - Required
replace substitution arguments seperated by ";;" - Not required
Usage:
Copyright IBM Corp. 2002
Source File: NLSEcho.java
Creation Date: August 13, 2002
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Echo |
---|
org.apache.tools.ant.taskdefs.Echo.EchoLevel |
Field Summary | |
---|---|
protected java.lang.String |
bundle
|
protected java.lang.String |
key
|
protected java.lang.Object[] |
tokens
|
Fields inherited from class org.apache.tools.ant.taskdefs.Echo |
---|
append, file, logLevel, message |
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 | |
---|---|
NLSEcho()
|
Method Summary | |
---|---|
protected void |
doTranslation()
Get translated message |
void |
execute()
Execute the task |
protected java.lang.String |
getBundle()
Returns the fileName. |
protected java.lang.String |
getKey()
Returns the key. |
void |
setBundle(java.lang.String bundle)
Set the file name to be used as resource bundle |
void |
setKey(java.lang.String key)
key to be translated |
void |
setReplace(java.lang.String str)
Replaces {x} with values specified |
Methods inherited from class org.apache.tools.ant.taskdefs.Echo |
---|
addText, setAppend, setFile, setLevel, setMessage |
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 |
---|
protected java.lang.String bundle
protected java.lang.String key
protected java.lang.Object[] tokens
Constructor Detail |
---|
public NLSEcho()
Method Detail |
---|
public void setBundle(java.lang.String bundle)
public void execute()
execute
in class org.apache.tools.ant.taskdefs.Echo
public void setKey(java.lang.String key)
protected void doTranslation()
protected java.lang.String getBundle()
protected java.lang.String getKey()
public void setReplace(java.lang.String str)
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |