| org.netbeans.nbbuild.L10nTask
L10nTask | public class L10nTask extends MatchingTask (Code) | | This task was created to create L10N kits.
The xml to call this task might look like:
Each resulting kit will be a tar file containing one directory
for each repository examined.
Each repository_directory will contain one tar-file
for each module with changed localizable files.
The structure of the tar file is as follows:
repository_dir/
module_tar/
generatedFile
contentFile
localizableFile1.html
localizableFile2.gif...
1. All localizable files (as defined in "localizableFile")
"localizableFile" is a list of file patterns difining all localizable source files.
"localizableFile" itself is not included in the kit.
2. A content file (as named in "contentFile")
This is a list of the names of all localizable files which need to be (re)localized.
3. A generated file (as named in "generatedFile")
This is a list of the names of all localizable files with the most recent
CVS revision number.
The generated file need not be committed to cvs until the files come back
localized. (This is a change from the procedure followed in late 2001).
As of version 1.1.2, converted Gzip methods to use ant 1.4.1, and added ability to
1) embed exclude patterns in the l10n.list file
(must use keyword "exclude " followed by the pattern.)
2) add ability to embed reading of additional files
(must use the keyword "read " followed by the path to the file)
The special case "read global" will read the file set by the property globalFile
3) add the ability to embed properties in the patterns. i
The special case "l10n-module" property will be set from within L10nTask
author: Erica Grevemeyer version: 1.1, Feb 4 11:21:09 PST 2002 version: 1.1.2 Aug 29 15:23:51 PDT 2002 |
Method Summary | |
public void | execute() | public void | executeLocalTarget(File topRoot, String module, String target) | public Hashtable<String, String> | getGeneratedFiles(File topDir, String mod) | public String[] | getLocalizableFiles(File topRoot, String module) | public void | mkTars(String srcDir, String fullTarfilePath, String fullIncludesFilePath, String module) | public boolean | printToAllFile(String fullTopDir, String module, String[] localizables) | public boolean | printToFile(String fullTopDir, String module) | public StringBuffer[] | processListFile(File topRoot, File inc, String module) | public void | setBuildDir(String s) | public void | setBuildNumber(String s) | public void | setChangedFile(String s) | public void | setDebug(boolean s) | public void | setDistDir(String s) | public void | setExcludePattern(String s) | public void | setGeneratedFile(String s) | public void | setGlobalFile(String s) | public void | setIncludePattern(String s) | public void | setLocalizableFile(String s) | public void | setModules(String s) | public void | setTopdirs(String s) |
DEBUG | static boolean DEBUG(Code) | | |
execute | public void execute() throws BuildException(Code) | | |
executeLocalTarget | public void executeLocalTarget(File topRoot, String module, String target) throws BuildException(Code) | | |
getLocalizableFiles | public String[] getLocalizableFiles(File topRoot, String module)(Code) | | You can use this function independently of "execute()", but
you have to set these attributes: localizableFile,
globalFile (if "read global" is used in any l10n.list
files), excludePattern (if desired), includePattern (if
desired)
Parameters: topRoot - Parameters: module - String[] |
printToAllFile | public boolean printToAllFile(String fullTopDir, String module, String[] localizables)(Code) | | Prints list of all localizable files found in respective module
Parameters: fullTopDir - - filesystem path to root of you working repository Parameters: module - - directory path name for which this call is being done Parameters: localizables - - list of localizable files true if file i/o operations were successful |
setDebug | public void setDebug(boolean s)(Code) | | |
setExcludePattern | public void setExcludePattern(String s)(Code) | | |
setGeneratedFile | public void setGeneratedFile(String s)(Code) | | |
setIncludePattern | public void setIncludePattern(String s)(Code) | | |
setLocalizableFile | public void setLocalizableFile(String s)(Code) | | |
|
|