Package com.ibm.dbb.dependency
Class LinkEditScanner
- java.lang.Object
-
- com.ibm.dbb.dependency.LinkEditScanner
-
- All Implemented Interfaces:
ILinkEditScanner
public class LinkEditScanner extends java.lang.Object implements ILinkEditScanner
-
-
Constructor Summary
Constructors Constructor Description LinkEditScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getExcludeFilter()
Returns the current excludeFilter used by the load module scanner.java.lang.String
getLibpath()
Get the value of LIBPATH used for this instance of the Link Edit Scanner.java.lang.String
getScannerOutput()
Retrieve the raw output from the module scannerLogicalFile
scan(java.lang.String file)
Scan and collect logical dependency of a load moduleLogicalFile
scan(java.lang.String file, java.lang.String loadPDS)
Scan and collect logical dependency of a load moduleLogicalFile
scan(java.lang.String file, java.lang.String loadPDS, java.lang.String member)
Scan and collect logical dependency of a load modulevoid
setExcludeFilter(java.lang.String filter)
Set filter used to exclude certain information from the link edit scanning.void
setLibpath(java.lang.String libpath)
Override the default, /usr/lib, LIBPATH for this instance of the Link Edit Scanner.
-
-
-
Method Detail
-
scan
public LogicalFile scan(java.lang.String file) throws BuildException, java.io.IOException
Description copied from interface:ILinkEditScanner
Scan and collect logical dependency of a load module- Specified by:
scan
in interfaceILinkEditScanner
- Parameters:
file
- - HFS file that is being built (ex. MortgageApp/link/epsmlist.lnk)- Returns:
- LogicalFile for scanned output
- Throws:
BuildException
- an exception occurredjava.io.IOException
- an exception occurred
-
scan
public LogicalFile scan(java.lang.String file, java.lang.String loadPDS) throws BuildException, java.io.IOException
Description copied from interface:ILinkEditScanner
Scan and collect logical dependency of a load module- Specified by:
scan
in interfaceILinkEditScanner
- Parameters:
file
- - HFS file that is being built (ex. MortgageApp/link/epsmlist.lnk)loadPDS
- - name of PDS containing the load module- Returns:
- LogicalFile for scanned output
- Throws:
BuildException
- an exception occurredjava.io.IOException
- an exception occurred
-
scan
public LogicalFile scan(java.lang.String file, java.lang.String loadPDS, java.lang.String member) throws BuildException, java.io.IOException
Scan and collect logical dependency of a load module- Specified by:
scan
in interfaceILinkEditScanner
- Parameters:
file
- - HFS file that is being built (ex. MortgageApp/link/epsmlist.lnk)loadPDS
- - name of PDS containing the load modulemember
- - name of the load PDS member- Returns:
- LogicalFile for scanned output
- Throws:
BuildException
- an exception occurredjava.io.IOException
- an exception occurred
-
getScannerOutput
public java.lang.String getScannerOutput()
Retrieve the raw output from the module scanner- Specified by:
getScannerOutput
in interfaceILinkEditScanner
- Returns:
- raw output from load module parser
-
setExcludeFilter
public void setExcludeFilter(java.lang.String filter)
Set filter used to exclude certain information from the link edit scanning. The value contains a comma separated list of patterns. example: A filter of *.SUB1, *.SUB2 will exclude modules SUB1 and SUB2 from any dataset. To exclude member HELLO in PDS TEST.COBOL will be matched by the pattern TEST.COBOL.HELLO. The pattern TEST.COBOL.* will match any member in the data set TEST.COBOL. If the exclude filter is not set via this method, the scanner will use the build property dbb.LinkEditScanner.excludeNameFilter as the pattern.- Specified by:
setExcludeFilter
in interfaceILinkEditScanner
- Parameters:
filter
- - new exclude filter
-
getExcludeFilter
public java.lang.String getExcludeFilter()
Returns the current excludeFilter used by the load module scanner.- Specified by:
getExcludeFilter
in interfaceILinkEditScanner
- Returns:
- the exclude filter in effect for this scanner
-
getLibpath
public java.lang.String getLibpath()
Get the value of LIBPATH used for this instance of the Link Edit Scanner.- Specified by:
getLibpath
in interfaceILinkEditScanner
- Returns:
- LIBPATH
-
setLibpath
public void setLibpath(java.lang.String libpath)
Override the default, /usr/lib, LIBPATH for this instance of the Link Edit Scanner.- Specified by:
setLibpath
in interfaceILinkEditScanner
- Parameters:
libpath
- - the new value of LIBPATH. One can specify "$LIBPATH:/user/lib" as the new LIBPATH in order to add /user/lib to the existing environment's LIBPATH. Other substitution variables will be ignored.
-
-