title: How to compile LESS into CSS when files are saved in Eclipse
body: <p>I'm developing a <code>struts2 webapp</code> for months now using maven to manage my dependencies and I've just discovered <code>LESS</code>. I have installed and configured the <code>LESS plug-in for Eclipse</code> but it's really annoying to <code>right click &gt; run as &gt; LESS compiler</code> every time I save the .less file due to a modification of its content or something...<br>
   The thing is that I've been researching on how to plug in <code>grunt.js</code> (recently discovered task runners too) into maven (<a href="http://addyosmani.com/blog/making-maven-grunt/" rel="nofollow">as explained here</a>) but I think it's quite hard and I wondered if somebody knew an alternative to this.</p>
  
  <p>In my <code>struts2</code> project I have both the front and back-end of my webapp.I know it's not the right approach and if I could start all over again I would separate them into two different projects, but now it's too late (disadvantages of the learning proccess, we're not born knowing it all).  </p>
  
  <p>Having said all this, how can I set up a kind of task for watching my <code>.less</code> files and automatically compile them into <code>.css</code> when saved/changed?</p>
  
  <p>I also found <a href="https://github.com/chubbard/WatchTask" rel="nofollow">this ant task here</a>, but I dont really know if it's what I'm looking for.</p>