public class MergeLocaleTask
extends org.apache.tools.ant.Task
<taskdef name="mergeLocale"> classname="de.viaboxx.nlstools.tasks.MergeLocaleTask"> <classpath refid="maven.test.classpath"/> </taskdef> <mergeLocale from="src/main/bundles/Common.xml" with="src/main/bundles/Common_de_DE.xml" locales="de_DE;en,it" to="src/main/bundles/Common_de_DE.xml"/>
| Modifier and Type | Field and Description |
|---|---|
protected MBBundles |
loadedBundles |
protected MBBundles |
translatedBundles |
| Constructor and Description |
|---|
MergeLocaleTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected MBText |
findMBTextForLocale(String key,
String locale,
MBBundles bundles) |
String |
getFrom()
The xml file with path name to read from
|
String |
getLocales()
semicolon separated locale names
|
String |
getTo()
The xml file with the path name to write into
|
String |
getWith()
The xml file with new translated locales
|
protected void |
loadExecute() |
protected void |
outputExecute() |
protected void |
processExecute() |
void |
setFrom(String from) |
void |
setLocales(String locales) |
void |
setTo(String to) |
void |
setWith(String xmlWithNewLocale) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeprotected MBBundles loadedBundles
protected MBBundles translatedBundles
public String getFrom()
public void setFrom(String from)
public String getTo()
public void setTo(String to)
public String getWith()
public void setWith(String xmlWithNewLocale)
public String getLocales()
public void setLocales(String locales)
public void execute()
execute in class org.apache.tools.ant.Taskprotected void processExecute()
Copyright © 2015. All rights reserved.