To make life easy, the first time you run the macro (or when the ant binary file can't be found), you are prompted for the location. This location is stored as a permanent jEdit property so you never have to deal with it again. The last target you used is stored as a temporary property so you can just run this macro (I recommend binding it to F10 or other favorite key) and return to repeat the last ant target. If you want to change targets (e.g., you finally successfully ran all your tests, now you want to create a jar), just run the macro and type your target and hit return. All very simple.
The Console plug in is required.
Credits: Gerd for thinking up this thing in the first place. He came up with the simple but brilliant idea of looking for the build.xml file based on the currently open buffer.
IMPORTANT: jEdit pops up a menu when the right mouse button is pressed (as opposed to pressed and released), so any gesture will have to work around the popup menu. It's annoying but not too bad. If there is interest, I'll work with Slava on getting something changed there.
The Gestures plugin has four (4) pre-defined patterns. The patterns with the action taken are as follows:
Close Current Buffer - DOWN then RIGHT
Open New Buffer - UP
Switch to next buffer - RIGHT
Swith to previous buffer - LEFT
Reload buffer - DOWN then UP