Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while using user.home with sources on windows #127

Closed
aymen083 opened this issue Jun 14, 2015 · 2 comments
Closed

Error while using user.home with sources on windows #127

aymen083 opened this issue Jun 14, 2015 · 2 comments

Comments

@aymen083
Copy link

On windows when i try to use

@Sources({"file:///${user.home}/XXXX/XXX.properties"})

I have this exception :

Caused by: java.net.URISyntaxException: Illegal character in path at index 10: file:///C:\Users\XXXX/XXXX/XXX.properties
at org.aeonbits.owner.ConfigURIFactory.newURI(ConfigURIFactory.java:39) ~[owner-1.0.8.jar:na]
    at org.aeonbits.owner.PropertiesManager.toURIs(PropertiesManager.java:130) ~[owner-1.0.8.jar:na]
    at org.aeonbits.owner.PropertiesManager.<init>(PropertiesManager.java:105) ~[owner-1.0.8.jar:na]
    at org.aeonbits.owner.DefaultFactory.create(DefaultFactory.java:43) ~[owner-1.0.8.jar:na]
    at org.aeonbits.owner.ConfigCache.getOrCreate(ConfigCache.java:87) ~[owner-1.0.8.jar:na]
    at org.aeonbits.owner.ConfigCache.getOrCreate(ConfigCache.java:40) ~[owner-1.0.8.jar:na]

I think it's caused bu the back slash () in the user home folder in windows.

@lviggiano
Copy link
Collaborator

Hi. Thanks for the report.

This has been solved on master branch. If you want to try the version on master, see building from sources.

I need to release a new version with the problem fixed.

See #123. I am pretty sure it is the same problem.

@lviggiano
Copy link
Collaborator

This should have been addressed by release 1.0.9.

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

No branches or pull requests

2 participants