<file> tag: Auto-recognize archive file format and allow archive filesets to be defined

Description

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.

Environment

None

Activity

Show:
René Krell
February 19, 2017, 11:08 PM
Edited

Example usage:

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.

Fixed

Assignee

René Krell

Reporter

René Krell

Impact

Functional - non-breaking and safe in existing environments

Components

Sprint

None

Fix versions

Affects versions

Priority

High
Configure