You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ds...@apache.org on 2026/02/27 11:30:45 UTC
(tomcat) 01/18: Add httpd properties in build.xml
This is an automated email from the ASF dual-hosted git repository.
dsoumis pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 542fe037d5ffe462ac7be11f4d60a2cd2108272b
Author: Dimitris Soumis <ji...@gmail.com>
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 a76cf21e38..0d6c36201c 100644
--- a/build.xml
+++ b/build.xml
@@ -220,6 +220,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" />
@@ -2126,6 +2130,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>
+
<condition property="opens.javalang" value="--add-opens=java.base/java.lang=ALL-UNNAMED" else="-Dtest10=1">
<javaversion atleast="9"/>
</condition>
@@ -2189,6 +2209,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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org