This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 4ed2b66178 CI Windows issue
4ed2b66178 is described below
commit 4ed2b66178b4d3f620d25ff912a21d6b4cce06af
Author: remm <[email protected]>
AuthorDate: Tue Jun 25 15:09:59 2024 +0200
CI Windows issue
---
test/org/apache/catalina/realm/TestJAASRealm.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/test/org/apache/catalina/realm/TestJAASRealm.java
b/test/org/apache/catalina/realm/TestJAASRealm.java
index f77239ae49..b309baffd9 100644
--- a/test/org/apache/catalina/realm/TestJAASRealm.java
+++ b/test/org/apache/catalina/realm/TestJAASRealm.java
@@ -86,7 +86,11 @@ public class TestJAASRealm extends TomcatBaseTest {
// Write login config to the temp path
File loginConfFile = new File(getTemporaryDirectory(),
"memoryLoginConfig.conf");
try (PrintWriter writer = new PrintWriter(loginConfFile)) {
- writer.write(CONFIG_MEMORY.replace("tomcat-users-lm.xml",
tomcatUsersXml.getAbsolutePath()));
+ String path = tomcatUsersXml.getAbsolutePath();
+ if (File.separatorChar == '\\') {
+ path = path.replace("\\", "\\\\");
+ }
+ writer.write(CONFIG_MEMORY.replace("tomcat-users-lm.xml", path));
}
addDeleteOnTearDown(loginConfFile);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]