Bug 26554 - Ant view should update when projects closed/removed
Summary: Ant view should update when projects closed/removed
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Jared Burns CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
: 28203 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-16 18:43 EST by Saumendra Poddar CLA
Modified: 2002-12-13 10:29 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 Saumendra Poddar CLA 2002-11-16 18:43:56 EST
What I am doing right now is that if I want to view a certain ant file using
antview, I am going to Preferences -> External Tools -> Ant View: and then
entering the name of the "Ant Build File Name"  Now suppose I have 4 build
files in my project with names build1.xml, build2.xml, build3.xml & build4.xml, 
how am I going to display all of them in Ant view. There is no facility to do 
that, cause antview can only display the targets of just ONE build file based 
on the file name entered. This is wrong!! There should a interface where the 
user can select the name of multiple ant build xml files present in the current 
project. This is a little tricky on how u will implement it. 

Another major drawback is, setting the name of the build file under Preferences 
is not at all appropiate place. Just for example, suppose I am working on 3 
different projects, and 3 of those projects have used different names for their 
build file. In that case, everytime when I am switching from one project to 
another, I have to go to Preference and change build file name, cause currently 
it stores the name of the last build file entered by the user and doesn't 
change based on the project. 

Finally when I close a project, the file name is still present in the Antview. 
The file name should automatically be removed. This is the same case with 
deleting a project where the antview still displays the file name even after 
having the the project deleted.

Executing a target in Antview is extremely ODD. First I have to select a 
target, then once my target is highlight I need to press "return" on my 
keyboard, and then I right click on it and select "RUN". Now this wrong cause 
intially i wasn't aware of this procedure, and so I was just directly right 
clicking on a target that I want to execute (without selecting the target and 
pressing "return" on my keyboard), and selecting RUN. And each time I was 
getting a message on the Log console "No targets selected". After struggling 
for two hours I figure the procedure to execute a target. Why not make things 
simplier and allow the user to select the target the user wants and execute it 
directly. !!
Comment 1 Darin Swanson CLA 2002-11-26 13:22:23 EST
The ant view is being completely reworked and I believe all of your issues are 
being addressed.

we need to ensure to address the project close / removal case.

Please note that only committers should assign target milestones.
Comment 2 Darin Wright CLA 2002-12-04 11:19:39 EST
Issues have been addressed except project close/open/delete issue.
Comment 3 Jared Burns CLA 2002-12-12 16:02:43 EST
Added a resource listener to the Ant view. The listener updates the structure
of build files in the view when the files are saved and also removes files
if their project is closed.

Please verify.
Comment 4 Darin Swanson CLA 2002-12-12 18:10:58 EST
Did a bit of rework to make the resource change listening a little bit 
more "lazy".
Comment 5 Darin Swanson CLA 2002-12-12 18:15:35 EST
Please verify changes to RootNode and AntView.
Comment 6 Jared Burns CLA 2002-12-12 22:21:20 EST
*** Bug 28203 has been marked as a duplicate of this bug. ***
Comment 7 Jared Burns CLA 2002-12-13 10:29:23 EST
Verified.