Class BackportTranslations
- java.lang.Object
-
- org.apache.tomcat.buildutil.translate.BackportBase
-
- org.apache.tomcat.buildutil.translate.BackportTranslations
-
public class BackportTranslations extends BackportBase
Generates a set of translated property files to back-port updates to a previous version. If the source and target use the same value for the English key then any translated value for that key is copied from the source to the target.
-
-
Field Summary
-
Fields inherited from class org.apache.tomcat.buildutil.translate.BackportBase
sourceEnglish, sourceTranslations, storageDir, targetEnglish, targetRoot, targetTranslations
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBackportTranslations(java.lang.String[] args)Constructs a BackportTranslations instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexecute()Executes the back-port operation.static voidmain(java.lang.String... args)Entry point for the translations back-port tool.
-
-
-
Constructor Detail
-
BackportTranslations
protected BackportTranslations(java.lang.String[] args) throws java.io.IOExceptionConstructs a BackportTranslations instance.- Parameters:
args- command line arguments; a single argument specifying the target directory- Throws:
java.io.IOException- if an I/O error occurs
-
-
Method Detail
-
main
public static void main(java.lang.String... args) throws java.io.IOExceptionEntry point for the translations back-port tool.- Parameters:
args- command line arguments; a single argument specifying the target directory- Throws:
java.io.IOException- if an I/O error occurs
-
execute
protected void execute() throws java.io.IOExceptionDescription copied from class:BackportBaseExecutes the back-port operation.- Specified by:
executein classBackportBase- Throws:
java.io.IOException- if an I/O error occurs
-
-