Community
Participate
Working Groups
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.
This would be a low priority enhancement.
Resolving to later with helpwanted.
*** Bug 82203 has been marked as a duplicate of this bug. ***
*** Bug 99617 has been marked as a duplicate of this bug. ***
*** Bug 101511 has been marked as a duplicate of this bug. ***
reopening to mark for bugday
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 ?
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 :-)
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.
There are no plans to fix this bug, marking wontfix. We can reopen if a contribution is made.