Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top