Eclipse的命令行插件 [英] Eclipse Command Line Plugin

查看:139
本文介绍了Eclipse的命令行插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Linux下的Eclipse插件运行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的<一个href=\"http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-exttools.htm\"相对=nofollow>外部工具功能。对于运行放入位置字段的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.

如果你想运行一个脚本节省您可以使用Eclipse内部的建设者时。

If you want to run a script when saving you can use the internal builders of Eclipse.

项目 - >属性 - >建筑工地 - >新建 - >程序

Project -> Properties -> Builders -> New... -> Program

要确保你勾选构建选项选项卡上的在自动构建,干净后的选项。

Be sure you check the "After a Clean", "During auto build" options on the "Build Options" tab.

这篇关于Eclipse的命令行插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆