[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Bind key to specific Ant target
|
- From: Scott Sauyet <lists@xxxxxxxxxx>
- Date: Mon, 12 Nov 2007 13:27:17 -0500
- Newsgroups: eclipse.newcomer
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.6 (Windows/20070728)
Is there any way to bind a key sequence to run a particular Ant target?
I'm pretty new to Eclipse (and may at any time bolt back to the safety
of my preferred text editor! ;-) ) but would love to have some of the
facilities of a modern IDE. So I'm trying, I really am. One
frustration is that in my editor I can easily bind keystrokes to
arbitrary commands, but I haven't been able to figure out how to do so
in Eclipse or Netbeans. For instance, CTRL-5 runs the command
ant -emacs -find build.xml clean
in the directory of the current file. CTRL-6 does a compile. CTRL-7
prompts for the name of a target and then runs
ant -emacs -find build.xml <target-name>
I use shortcuts like these all the time, and would rather not have to go
to the mouse to run them. Many of them work for me because I have
fairly standard build files for my Java projects, but the last one lets
me run any target in the build script and it remembers my recent ones,
offering autocomplete suggestions as well so I don't have to type the
whole name.
Is there a simple way to do this in Eclipse? I can see how to bind
keystrokes in Window > Preferences > General > Keys, but there doesn't
seem to be any way to do more than the basic commands built into
Eclipse. Am I missing something?
Thanks,
-- Scott