private void registerPathMapping ( PathMapping pathMapping , String filePath ) throws IOException { if ( filePath != null ) { Path p = Paths . get ( filePath ) ; boolean isDir = Files . isDirectory ( p ) ; if ( ! isDir ) { p = p . getParent ( ) ; } if ( pathMapping . isRecursive ( ) ) { registerAll ( p , Arrays . asList ( pathMapping ) ) ; } else { register ( p , Arrays . asList ( pathMapping ) ) ; } } }
Register the path mapping