如何在NetBeans中运行bash脚本保存?

时间:2021-09-02 00:08:26

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

我正在使用NetBeans 6.5,每当我保存LessCSS文件时,我想运行较少的编译器将其编译为本机css。我该如何实现这一目标?非常感谢。拉维

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?

编辑:我可以像下面的Kim推荐的那样建立一个构建文件。我正在寻找一个可以运行外部命令的解决方案。所以现在的问题是如何使用Ant运行外部命令?

1 个解决方案

#1


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.

它必须保存吗?相反,您可以创建一个自定义项目(使用自定义构建文件)并将其放入该构建文件中。

#1


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.

它必须保存吗?相反,您可以创建一个自定义项目(使用自定义构建文件)并将其放入该构建文件中。