Github user violetagg commented on a diff in the pull request:

    https://github.com/apache/tomcat/pull/69#discussion_r126779410
  
    --- Diff: test/org/apache/juli/TestFileHandlerNonRotatable.java ---
    @@ -0,0 +1,59 @@
    +package org.apache.juli;
    +
    +import static org.junit.Assert.assertTrue;
    +
    +import java.io.File;
    +
    +import org.apache.catalina.startup.LoggingBaseTest;
    +import org.junit.After;
    +import org.junit.BeforeClass;
    +import org.junit.Test;
    +
    +public class TestFileHandlerNonRotatable extends LoggingBaseTest {
    +    private FileHandler testHandler;
    +
    +    @BeforeClass
    +    public static void setUpPerTestClass() throws Exception {
    +        System.setProperty("java.util.logging.manager",
    +                "org.apache.juli.ClassLoaderLogManager");
    +        System.setProperty("java.util.logging.config.file",
    +                TestFileHandlerNonRotatable.class
    +                        .getResource("logging-non-rotatable.properties")
    +                        .getFile());
    +    }
    --- End diff --
    
    This is not working on my system as I have **space** in the path:
    
    ```
    java.io.FileNotFoundException: 
/.../tc9.0.x%20(trunk)/.../org/apache/juli/logging-non-rotatable.properties (No 
such file or directory)
        at java.io.FileInputStream.open0(Native Method)
        at java.io.FileInputStream.open(FileInputStream.java:195)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:93)
        at 
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:469)
        at 
org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:309)
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to