Bug 77717 - [view] Closing project removes ant build file from Ant View
Summary: [view] Closing project removes ant build file from Ant View
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday, helpwanted
: 82203 99617 101511 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-03 13:27 EST by Greg Farris CLA
Modified: 2011-07-21 14:50 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Farris CLA 2004-11-03 13:27:05 EST
Adding an ant build file to the "Ant View" first requires the build.xml file to
be added to the project.  If you close a project by selecting project->close,
the build file is no longer available in the "Ant View".  Reopening the project
does not reenable the build file in the Ant View.  The build file then must be
manually re-added to the Ant View.
Comment 1 Darin Swanson CLA 2004-11-03 13:49:43 EST
This would be a low priority enhancement.
Comment 2 Darin Swanson CLA 2004-11-04 11:54:09 EST
Resolving to later with helpwanted.
Comment 3 Darin Swanson CLA 2005-01-05 12:05:11 EST
*** Bug 82203 has been marked as a duplicate of this bug. ***
Comment 4 Darin Swanson CLA 2005-06-13 10:40:40 EDT
*** Bug 99617 has been marked as a duplicate of this bug. ***
Comment 5 Darin Swanson CLA 2005-06-23 13:57:16 EDT
*** Bug 101511 has been marked as a duplicate of this bug. ***
Comment 6 Darin Swanson CLA 2007-07-24 00:04:15 EDT
reopening to mark for bugday
Comment 7 Joern Dinkla CLA 2007-07-27 08:10:45 EDT
The specification is unclear to me. There are the following alternatives

a) When a project is opened, the "build.xml" file is automatically added to the "Ant View".
But 
     1) The build files are not always named "build.xml", some people give them special names.
     2) When the user checks out 50 projects that all have a "build.xml" file from a repository the "Ant View" will contain too many unwanted entries. 

b) A build file that has been added to the "Ant View" before should be added to the view if the corresponding project is opened again.
   This would require a persistent list/map/memory/history of build files opened. Ok, but the size of this list will increase over time and there are the following alternatives
     1) Limit the size of the list to N entries
     2) Add history list maintainance code

What do you think ?
     
     
     
Comment 8 Alex Blewitt CLA 2007-07-27 10:13:12 EDT
Maybe have a preference that (a) allows what name(d) patterns to be considered for build files, and (b) put a limit on the same preference page? So it could default to (say) 'build.xml' and '5'. Then, if anyone else wants different value(s), you could add entries, like build-*.xml, project.xml etc.

Perhaps also consult whether '<project' exists in the XML file in the first 100 chars? Might be expensive to consult a lot of files. Those are just my thoughts :-)
Comment 9 Darin Swanson CLA 2007-07-27 12:22:32 EDT
I would see the model as being very close to the recent editor history of the File menu.
Window>Preferences>General>Editors>Size of recently opened files list.

I did not see automatic adding of all build files to the Ant view for all projects in general...only those that have been previously added explicitly by the user and were removed due to a project being closed.

I think the larger scoping should be a different bug report to be considered.
Comment 10 Michael Rennie CLA 2011-07-21 14:50:51 EDT
There are no plans to fix this bug, marking wontfix. We can reopen if a contribution is made.