今天早上快被 Eclipse 的 Ant builder 搞瘋,照著
http://wirelesswombat.com/2012/06/17/automatically-compling-sass-compass-in-eclipse-zend-studio/ 與
http://www.only10types.com/2012/02/get-eclipse-to-automatically-compile.html 的指示都顯示錯誤
但我明明用 command line 是可以的…
最後找到這個
http://stackoverflow.com/questions/19091096/sass-plugin-in-playframework-2-0-4-throws-error
原來是要把 C:\Ruby200\bin 下面的 sass.bat 改為
@ECHO OFF
@"ruby.exe" “C:/Ruby200/bin/sass" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
※還有要注意<apply executable="sass.bat" <– 要記得加 .bat
根本不是 Ant 的問題,浪費了我一個早上的時間阿~~