This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 3ad09ecfa2 added tabs sections for Windows and Linux/MacOS samples 
#2044
     new a8220193c2 Merge pull request #2052 from bamaer/2044
3ad09ecfa2 is described below

commit 3ad09ecfa295cdfdbbd256b6e17902bd35c5310e
Author: Bart Maertens <[email protected]>
AuthorDate: Mon Dec 12 14:24:40 2022 +0100

    added tabs sections for Windows and Linux/MacOS samples #2044
---
 .../modules/ROOT/pages/hop-run/index.adoc          | 72 +++++++++++++++++++++-
 1 file changed, 71 insertions(+), 1 deletion(-)

diff --git a/docs/hop-user-manual/modules/ROOT/pages/hop-run/index.adoc 
b/docs/hop-user-manual/modules/ROOT/pages/hop-run/index.adoc
index ba0d75ed8c..bfd5483132 100644
--- a/docs/hop-user-manual/modules/ROOT/pages/hop-run/index.adoc
+++ b/docs/hop-user-manual/modules/ROOT/pages/hop-run/index.adoc
@@ -111,10 +111,80 @@ Check the 
xref:pipeline/pipeline-run-configurations/pipeline-run-configurations.
 
 == Examples
 
+The example below runs the `switch-case-basic.hpl` pipeline from the samples 
project through `hop-run`. +
+&nbsp; +
+
+[tabs]
+====
+Windows::
++
+--
+Open a command (CMD) window, change to the directory where you unzipped Apache 
Hop and run:
+
+[code, shell]
+----
+hop-run.bat -j samples -r local -f 
${PROJECT_HOME}/transforms/switch-case-basic.hpl
+----
+
+Your output will be similar to what is shown below:
+
+[code, shell]
+----
+"C:\Program Files\Microsoft\jdk-11.0.17.8-hotspot\\bin\java" -classpath 
lib\core\*;lib\beam\*;lib\swt\win64\*
+-Djava.library.path=lib\core;lib\beam "-Xmx2048m" -DHOP_AUDIT_FOLDER=.\audit
+-DHOP_PLATFORM_OS=Windows -DHOP_PLATFORM_RUNTIME=Run 
-DHOP_AUTO_CREATE_CONFIG=Y org.apache.hop.run.HopRun
+-j samples -r local -f ${PROJECT_HOME}/transforms/switch-case-basic.hpl
+===[Starting HopRun]=========================================================
+2022/12/12 14:09:58 - HopRun - Enabling project 'samples'
+2022/12/12 14:09:58 - HopRun - Starting pipeline: 
config/projects/samples/transforms/switch-case-basic.hpl
+2022/12/12 14:09:58 - switch-case-basic - Executing this pipeline using the 
Local Pipeline Engine with run configuration 'local'
+2022/12/12 14:09:58 - switch-case-basic - Execution started for pipeline 
[switch-case-basic]
+2022/12/12 14:09:58 - Test Data.0 - Finished processing (I=0, O=0, R=0, W=5, 
U=0, E=0)
+2022/12/12 14:09:58 - Switch id.0 - Finished processing (I=0, O=0, R=5, W=5, 
U=0, E=0)
+2022/12/12 14:09:58 - Output 2.0 - Finished processing (I=0, O=0, R=1, W=1, 
U=0, E=0)
+2022/12/12 14:09:58 - Output default.0 - Finished processing (I=0, O=0, R=1, 
W=1, U=0, E=0)
+2022/12/12 14:09:58 - Output 1.0 - Finished processing (I=0, O=0, R=1, W=1, 
U=0, E=0)
+2022/12/12 14:09:58 - Output 4.0 - Finished processing (I=0, O=0, R=1, W=1, 
U=0, E=0)
+2022/12/12 14:09:58 - Output 3.0 - Finished processing (I=0, O=0, R=1, W=1, 
U=0, E=0)
+2022/12/12 14:09:58 - switch-case-basic - Pipeline duration : 0.542 seconds [  
0.542" ]
+----
+
+--
+
+Linux, macOS::
++
+--
+
+Open a terminal, change to the directory where you unzipped Apache Hop and run:
+
+[code, shell]
 ----
-./hop-run.sh -j=transforms -r=local -f=/path/to/worklow/file.hwf
+./hop-run.sh -j samples -r local -f 
${PROJECT_HOME}/transforms/switch-case-basic.hpl
 ----
 
+Your output will be similar to what is shown below:
+
+[code, shell]
+----
+2022/12/12 14:06:39 - HopRun - Enabling project 'samples'
+2022/12/12 14:06:39 - HopRun - Relative path filename specified: 
config/projects/samples//transforms/switch-case-basic.hpl
+2022/12/12 14:06:39 - HopRun - Starting pipeline: 
config/projects/samples//transforms/switch-case-basic.hpl
+2022/12/12 14:06:39 - switch-case-basic - Executing this pipeline using the 
Local Pipeline Engine with run configuration 'local'
+2022/12/12 14:06:39 - switch-case-basic - Execution started for pipeline 
[switch-case-basic]
+2022/12/12 14:06:39 - Test Data.0 - Finished processing (I=0, O=0, R=0, W=5, 
U=0, E=0)
+2022/12/12 14:06:39 - Switch id.0 - Finished processing (I=0, O=0, R=5, W=5, 
U=0, E=0)
+2022/12/12 14:06:39 - Output 2.0 - Finished processing (I=0, O=0, R=1, W=1, 
U=0, E=0)
+2022/12/12 14:06:39 - Output default.0 - Finished processing (I=0, O=0, R=1, 
W=1, U=0, E=0)
+2022/12/12 14:06:39 - Output 4.0 - Finished processing (I=0, O=0, R=1, W=1, 
U=0, E=0)
+2022/12/12 14:06:39 - Output 3.0 - Finished processing (I=0, O=0, R=1, W=1, 
U=0, E=0)
+2022/12/12 14:06:39 - Output 1.0 - Finished processing (I=0, O=0, R=1, W=1, 
U=0, E=0)
+2022/12/12 14:06:39 - switch-case-basic - Pipeline duration : 0.499 seconds [  
0.499" ]
+----
+
+
+--
+====
+
 === Parameter Examples
 This is a list of examples on how the parameters on this command are parsed
 

Reply via email to