kezhenxu94 commented on issue #1219: bug: the agent file path with blank space in windows server would report an error URL: https://github.com/apache/incubator-skywalking/issues/1219#issuecomment-471864786 I've reproduced this bug on a Windows machine, below is the minimal yet runnable demo: ![image](https://user-images.githubusercontent.com/15965696/54176899-7ac08d00-44cb-11e9-8477-65149db5a815.png) note the output: ``` resource.getFile() = D:\abc%20def\test\target\classes\org\sample\Test2.class resource.getFile() = D:\abc def\test\target\classes\org\sample\Test2.class ``` the result of `resource.getFile()` is encoded (`%20` for spaces), and using `new File(resource.toURI())` works well, I'll send a PR to resolve this.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services