Sajeev
Sajeev

Reputation: 799

Git : Unable to access configured jar file in git

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.

Upvotes: 2

Views: 805

Answers (1)

Sajeev
Sajeev

Reputation: 799

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

Upvotes: 1

Related Questions