public boolean addSubsystemFileSourceFromZipFile ( String subsystem , File file ) throws IOException { try ( ZipFile zip = new ZipFile ( file ) ) { String entryName = "subsystem-templates/" + subsystem ; ZipEntry entry = zip . getEntry ( entryName ) ; if ( entry != null ) { addSubsystemFileSource ( subsystem , file , entry ) ; return true ; } } return false ; }
Adds the file source for the specified subsystem from the specified zip file .