Thu, 9 Mar 2023 23:23:01 -0500, /Joseph Kessselman/:

SystemIDResolverAPITest.java, line 121:

            baseURL = FILE_SCHEME + URL_SEP + baseURL + URL_SEP;

FILE_SCHEME is the literal "file://"
URL_SEP is the literal '/'

baseURL is the result of System.getProperty("user.dir").replace('\\','/')

Windows:

user.dir=C:\Users\user\work
baseURL=file:///C:/Users/user/work/

Linux:

user.dir=/home/user/work
baseURL=file:////home/user/work/

Maybe it could use just:

    baseURL = new java.io.File(System.getProperty("user.dir"))
              .toURI().toString();

    file:/C:/Users/user/work/
    file:/home/user/work/

FWIW, the java.nio.file produces slightly different results:

    baseURL = new java.io.File(System.getProperty("user.dir"))
              .toPath().toUri().toString();

    file:///C:/Users/user/work/
    file:///home/user/work/

--
Stanimir

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

Reply via email to