mirror of https://github.com/apache/nifi.git
NIFI-12273 Fixed command.argument references in ExecuteStreamCommand docs
This closes #7941 Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
parent
1d125e9906
commit
880770f992
|
@ -53,7 +53,7 @@
|
|||
<p><b>NOTE:</b> the command should be on <code>$PATH</code> or it should be in the working directory, otherwise path also should be specified.</p>
|
||||
|
||||
<h4>Dynamic Properties</h4>
|
||||
<p>Arguments can be specified with Dynamic Properties. Dynamic Properties with the pattern of 'command.arguments.<commandIndex>' will be appended
|
||||
<p>Arguments can be specified with Dynamic Properties. Dynamic Properties with the pattern of 'command.argument.<commandIndex>' will be appended
|
||||
to the command in ascending order.</p>
|
||||
|
||||
<p>The above example with dynamic properties would look like this:</p>
|
||||
|
@ -64,11 +64,11 @@
|
|||
<th>Property Value</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>command.arguments.0</td>
|
||||
<td>command.argument.0</td>
|
||||
<td>-lah</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>command.arguments.1</td>
|
||||
<td>command.argument.1</td>
|
||||
<td>/path/to/dir</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -76,7 +76,7 @@
|
|||
<h3>Configuring environment variables</h3>
|
||||
<p>In addition to specifying command arguments using the Command Argument field or Dynamic Properties, users can also use environment variables with
|
||||
the ExecuteStreamCommand processor. Environment variables are a set of key-value pairs that can be accessed by processes running on the system.
|
||||
ExecuteStreamCommand will treat every Dynamic Property as an environment variable that doesn't match the pattern 'command.arguments.<commandIndex>'.</p>
|
||||
ExecuteStreamCommand will treat every Dynamic Property as an environment variable that doesn't match the pattern 'command.argument.<commandIndex>'.</p>
|
||||
|
||||
<p>Consider that we want to execute a Maven command with the processor. If there are multiple Java versions installed on the system, you can specify
|
||||
which version will be used by setting the <code>JAVA_HOME</code> environment variable. The output FlowFile will looke like this if we run
|
||||
|
|
Loading…
Reference in New Issue