public ZipMessage addEntry ( Resource resource ) { try { addEntry ( new Entry ( resource . getFile ( ) ) ) ; } catch ( IOException e ) { throw new CitrusRuntimeException ( "Failed to read zip entry content from given resource" , e ) ; } return this ; }
Adds new zip archive entry . Resource can be a file or directory . In case of directory all files will be automatically added to the zip archive . Directory structures are retained throughout this process .