chriseppstein / compass-validator

A CSS Validator that is used by the Compass CSS Framework.
Other
17 stars 2 forks source link

broken on windows #1

Open chriseppstein opened 13 years ago

chriseppstein commented 13 years ago

Fails here: https://github.com/chriseppstein/compass-validator/blob/master/lib/compass-validator.rb#L32

With the error: No such file or directory - which java

yazla commented 13 years ago

Hi, it breaks there because on windows there is no "which" command. But i am wondering what this code is intended to do?

java_path = `which java`.rstrip
      raise "You do not have a Java installed, but it is required." if java_path.blank?

It seems to me " java_path.blank? " will always return true. Or i am missing something?

Cheers!

yekwoo commented 12 years ago

For windows there is an equivalent where command.

chriseppstein commented 12 years ago

@yekwoo Can you submit a patch?