Archive/JAVA
[Ant] Windows 10에서 ant build 시, URI 관련 에러
cyBisu
2019. 2. 19. 21:38
반응형
[Ant] Windows 10에서 ant build 시, URI 관련 에러
- "java.net.URISyntaxException: Illegal character in query at index"
Issue)
build하는 프로젝트 폴더 Path에 공백이 존재하는 경우 발생
ex) C:\Program Files\project\~
Sol)
공백 제거
https://stackoverflow.com/questions/2366270/what-does-uri-has-an-authority-component-mean
- "java.lang.IllegalArgumentException: URI has an authority component"
Issue)
URI Path가 슬래시 2개("//")로 시작하는 경우
Sol)
build.xml 파일에서 "<property name="tools.docs.uri" value="file:/${tools.docs.unixdir}" /> " 부분에서
"// → /"로 수정
RFC3986 참고
"When authority is not present, the path cannot begin with two slash characters ("//")."
반응형