Bug 23661 - [ExternalTools] Launching Ant on xml file that is in the active editor
Summary: [ExternalTools] Launching Ant on xml file that is in the active editor
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P2 enhancement (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Luc Bourlier CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-09-17 12:21 EDT by Darin Swanson CLA
Modified: 2002-12-10 16:57 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Swanson CLA 2002-09-17 12:21:18 EDT
An action in in the External Tools sub-menu of the Run menu that would invoke 
Ant on the active editor.  The action would be disabled if the editor input was 
not an xml file.
Comment 1 Max Rydahl Andersen CLA 2002-09-29 12:06:46 EDT
A better feature in my opinion would be to make it possible to launch ant with the -find argument from 
any resource. (e.g. ant -find build.xml) - and then make it possible to asign a global key to this and 
it would be possible to activate ant from anywhere on any resource - without having to wander around 
the project structure to find the exact build.xml.....exactly as it is possible in Emacs JDEE if 
anyone knows it :).

A better integration would of course make eclipse search for the 
build.xml and provide a dialog that lets one enter the desired target from a list of possible 
candidates...

just a thought...
Comment 2 Jared Burns CLA 2002-09-29 12:22:43 EDT
The Ant View written by Roscoe Rush provides the feature Max requested. 
Pressing the "Refresh" button finds all ant XML files and adds them to the 
view. The view presents the ant file in a tree so the user can expand it to 
see targets and launch targets directly.

I'm optimistic that we can get Roscoe's view integrated into the 2.1 stream.
Comment 3 Darin Wright CLA 2002-11-15 13:42:55 EST
We should provide the "Run As... -> Ant Script" action in the external tools 
drop-down. This should be provided for free when the debug platform is updated 
to support launch shortcuts via the launch group extension. (See bug 26503). 
When this support is in, we need to update the definition for the ant launch 
shortcut.
Comment 4 Darin Swanson CLA 2002-12-09 10:38:22 EST
Please verify.
Set an active editor.
Use Run->External Tools->Run As->Ant Build
Comment 5 Luc Bourlier CLA 2002-12-10 16:57:17 EST
Verified.
Please update the build notes (darinS).