wt.tools.boot
Class ExpandJarLocalesTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bywt.tools.boot.ExpandJarLocalesTask

public class ExpandJarLocalesTask
extends org.apache.tools.ant.Task


Field Summary
private  File codebaseDir
           
private static String CUST_SUFFIX
           
private static String DSU_SUFFIX
           
private static String FCS_SUFFIX
           
private static int FCS_SUFFIX_LEN
           
private  File jarContentsDir
           
private  File localeListFile
           
private  String logicalJarNames
           
private  boolean traceOnly
           
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
ExpandJarLocalesTask()
           
 
Method Summary
 boolean accept(File dir, String filename)
           
 void execute()
           
private  void execute(Collection desiredLocales, File fcsJarIncludesFile, Collection localeSubstrings)
           
private  Collection getLocalizedEntries(String entry, Collection localeStrings, String localeSubString, int entryCharIdx, boolean additive)
           
 void setCodebaseDir(File codebaseDir)
           
 void setJarContentsDir(File jarContentsDir)
           
 void setLocaleListFile(File localeListFile)
           
 void setLogicalJarNames(String logicalJarNames)
           
 void setTraceOnly(boolean traceOnly)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FCS_SUFFIX

private static final String FCS_SUFFIX
See Also:
Constant Field Values

FCS_SUFFIX_LEN

private static final int FCS_SUFFIX_LEN

DSU_SUFFIX

private static final String DSU_SUFFIX
See Also:
Constant Field Values

CUST_SUFFIX

private static final String CUST_SUFFIX
See Also:
Constant Field Values

codebaseDir

private File codebaseDir

jarContentsDir

private File jarContentsDir

logicalJarNames

private String logicalJarNames

localeListFile

private File localeListFile

traceOnly

private boolean traceOnly
Constructor Detail

ExpandJarLocalesTask

public ExpandJarLocalesTask()
Method Detail

setCodebaseDir

public void setCodebaseDir(File codebaseDir)

setJarContentsDir

public void setJarContentsDir(File jarContentsDir)

setLogicalJarNames

public void setLogicalJarNames(String logicalJarNames)

setLocaleListFile

public void setLocaleListFile(File localeListFile)

setTraceOnly

public void setTraceOnly(boolean traceOnly)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

accept

public boolean accept(File dir,
                      String filename)

execute

private void execute(Collection desiredLocales,
                     File fcsJarIncludesFile,
                     Collection localeSubstrings)
              throws IOException
Throws:
IOException

getLocalizedEntries

private Collection getLocalizedEntries(String entry,
                                       Collection localeStrings,
                                       String localeSubString,
                                       int entryCharIdx,
                                       boolean additive)