Skip to content

[Fix] Update AbstractSamplesTest to properly handle base directories with special characters (e.g. spaces)#101

Open
er1c wants to merge 1 commit intohighsource:masterfrom
er1c:fix-tests-base-dir-with-spaces
Open

[Fix] Update AbstractSamplesTest to properly handle base directories with special characters (e.g. spaces)#101
er1c wants to merge 1 commit intohighsource:masterfrom
er1c:fix-tests-base-dir-with-spaces

Conversation

@er1c
Copy link
Copy Markdown

@er1c er1c commented Jan 12, 2019

The getFile here is returning a String that is potentially adding escaping characters (e.g. '%20'). The java.ioFile can natively take a URI as a parameter, so avoid trying to convert the path to a string, and simply avoid the issue.

[INFO] JAXB2 Basics - Project ............................. SUCCESS [  0.129 s]
[INFO] JAXB2 Basics - Ant Task ............................ SUCCESS [  3.454 s]
[INFO] JAXB2 Basics - Runtime ............................. SUCCESS [  6.756 s]
[INFO] JAXB2 Basics - Tools ............................... SUCCESS [  3.976 s]
[INFO] JAXB2 Basics - Testing ............................. SUCCESS [  3.436 s]
[INFO] JAXB2 Basics - Basic Plugins ....................... SUCCESS [  3.529 s]
[INFO] JAXB2 Basics - Full Plugins JAR .................... SUCCESS [  0.375 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.843 s
[INFO] Finished at: 2019-01-12T16:11:09+00:00
[INFO] Final Memory: 23M/291M
[INFO] ------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant