views:

21

answers:

1

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 like for it to run in lieu of compile while I am editing that project and to be ignored otherwise.

+1  A: 

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.

Kwebble