문제

I was trying to integrate checkstyle jar to my java git project repository to ensure the coding standards. I configured the checkstyle jar and xml file(didn't configured java.command as it taken as default path) as

git config --add checkstyle.jar d:/checkstyle-5.6.jar
git config --add checkstyle.checkfile d:/checkstyle_checks.xml

Then added the perl script from here as pre-commit hook. Then changed the java file and add it. While trying to commit the change, the error message showing as Unable to access jarfile d:/checkstyle-5.6.jar commit abort

Is there any problem with configuring the jar and xml file.

도움이 되었습니까?

해결책

Its due to the path syntax problem. Thanks to @bluefeet for mentioning the issue.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top