public void addAllSubsystemFileSourcesFromZipFile ( File file ) throws IOException { try ( ZipFile zip = new ZipFile ( file ) ) { // extract subsystem template and schema, if present if ( zip . getEntry ( "subsystem-templates" ) != null ) { Enumeration < ? extends ZipEntry > entries = zip . entries ( ) ; while ( entries . hasMoreElements ( ) ) { ZipEntry entry = entries . nextElement ( ) ; if ( ! entry . isDirectory ( ) ) { String entryName = entry . getName ( ) ; if ( entryName . startsWith ( "subsystem-templates/" ) ) { addSubsystemFileSource ( entryName . substring ( "subsystem-templates/" . length ( ) ) , file , entry ) ; } } } } } }
Adds all file sources in the specified zip file .