views:

371

answers:

1

Dear Gurus, I am using NetBeans 6.5 and whenever I save a LessCSS file I would like to run less compiler to compile it to native css. How do I go about achieving this? Many Thanks. Ravi

EDIT: I can do a build file as Kim recommended below. I am searching for a solution where I can run an external command. So the question now is How Do I Run an External Command using Ant?

+1  A: 

Does it have to be on save? Instead, you could create a custom project (with a custom build file) and just put it into that build file.

Kim
Yes, it need not be on save. A build file should work. How do I add a build file to a PHP Project in NetBeans? Would ANT be the only option as my needs seem simple enough right now? Thanks.
Ravi Chhabra
Since I haven't done any non-jvm development in netbeans, I don't know whether there is an easier way, but you can find information on how to run a bash script from ant here: http://ant.apache.org/manual/CoreTasks/exec.htmlDoesn't seem too complicated.
Kim