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 be38c3cfd4 instructions to update hop script classpaths (synced from 
Dockerfile.web). fixes #3323
     new 993480d8ab Merge pull request #3433 from bamaer/3323
be38c3cfd4 is described below

commit be38c3cfd4d2e041973d7ffd43cbb7067996e259
Author: Bart Maertens <[email protected]>
AuthorDate: Mon Nov 20 20:19:14 2023 +0100

    instructions to update hop script classpaths (synced from Dockerfile.web). 
fixes #3323
---
 .../modules/ROOT/pages/hopweb/index.adoc           | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/docs/hop-dev-manual/modules/ROOT/pages/hopweb/index.adoc 
b/docs/hop-dev-manual/modules/ROOT/pages/hopweb/index.adoc
index b085e4fade..7695367292 100644
--- a/docs/hop-dev-manual/modules/ROOT/pages/hopweb/index.adoc
+++ b/docs/hop-dev-manual/modules/ROOT/pages/hopweb/index.adoc
@@ -84,6 +84,8 @@ export CATALINA_OPTS='${HOP_OPTIONS} 
-DHOP_AES_ENCODER_KEY="${HOP_AES_ENCODER_KE
 
 ----
 
+=== Project settings
+
 If you want to run Hop Web with the `default` and `samples` projects, make 
sure the project root path in `hop-config.json` is set to 
`{openvar}HOP_CONFIG_FOLDER{closevar}.
 
 On Linux or Mac, use the following sed command to fix this in one line:
@@ -112,6 +114,32 @@ On Windows, modify `hop-config.json` to make sure 
`projectsConf` looks like the
 
 ----
 
+
+=== Script classpaths 
+
+To make sure all hop scripts are accessible and work correctly with Hop Web, 
update their classpaths: 
+
+This can be done with a couple of `sed` commands on Mac and Linux: 
+
+[source, bash]
+----
+RUN  sed -i 's&lib/core/*&../../lib/*:WEB-INF/lib/*:lib/core/*&g' 
${CATALINA_HOME}/webapps/ROOT/hop-run.sh
+RUN  sed -i 's&lib/core/*&../../lib/*:WEB-INF/lib/*:lib/core/*&g' 
${CATALINA_HOME}/webapps/ROOT/hop-conf.sh
+RUN  sed -i 's&lib/core/*&../../lib/*:WEB-INF/lib/*:lib/core/*&g' 
${CATALINA_HOME}/webapps/ROOT/hop-search.sh
+RUN  sed -i 's&lib/core/*&../../lib/*:WEB-INF/lib/*:lib/core/*&g' 
${CATALINA_HOME}/webapps/ROOT/hop-encrypt.sh
+RUN  sed -i 's&lib/core/*&../../lib/*:WEB-INF/lib/*:lib/core/*&g' 
${CATALINA_HOME}/webapps/ROOT/hop-import.sh
+RUN  sed -i 's&lib/core/*&../../lib/*:WEB-INF/lib/*:lib/core/*&g' 
${CATALINA_HOME}/webapps/ROOT/hop-search.sh
+----
+
+The `CLASSPATH` lines in the various scripts should look similar to the one 
below after editing: 
+
+`CLASSPATH="../../lib/*:WEB-INF/lib/*:lib/core/**:lib/beam/*:lib/swt/osx/arm64/*"`
+
+Once the classpaths have been updated, make sure to make the scripts 
executable: 
+
+`chmod +x ${CATALINA_HOME}/webapps/ROOT/*.sh`
+
+
 === Start Tomcat
 
 Run `bin/startup.sh` (Linux/Mac) or `bin/startup.bat` (Windows).

Reply via email to