public class SearchPathImpactFinder
extends java.lang.Object
Search path
The SearchPathImpactFinder
constructor requires a searchPath argument that is a simple formatted String used
to identify what changed files should impact analysis be performed on. Examples of search paths are listed below.
// Search path using specific file extensions
String copybookImpacts = "search:/u/build/repo?path=** /*.cpy;** /*.copy";
// Targeted search path with specific directories
String copybookImpacts = "search:/u/build/repo?path=MortgageApplication/copybook/*.cpy";
Constructor and Description |
---|
SearchPathImpactFinder(java.lang.String searchPath,
java.util.List<java.lang.String> collections)
Used to create an instance of the
SearchPathImpactFinder |
SearchPathImpactFinder(java.lang.String searchPath,
java.util.List<java.lang.String> collections,
boolean disableCache)
Used to create an instance of the
SearchPathImpactFinder |
Modifier and Type | Method and Description |
---|---|
java.util.Set<ImpactFile> |
findImpactedFiles(java.lang.String changedFile,
java.lang.String sourceDir)
This method uses the #getLogicalFile(String, String, boolean) method to retrieve the file's list of {@link LogicalDependency} to resolve.
|
java.util.List<java.lang.String> |
getCollections()
Returns the list of collections for the impact finder
|
java.lang.String |
getSearchPath()
Returns the dependency search path for the impact finder
|
java.util.List<com.ibm.dbb.dependency.internal.SearchPath> |
getSearchPathList() |
boolean |
isDisableCache()
Returns
true if the LogicalFile cache is disabled. |
public SearchPathImpactFinder(java.lang.String searchPath, java.util.List<java.lang.String> collections)
SearchPathImpactFinder
searchPath
- Dependency search pathcollections
- A list of DBB collections to run impact queries againstpublic SearchPathImpactFinder(java.lang.String searchPath, java.util.List<java.lang.String> collections, boolean disableCache)
SearchPathImpactFinder
searchPath
- Dependency search pathcollections
- A list of DBB collections to run impact queries againstdisableCache
- Used to disable the logical file cache.public java.util.Set<ImpactFile> findImpactedFiles(java.lang.String changedFile, java.lang.String sourceDir) throws BuildException, DependencyException, java.io.IOException
changedFile
- The changed source file to do impact analysis onsourceDir
- The source directory which contains the source fileImpactFile
for each source file impacted by this file being changedBuildException
- If no scanner for the source file is not registeredDependencyException
- If an error occurs during dependency resolutionjava.io.IOException
- If an IO error occurs during dependency resolutionpublic java.util.List<com.ibm.dbb.dependency.internal.SearchPath> getSearchPathList() throws BuildException
BuildException
public java.lang.String getSearchPath()
public java.util.List<java.lang.String> getCollections()
public boolean isDisableCache()
true
if the LogicalFile cache is disabled.<IBM Copyright © 2018 IBM Corp. All Rights Reserved.