java.lang.Cloneable, SelectorContainerpublic class Translate extends MatchingTask
filesetdescription, location, project| Constructor | Description |
|---|---|
Translate() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addFileset(FileSet set) |
Adds a set of files to translate as a nested fileset element.
|
void |
execute() |
Check attributes values, load resource map and translate
|
void |
setBundle(java.lang.String bundle) |
Sets Family name of resource bundle; required.
|
void |
setBundleCountry(java.lang.String bundleCountry) |
Sets locale specific country of resource bundle; optional.
|
void |
setBundleEncoding(java.lang.String bundleEncoding) |
Sets Resource Bundle file encoding scheme; optional.
|
void |
setBundleLanguage(java.lang.String bundleLanguage) |
Sets locale specific language of resource bundle; optional.
|
void |
setBundleVariant(java.lang.String bundleVariant) |
Sets locale specific variant of resource bundle; optional.
|
void |
setDestEncoding(java.lang.String destEncoding) |
Sets destination file encoding scheme; optional.
|
void |
setEndToken(java.lang.String endToken) |
Sets ending token to identify keys; required.
|
void |
setForceOverwrite(boolean forceOverwrite) |
Whether or not to overwrite existing file irrespective of
whether it is newer than the source file as well as the
resource bundle file.
|
void |
setSrcEncoding(java.lang.String srcEncoding) |
Sets source file encoding scheme; optional,
defaults to encoding of local system.
|
void |
setStartToken(java.lang.String startToken) |
Sets starting token to identify keys; required.
|
void |
setToDir(java.io.File toDir) |
Sets Destination directory; required.
|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItemsequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclone, getDescription, getLocation, getProject, setDescription, setLocationbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setBundle(java.lang.String bundle)
bundle - family name of resource bundlepublic void setBundleLanguage(java.lang.String bundleLanguage)
bundleLanguage - language of the bundlepublic void setBundleCountry(java.lang.String bundleCountry)
bundleCountry - country of the bundlepublic void setBundleVariant(java.lang.String bundleVariant)
bundleVariant - locale variant of resource bundlepublic void setToDir(java.io.File toDir)
toDir - destination directorypublic void setStartToken(java.lang.String startToken)
startToken - starting token to identify keyspublic void setEndToken(java.lang.String endToken)
endToken - ending token to identify keyspublic void setSrcEncoding(java.lang.String srcEncoding)
srcEncoding - source file encodingpublic void setDestEncoding(java.lang.String destEncoding)
destEncoding - destination file encoding schemepublic void setBundleEncoding(java.lang.String bundleEncoding)
bundleEncoding - bundle file encoding schemepublic void setForceOverwrite(boolean forceOverwrite)
forceOverwrite - whether or not to overwrite existing filespublic void addFileset(FileSet set)
set - the fileset to be addedpublic void execute()
throws BuildException
execute in class TaskBuildException - if the required attributes are not set
Required :