public class BundleWriterJson extends BundleWriter
BundleWriter.FileTypeallowedLocales, bundles, configFile, currentBundle, debugMode, deleteOldFiles, fileType, flexLayout, myUsedLocales, outputPath, overwrite, task| Constructor and Description |
|---|
BundleWriterJson(org.apache.tools.ant.Task task,
String configFile,
MBBundle currentBundle,
String outputPath,
String outputFile,
BundleWriter.FileType fileType,
Set<String> allowedLocales) |
| Modifier and Type | Method and Description |
|---|---|
static BundleWriterJson |
build(MessageBundleTask task,
String configFile,
MBBundle currentBundle,
String outputPath,
String outputFile,
BundleWriter.FileType fileType,
Set<String> allowedLocales) |
protected StringBuilder |
buildOutputFileNameBase() |
String |
getOutputFile() |
boolean |
isMerged() |
void |
setMerged(boolean merged) |
protected String |
suffix() |
protected void |
writeOutputFilePerLocale(String locale) |
buildOutputFileNameBase, createProperties, createProperties, deleteFiles, deleteFiles, execute, getCurrentBundle, getFileName, getFileNameFlex, getFileNameJava, getLocalesUsed, getLocalesUsed, getOutputPath, getOutputPathName, isFlexLayout, mkdirs, needsNewFiles, setBundles, setDebugMode, setDeleteOldFiles, setFlexLayout, setOverwrite, writeOutputFilespublic void setMerged(boolean merged)
public String getOutputFile()
public boolean isMerged()
protected void writeOutputFilePerLocale(String locale) throws Exception
writeOutputFilePerLocale in class BundleWriterExceptionprotected StringBuilder buildOutputFileNameBase()
buildOutputFileNameBase in class BundleWriterprotected String suffix()
suffix in class BundleWriterpublic static BundleWriterJson build(MessageBundleTask task, String configFile, MBBundle currentBundle, String outputPath, String outputFile, BundleWriter.FileType fileType, Set<String> allowedLocales)
Copyright © 2018. All rights reserved.