Enhance the <file> tag in <pack> by the following features:
auto-recognize compression and archive format (independently on the file name extension)
add support for all compression and archive formats supported by common-compression
add <archivefileset> to filter and redirect extracted contents when being added as files and directories to a pack during compiling.
This part extracts the contents of the original Oracle JRE archive as received from the download site, but without the root directory jre1.8.0_121 from the archive to an installation folder of your choice, which can be referred to as %JAVA_HOME%.
An <archivefileset> does not allow the targetdir attribute to be defined. The target dir for that filter operation is taken from the targetdir attribute of the embedding <file> tag.