开发者

How can I get Eclipse to launch Ant in one keypress?

I changed the keybinding for Run Ant Build to F10 when Editing Javascript Source and also tried In Windows. In both cases F10 opens the file menu.

If I press F11 while the ant build.xml is highlighted, it runs. If I press F11 any other time Eclipse opens up the Debug Configuration dialog. If I try Ctrl + F11 it tells me there are no launch configurations.

I basically have an Ant build that concats and minifies all the js files in my project. I would l开发者_如何学编程ike for it to run in lieu of compile while I am editing that project and to be ignored otherwise.


Can't you add a builder to the project and make the step to process the .js files part of the build action? Go to the project properties an choose builders. Click 'New...', choose the Ant Builder and configure it.

This way Eclipse will invoke the Ant script when building the project and you don't need to perform that step manually.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜