public class Property2XMLConverterTask
extends org.apache.tools.ant.Task
Description: Create a bundles-xml (or excel) file fromProperty some plain property (or xml) files
<prop2xml locales="en;de;zh" fromProperty="grails-app/i18n/messages"
to="i18n/messages.xml" fromCharset="UTF-8"
interfaceName="MyMessages"/>
| Constructor and Description |
|---|
Property2XMLConverterTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
String |
getFromCharset() |
String |
getFromProperty()
path/filename without _de_DE.properties /
each locale + .properties will be added to this string to find the properties source file to convert
|
String |
getInterfaceName()
name of the interface for writing into the xml error-sections file
|
protected String |
getInterfacePackage() |
String |
getLocales()
all locales for which a resource bundle exists, separated by ;
|
protected String |
getPropertyBaseName() |
String |
getTo()
path/filename of the xml error-section file to be created
|
boolean |
isXml() |
void |
setFromCharset(String fromCharset) |
void |
setFromProperty(String aFromProperty) |
void |
setInterfaceName(String aInterfaceName) |
void |
setLocales(String aLocales) |
void |
setTo(String aToXML) |
void |
setXml(boolean xml) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic String getFromCharset()
public void setFromCharset(String fromCharset)
public boolean isXml()
public void setXml(boolean xml)
public String getInterfaceName()
public void setInterfaceName(String aInterfaceName)
public String getFromProperty()
public void setFromProperty(String aFromProperty)
public String getTo()
public void setTo(String aToXML)
public String getLocales()
public void setLocales(String aLocales)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionprotected String getPropertyBaseName()
protected String getInterfacePackage()
Copyright © 2015. All rights reserved.