unzip-extension

XML Calabash extension step for unzipping whole archives

Repository
Git URL https://github.com/transpect/unzip-extension.git
SVN URL https://github.com/transpect/unzip-extension
Base URI http://transpect.io/calabash-extensions/unzip-extension/

Source ⬇

tr-internal:unzip

Will extract a complete zip file or a single contained file to a specified destination folder.

Import

<p:import href="http://transpect.io/calabash-extensions/unzip-extension/internal-unzip-declaration.xpl"/>

Synopsis

<tr-internal:unzip xmlns:tr-internal="http://transpect.io/internal">
  <p:output port="result" primary="true"/>
  <p:option name="zip" required="true"/>
  <p:option name="dest-dir" required="false"/>
  <p:option name="overwrite" required="false" select="'no'"/>
  <p:option name="file" required="false"/>
  <p:option name="list-only" required="false" select="'no'"/>
</tr-internal:unzip>

tr:unzip

Provides an interface to tr-internal:unzip that prevents users from accidentally deleting precious directories and that provides a hierarchized representation of the archive contents. Attempts to create the hierarchized representation directly in Java from the archive member list have failed in that it could not reliably be detected which members are empty directories and which are files. Therefore we have reverted to the original unzip step implementation, https://github.com/transpect/unzip-extension/commit/5438d48, which is now rebranded as tr-internal:unzip. See the discussion/spec at https://github.com/transpect/unzip-extension/issues/7#issuecomment-248242296

Import

<p:import href="http://transpect.io/calabash-extensions/unzip-extension/unzip-declaration.xpl"/>

Dependencies

Synopsis

<tr:unzip xmlns:tr="http://transpect.io">
  <p:output port="result" primary="true"/>
  <p:output port="list-with-directories"/>
  <p:option name="zip" required="true"/>
  <p:option name="dest-dir" required="false"/>
  <p:option name="overwrite" select="'yes'"/>
  <p:option name="safe" select="'yes'"/>
  <p:option name="list-only" required="false" select="'no'"/>
</tr:unzip>

GitHub sync date: 2024-04-23+02:00