[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 파일에서 ” ” 부분에서

“// → /”로 수정

RFC3986 참고

“When authority is not present, the path cannot begin with two slash characters  (“//”).”

https://developer.ibm.com/answers/questions/234050/getting-javaneturisyntaxexception-illegal-characte

댓글 남기기