wt.tools.boot
Class ConsolidateDuplicateJarEntriesTask

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

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


Field Summary
private static String[] ALLOWABLE_JAR_COMPONENT_TYPES
           
private static String INCLUDES_FILE_SUFFIX
           
private  String jarComponentType
           
private  File jarContentsDir
           
private  File jarManifestsDir
           
private  String logicalJarNames
           
private static String MANIFEST_FILE_SUFFIX
           
private static int MANIFEST_FILE_SUFFIX_LEN
           
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
ConsolidateDuplicateJarEntriesTask()
           
 
Method Summary
private  void collectInputFiles(Set inputFileSet, String jarName, Set selectedJarNames, JarDependencies jarDependencies)
           
 void execute()
           
private  void process(String jarName, Set selectedJarNames, JarDependencies jarDependencies, Set processedJarNames)
           
private  void sanitizeJarComponentType()
           
 void setJarComponentType(String jarComponentType)
           
 void setJarContentsDir(File jarContentsDir)
           
 void setJarManifestsDir(File jarManifestsDir)
           
 void setLogicalJarNames(String logicalJarNames)
           
 void setTraceOnly(boolean traceOnly)
           
private  void trace(File[] inputFiles, File outputFile)
           
 
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

INCLUDES_FILE_SUFFIX

private static final String INCLUDES_FILE_SUFFIX
See Also:
Constant Field Values

MANIFEST_FILE_SUFFIX

private static final String MANIFEST_FILE_SUFFIX
See Also:
Constant Field Values

MANIFEST_FILE_SUFFIX_LEN

private static final int MANIFEST_FILE_SUFFIX_LEN

ALLOWABLE_JAR_COMPONENT_TYPES

private static final String[] ALLOWABLE_JAR_COMPONENT_TYPES

jarManifestsDir

private File jarManifestsDir

jarContentsDir

private File jarContentsDir

logicalJarNames

private String logicalJarNames

jarComponentType

private String jarComponentType

traceOnly

private boolean traceOnly
Constructor Detail

ConsolidateDuplicateJarEntriesTask

public ConsolidateDuplicateJarEntriesTask()
Method Detail

setJarManifestsDir

public void setJarManifestsDir(File jarManifestsDir)

setJarContentsDir

public void setJarContentsDir(File jarContentsDir)

setLogicalJarNames

public void setLogicalJarNames(String logicalJarNames)

setJarComponentType

public void setJarComponentType(String jarComponentType)

setTraceOnly

public void setTraceOnly(boolean traceOnly)

execute

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

sanitizeJarComponentType

private void sanitizeJarComponentType()
                               throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

process

private void process(String jarName,
                     Set selectedJarNames,
                     JarDependencies jarDependencies,
                     Set processedJarNames)
              throws FileNotFoundException,
                     IOException
Throws:
FileNotFoundException
IOException

collectInputFiles

private void collectInputFiles(Set inputFileSet,
                               String jarName,
                               Set selectedJarNames,
                               JarDependencies jarDependencies)

trace

private void trace(File[] inputFiles,
                   File outputFile)