如何一个运行保存在NetBeans bash脚本? [英] How do a run a bash script on save in NetBeans?
问题描述
尊敬的大师,
我使用NetBeans 6.5每当我保存LessCSS文件,我想少跑编译器将其编译为本地CSS。我如何去实现呢?
非常感谢。
拉维
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
修改:我可以做一个构建文件作为金低于推荐。我正在寻找一个解决方案,我可以运行一个外部命令。所以,现在的问题是我如何使用Ant运行外部命令?
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?
推荐答案
是否有要上保存?相反,您可以创建一个自定义项目(含自定义生成文件),只是把它变成构建文件。
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.
这篇关于如何一个运行保存在NetBeans bash脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!