Bug 26995 - Run Ant action should prompt for config
Summary: Run Ant action should prompt for config
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Darin Wright CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-11-22 12:52 EST by Jared Burns CLA
Modified: 2002-12-02 09:47 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 Jared Burns CLA 2002-11-22 12:52:55 EST
Currently, the "Run Ant" action iterates over the ant launch configs and runs
the first config it finds whose location matches the selected file location.

This means that the "Run Ant" action is an all or nothing hit-or-miss. It
either chooses the config the user was thinking of, or it runs the wrong one
and there's no way for the user to specify which config to run.

The simplest solution is to present the user with all matching configs and ask
them which one they want to run.
Comment 1 Jared Burns CLA 2002-11-22 13:07:15 EST
Fixed. If the "Run Ant" action is invoked on a file that has multiple configs
associated with it, the user is prompted to choose a config. If the action
is invoked on a file with one config, that config is run. If the action is
invoked in a file with no config, a new config is created and the launch
configuration dialog is opened on the new config.

Please verify.
Comment 2 Darin Swanson CLA 2002-11-27 16:02:25 EST
Reworked parts:
Run Ant will never show the launch configuration dialog (creating a launch 
config if necessary).
Added Run Ant... which always shows the launch configuration dialog (creating a 
launch config if necessary).
This allows users to never have to see the configuration dialog from this 
context.
Comment 3 Darin Swanson CLA 2002-11-27 16:02:57 EST
Please verify (DarinW)
Comment 4 Darin Wright CLA 2002-12-02 09:47:12 EST
Verified. (We may want to enahce the "..." action to open the "single config" 
dialog with a run button).