wt.tools.boot
Class UpdateJarIncludesFromBOM

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

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

Simple Ant task to add the intersection of a BOM (limited to and relative to codebase) and each FCS.includes and/or DSU.includes file specified to the corresponding Cust.includes or DSU.includes file. In the case where DSU.includes is the target only FCS.includes is used in the intersection, whereas when Cust.includes is the target, then both FCS.includes and DSU.includes are intersected.


Field Summary
private  File bomFile
           
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  String logicalJarNames
           
private  boolean traceOnly
           
private  boolean updatingCustJars
           
 
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
UpdateJarIncludesFromBOM()
           
 
Method Summary
 void execute()
          Execute the task.
 void setBomFile(File bomFile)
           
 void setJarContentsDir(File jarContentsDir)
           
 void setLogicalJarNames(String logicalJarNames)
           
 void setTraceOnly(boolean traceOnly)
           
 void setUpdatingCustJars(boolean updatingCustJars)
           
private  void updateIncludesFromBOM(File dir, File fcsIncludesFile, Collection bomColl)
           
 
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

jarContentsDir

private File jarContentsDir

logicalJarNames

private String logicalJarNames

bomFile

private File bomFile

updatingCustJars

private boolean updatingCustJars

traceOnly

private boolean traceOnly
Constructor Detail

UpdateJarIncludesFromBOM

public UpdateJarIncludesFromBOM()
Method Detail

setJarContentsDir

public void setJarContentsDir(File jarContentsDir)

setLogicalJarNames

public void setLogicalJarNames(String logicalJarNames)

setBomFile

public void setBomFile(File bomFile)

setUpdatingCustJars

public void setUpdatingCustJars(boolean updatingCustJars)

setTraceOnly

public void setTraceOnly(boolean traceOnly)

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute the task.

Throws:
org.apache.tools.ant.BuildException

updateIncludesFromBOM

private void updateIncludesFromBOM(File dir,
                                   File fcsIncludesFile,
                                   Collection bomColl)
                            throws FileNotFoundException,
                                   IOException
Throws:
FileNotFoundException
IOException