Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 11445

Summary: Feature Request: Shortcut for re-running last ant build
Product: [Eclipse Project] Platform Reporter: Boris Pruessmann <boris>
Component: UIAssignee: Nick Edgar <n.a.edgar>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P3 CC: boris, gro, rodrigo, valentinbaciu
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Boris Pruessmann CLA 2002-03-15 06:30:23 EST
I would like to see a function for re-running the last (successful) ant run.

Scenario:
I am using ant for running xdoclet to create some ejb classes. It would be 
great if I could re-run the creation of those classes by pressing a key.
Comment 1 Rodrigo Peretti CLA 2002-03-21 13:06:39 EST
You already have something similar available.
1) Go to Perspective->Customize->Action Sets
2) Select the Ant action set
3) OK

Now you get a new button in you tool bar similar to the "Run" and "Debug" 
buttons where you have a history of recent run scripts.

Does it solve your problem?
Comment 2 Boris Pruessmann CLA 2002-03-21 13:31:11 EST
Mostly :) Is there a way to avoid the target dialog ?
Comment 3 Rodrigo Peretti CLA 2002-03-21 13:37:05 EST
Not. But we could (time permitting) add something similar to what PDE does for 
running or debugging a runtime workbench. It has an options called "without 
wizard".
Comment 4 Rodrigo Peretti CLA 2002-03-21 14:08:37 EST
*** Bug 10060 has been marked as a duplicate of this bug. ***
Comment 5 Boris Pruessmann CLA 2002-03-21 14:43:06 EST
That would be exactly what I am looking for ...
Comment 6 Andrew V. Zavtrakov CLA 2002-05-17 09:37:52 EDT
currently "F9" shortcut is switching between "Run" or "Debug", depends on what 
you have runned last time.
IMHO would be nice to add "last Ant run" to this shortcut too.
course without wizard :)

Maybe also add "Ant->Edit configurations" menu, just like it was done 
with "Run" and "Debug" in build M5
Comment 7 Rodrigo Peretti CLA 2002-05-19 17:56:34 EDT
Moving to Platform UI (External Tools) for comment.
Comment 8 Nick Edgar CLA 2002-05-24 15:26:05 EDT
The new External Tools support lets you configure an Ant script with its 
target and any other arguments, then run it via the Run / External Tools menu.
The toolbar button should also be there (broken in 20020521) to re-run the 
last script, as well as recently run scripts.