Class BackportBase
java.lang.Object
org.apache.tomcat.buildutil.translate.BackportBase
- Direct Known Subclasses:
BackportEnglish, BackportTranslations
Base class providing common implementation for back-port utilities.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PropertiesEnglish source properties.protected final Map<String, Properties> Map of source translation properties, keyed by locale.protected final FileDirectory for storing exported translation files.protected final PropertiesEnglish target properties.protected final FileRoot directory of the target project.protected final Map<String, Properties> Map of target translation properties, keyed by locale. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBackportBase(String... args) Constructs a BackportBase instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidexecute()Executes the back-port operation.
-
Field Details
-
sourceTranslations
Map of source translation properties, keyed by locale. -
targetTranslations
Map of target translation properties, keyed by locale. -
targetRoot
Root directory of the target project. -
sourceEnglish
English source properties. -
targetEnglish
English target properties. -
storageDir
Directory for storing exported translation files.
-
-
Constructor Details
-
BackportBase
Constructs a BackportBase instance.- Parameters:
args- array with a single element: the target directory path- Throws:
IOException- if an I/O error occurs while reading translation files
-
-
Method Details
-
execute
Executes the back-port operation.- Throws:
IOException- if an I/O error occurs
-