With ANT:
- Download JRuby complete jar file (JRuby Complete jar download page)
- Download the latest HAML/SASS code (HAML/SASS tarball), and extract it. Put it in "/libs/sass-[VERSION]"
- Add the following to an ant build file.
- Replace [VERSION] in the script to the corresponding versions of JRuby and SASS
- Run the ant script, and the sass or scss files will be compiled!
With MAVEN:
Maven can also do this:
Using the antrun plugin:
org.apache.maven.plugins
maven-antrun-plugin
1.6
compileAndMinify
compile
run