lesscss-java icon indicating copy to clipboard operation
lesscss-java copied to clipboard

Support for Watch Feature

Open UditWadhwa opened this issue 12 years ago • 4 comments
trafficstars

Hi,

Do you have plans for supporting watch feature (real time compilation) of less?

UditWadhwa avatar Jun 04 '13 10:06 UditWadhwa

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.

chubbard avatar Jan 13 '14 04:01 chubbard

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.

sandroboehme avatar Mar 04 '14 23:03 sandroboehme

There is also this ant task: https://github.com/chubbard/WatchTask which makes it trivial to run less compiler when files change.

chubbard avatar Mar 05 '14 02:03 chubbard

That also sounds like a workable solution.

sandroboehme avatar Mar 05 '14 22:03 sandroboehme