svn commit: r1799285 - /tomcat/trunk/test/org/apache/juli/TestFileHandler.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

svn commit: r1799285 - /tomcat/trunk/test/org/apache/juli/TestFileHandler.java

markt
Author: markt
Date: Mon Jun 19 22:20:11 2017
New Revision: 1799285

URL: http://svn.apache.org/viewvc?rev=1799285&view=rev
Log:
Get test working on Windows that doesn't like ':' in file names.

Modified:
    tomcat/trunk/test/org/apache/juli/TestFileHandler.java

Modified: tomcat/trunk/test/org/apache/juli/TestFileHandler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/juli/TestFileHandler.java?rev=1799285&r1=1799284&r2=1799285&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/juli/TestFileHandler.java (original)
+++ tomcat/trunk/test/org/apache/juli/TestFileHandler.java Mon Jun 19 22:20:11 2017
@@ -57,7 +57,7 @@ public class TestFileHandler {
         generateLogFiles(logsDir, PREFIX_3, SUFIX_1, 3);
         generateLogFiles(logsDir, PREFIX_4, SUFIX_1, 3);
 
-        String date = LocalDateTime.now().minusDays(3).toString();
+        String date = LocalDateTime.now().minusDays(3).toString().replaceAll(":", "-");
         File file = new File(logsDir, PREFIX_1 + date + SUFIX_1);
         file.createNewFile();
 



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

Loading...