问题描述
我需要一个Eclipse Plugin在Linux下运行shell脚本。我有一个漂亮的Rsync脚本,我想在Eclipse中的一个按钮来激活它。
I need an Eclipse Plugin run shell scripts under Linux. I have a beautiful Rsync script and I want a button in Eclipse to activate it.
最好的解决方案是如果Rsync shell脚本也被激活时, ,所以也许我可以添加一个脚本生成器或类似的东西。
The best Solution would be if the Rsync shell script was also activated when I was saving Stuff, so maybe I can add a script builder or something like that.
任何人都有这两个解决方案的线索?
Anyone has a clue for both of the solutions?
推荐答案
您可以使用eclipse 。对于运行shell脚本放在位置字段 / bin / sh
中,参数应该是shell脚本本身。
You could use the eclipse external tools feature. For running shell scripts put in the location field /bin/sh
and the argument should be the shell script itself.
项目 - >属性 - >构建器 - >新建... - >程序
Project -> Properties -> Builders -> New... -> Program
请务必在构建选项标签中选中清理后,自动构建期间选项。
Be sure you check the "After a Clean", "During auto build" options on the "Build Options" tab.
这篇关于Eclipse命令行插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!