private static void unpackFace ( File outputDirectory ) throws IOException { ClassLoader loader = AllureMain . class . getClassLoader ( ) ; for ( ClassPath . ResourceInfo info : ClassPath . from ( loader ) . getResources ( ) ) { Matcher matcher = REPORT_RESOURCE_PATTERN . matcher ( info . getResourceName ( ) ) ; if ( matcher . find ( ) ) { String resourcePath = matcher . group ( 1 ) ; File dest = new File ( outputDirectory , resourcePath ) ; Files . createParentDirs ( dest ) ; try ( FileOutputStream output = new FileOutputStream ( dest ) ; InputStream input = info . url ( ) . openStream ( ) ) { IOUtils . copy ( input , output ) ; LOGGER . debug ( "{} successfully copied." , resourcePath ) ; } } } }
Unpack report face to given directory .