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

dsoumis pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git

commit 3ec93b3a4fb1ceb228f9d48ab4fbf8313b9f5596
Author: Dimitris Soumis <[email protected]>
AuthorDate: Mon Feb 9 14:56:39 2026 +0200

    Add httpd properties in build.xml
---
 build.xml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/build.xml b/build.xml
index 9a666f4bbe..d535274f1e 100644
--- a/build.xml
+++ b/build.xml
@@ -222,6 +222,10 @@
   <!-- The OpenSSL tests cases be disabled by specifying an invalid path here 
-->
   <property name="test.openssl.path" value="" />
 
+  <!-- Location of Httpd binary (file name, not directory) -->
+  <!-- The Httpd tests cases be disabled by specifying an invalid path here -->
+  <property name="test.httpd.path" value="" />
+
   <!-- Include .gitignore in src distributions. -->
   <!-- .git and .gitignore are in defaultexcludes since Ant 1.8.2 -->
   <defaultexcludes add="**/.git" />
@@ -2138,6 +2142,22 @@
     </condition>
   </target>
 
+  <target name="test-httpd-exists" description="Checks for the httpd binary">
+    <property environment="env" />
+    <condition property="test.httpd.exists">
+      <or>
+        <and>
+          <length string="${test.httpd.path}" trim="true" length="0" 
when="gt"/>
+          <available file="${test.httpd.path}" property="test.httpd.exists"/>
+        </and>
+        <and>
+          <length string="${test.httpd.path}" trim="true" length="0" 
when="eq"/>
+          <available file="httpd" filepath="${env.PATH}" 
property="test.httpd.exists"/>
+        </and>
+      </or>
+    </condition>
+  </target>
+
   <!-- Set native specific properties -->
   <condition property="native.nativeaccess" 
value="--enable-native-access=ALL-UNNAMED"><javaversion 
atleast="22"/></condition>
   <property name="native.nativeaccess" value="-Dtest.1=1"/>
@@ -2196,6 +2216,7 @@
           <sysproperty key="tomcat.test.accesslog" value="${test.accesslog}" />
           <sysproperty key="tomcat.test.reports" value="${test.reports}" />
           <sysproperty key="tomcat.test.openssl.path" 
value="${test.openssl.path}" />
+          <sysproperty key="tomcat.test.httpd.path" value="${test.httpd.path}" 
/>
           <sysproperty key="tomcat.test.openssl.unimplemented" 
value="${test.openssl.unimplemented}" />
           <sysproperty key="tomcat.test.relaxTiming" 
value="${test.relaxTiming}" />
           <sysproperty key="tomcat.test.sslImplementation" 
value="${test.sslImplementation}" />


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

Reply via email to