PackageIdentifier function ( PackageIdentifier arg0 , ImmutableSet < PackageIdentifier > arg1 ) { for ( int loc0 = arg0 . getPackageFragment ( ) . segmentCount ( ) ; loc0 >= 0 ; loc0 -- ) { PackageIdentifier loc1 = createInRepo ( arg0 , arg0 . getPackageFragment ( ) . subFragment ( 0 , loc0 ) ) ; if ( arg1 . contains ( loc1 ) ) { return loc1 ; } } return null ; }
returns the longest prefix from a given set of ` prefixes ' that are contained in ` path ' . i.e the closest ancestor directory containing path . returns null if none found . concode_field_sep Logger LOG concode_elem_sep boolean LOG_FINER concode_elem_sep Path workspace concode_elem_sep String[] prefixes concode_elem_sep ImmutableMap<PackageIdentifier,Path> packageRoots concode_elem_sep String productName concode_field_sep PackageIdentifier getParent concode_elem_sep PackageIdentifier createInRepo concode_elem_sep void plantSymlinkForest concode_elem_sep void deleteTreesBelowNotPrefixed