lesscss-java
lesscss-java copied to clipboard
Support for Watch Feature
Hi,
Do you have plans for supporting watch feature (real time compilation) of less?
This would require Java 1.7+ support. Probably best supported outside of this project. I've actually started to add a watch task in ant that's more general purpose than adding it to this project. But it could be used in conjunction with this project to accomplish your goal. That wouldn't force every user of this project to be using 1.7.
If a file monitor is needed, than the one from Apache Commons can be used: https://commons.apache.org/proper/commons-vfs/apidocs/org/apache/commons/vfs2/impl/DefaultFileMonitor.html It is compatible with JDK 1.5.
There is also this ant task: https://github.com/chubbard/WatchTask which makes it trivial to run less compiler when files change.
That also sounds like a workable solution.