cpnz:copy

Copies resources to a destination folder.

Declaration

<p:declare-step type="cpnz:copy">
  <p:input port="source"/>
  <p:output port="result"/>
  <p:option name="cpnz:destination" required="true"/>
  <p:option name="fail-on-error" required="false" select="'true'"/>
</p:declare-step>

Usage

The destination folder is (specified using cpnz:destination option.

The list of resources to copy is passed as an XML document in the primary input port.

<?xml version="1.0"?>
<cpnz:copy xmlns:cpnz="http://www.componize.org/pipeline/1.0">
  <cpnz:file href="relative/path"/>
  <cpnz:file href="/absolute/path"/>
</cpnz:copy>