validator/grunt-html

on mac: "Error: Unable to access jarfile" thrown

lagrz opened this issue · 2 comments

On my mac when I run the grunt command i get this error. It is due to the fact that the one of the parent directories in the file system tree containing this project has a space on it. An easy way to fix this is simply encapsulating the java -jar command with double quotes here:

https://github.com/jzaefferer/grunt-html/blob/master/lib/htmllint.js#L14

change the first parameter in that exec call from:
'java -jar ' + jar + ' --format json ' + chunk
to
'java -jar "' + jar + '" --format json ' + chunk

I added the quotes around the argument as suggested. Will go out in a new release soon.

awesome thanks