views:

1029

answers:

2

Is there a way to run a specific Ant task via the keyboard? I have a rsync to dev task that I run a lot and running to the mouse to double-click is a pain.

+4  A: 

If you launch regularly the same external launch, you can assign a shortcut to the command:
"Run Last Launched External Tool"

(Windows/Preferences: type Keys, then launch, tested with Eclipse Ganymede 3.4.1)

VonC
My version says "Run Last Launched External Tool".
thrashr888
@thrashr888: You are right: mine too. I just fix this answer to reflect the correct label.
VonC
A: 

The following keyboard shortcut is listed in the Eclipse Ganymede help:

Run Ant Build: Alt+Shift+X, Q

Ola Eldøy
That suppose you have the ant xml file open in your editor right ? By launching the last launched External Tool, you do not have to open it, and you can set all extra variable environments/path you may need to execute said xml ant file...
VonC
You're right. You can toggle this behavior by Windows->Preference->Run/Debug->Launching then change Launch Operation (at the bottom) to "Always launch the previously launched application".
jamesh