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

rainerjung pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-connectors.git


The following commit(s) were added to refs/heads/main by this push:
     new d6d2c15e1 Add a jk-status test to mod_jk for Windows build
d6d2c15e1 is described below

commit d6d2c15e1454cd81e797a197b0048d422f185269
Author: rainerjung <[email protected]>
AuthorDate: Mon Jun 29 21:46:49 2026 +0200

    Add a jk-status test to mod_jk for Windows build
---
 .github/workflows/makefile-mod_jk-win.yml | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/makefile-mod_jk-win.yml 
b/.github/workflows/makefile-mod_jk-win.yml
index 3b989a885..9af9fbc7d 100644
--- a/.github/workflows/makefile-mod_jk-win.yml
+++ b/.github/workflows/makefile-mod_jk-win.yml
@@ -33,17 +33,14 @@ jobs:
       shell: bash
       run: |
             curl -L -o httpd.zip 
https://www.apachelounge.com/download/VS18/binaries/httpd-${APACHE_VERSION}-${{ 
matrix.httpd_arch }}-VS18.zip
-            ls -l
-            pwd
-            echo ENV: $GITHUB_WORKSPACE
-            echo GH: ${{ github.workspace }}
             unzip -q httpd.zip -d ApacheLounge
+            echo "APACHE2_HOME_BASH=`pwd`/ApacheLounge/Apache24" >> 
"$GITHUB_ENV"
     - name: Build using Nmake
       shell: cmd
       run: |
             echo on
-            echo %CD%
-            set APACHE2_HOME=%CD%\ApacheLounge\Apache24
+            set APACHE2_HOME=%GITHUB_WORKSPACE%\ApacheLounge\Apache24
+            echo %APACHE2_HOME%
             dir %APACHE2_HOME%
             call "C:\Program Files\Microsoft Visual 
Studio\18\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
             cd native
@@ -60,3 +57,23 @@ jobs:
       with:
         name: ${{ matrix.winver }}-${{ matrix.cpu }}-mod_jk
         path: native\apache-2.0\${{ matrix.winver }}_${{ matrix.cpu 
}}_DLL_RELEASE\mod_jk.so
+    - name: install mod_jk
+      shell: bash
+      run: |
+            cp -p native/apache-2.0/${{ matrix.winver }}_${{ matrix.cpu 
}}_DLL_RELEASE/mod_jk.so ${APACHE2_HOME_BASH}/modules/
+            cp -p conf/* ${APACHE2_HOME_BASH}/conf/
+            cd ${APACHE2_HOME_BASH}/conf/
+            export APACHE2_HOME="$GITHUB_WORKSPACE\ApacheLounge\Apache24"
+            sed -i.orig -e 's# worker.node1.port=8109# 
worker.node1.port=8009#' -e 
's#worker.node2.activation=A#worker.node2.activation=S#' workers.properties
+            sed -i.orig -e 's:# *JkMountFile 
conf/extra/uriworkermap.properties:JkMountFile 
conf/extra/uriworkermap.properties:' httpd-jk.conf
+            sed -i.orig -e 's:Listen 80:Listen 8000:' -e 's:Define 
SRVROOT.*:Define SRVROOT "'$APACHE2_HOME'":' -e httpd.conf
+            echo "Include conf/httpd-jk.conf" >> httpd.conf
+            diff -u httpd.conf.orig httpd.conf
+            diff -u httpd-jk.conf.orig httpd-jk.conf
+            diff -u workers.properties.orig workers.properties
+            cd ..
+            bin/httpd.exe -t
+            bin/httpd.exe -k install
+            bin/httpd.exe -k start
+            curl http://localhost:8000/jk-status > jk-status.out
+            grep -q 'JK Status Manager for localhost:8000' jk-status.out


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to