Bug 25161 - Implement support for the -find option
Summary: Implement support for the -find option
Status: RESOLVED DUPLICATE of bug 26455
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0.2   Edit
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: core
Depends on:
Blocks:
 
Reported: 2002-10-22 02:24 EDT by Max Rydahl Andersen CLA
Modified: 2002-11-18 13:05 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 Max Rydahl Andersen CLA 2002-10-22 02:24:15 EDT
A thing missing to make Ant integration as smooth as possible...
 
An action simulating or 
working like ant -find build.xml
 
It is what e.g. Emacs JDEE ant support does when it starts an 
ant build. 
It uses the current selected resource (buffer in emacs) and search for a build.xml 
file
from here and up to the root of the filesystem - or until it finds a build.xml and then 
ant
starts chewing on this build.xml....
 
And if the entering of which target one should use 
could be done with keyboard and a little
help of completion instead of using the mouse to select a 
checkbox from a list of maybe 30 targets
then it would be heaven :)
 
What it is so great about 
this ? It is great because then you are not forced to go look for the correct build.xml manually - 

neither in the package/resource view or in the predefined ant targets in the external tools 
menu - eclipse just takes the best
guess and in this situation it will often be the correct one as 
the build.xml related to a resource is normally stored in one of its parent directories - and their 
can only be one build.xml when searching like that :)
 
so - please add that to your goals for ant 
support, it should be breeze to implement :)
Comment 1 Darin Swanson CLA 2002-10-22 12:39:57 EDT
-find is not new to 1.5.1 (it is available in 1.4.1) we just have not exposed 
the functionality.
Changed summary accordingly.
Comment 2 Darin Wright CLA 2002-11-15 20:43:52 EST
The Ant view supports a "find" operation. It finds all files in the workspace 
with a specific name (which is settable in the Ant View perferences). Is this 
sufficient?
Comment 3 Darin Wright CLA 2002-11-15 21:34:00 EST
Another request for -find....

*** This bug has been marked as a duplicate of 26455 ***
Comment 4 Max Rydahl Andersen CLA 2002-11-16 07:58:41 EST
That is not sufficent. It does not solve the problem of still having to manually 
choose EXACTLY which build file to use (I got 25 in my antview right now) and 
THEN have to choose which target to run.




The -find option should make it possible not to have to choose which build file 
to run as Ant can figure that out it self by just having it run in the directory 
of the current open resource/file. Secondly selection of the target should be 
optional! If none is selected then just run the default target - and I should 
not need to "deselect" the default target to change my wanted target.




And I have reopened the bug as #26455 is an related but different story.




Comment 5 Darin Wright CLA 2002-11-18 10:35:48 EST
I believe the "find" feature is described by bug 26455 - i.e. locate the ant 
script to run in the current or parent directory. The "find" feature could be 
implemented to prompt for a target, or run the default target (based on a 
preference setting).

Is there anything missing from 26455 now? Can we mark this as a duplicate?
Comment 6 Max Rydahl Andersen CLA 2002-11-18 13:05:48 EST
It can be marked an duplicate if you just remember the thing about searching for 
the "neareste" build.xml (where nearest is from current directory upto the root 
of the filesystem)




Secondly it should be possible as you describe just to run the default target or 
optionally enter another target.




looking forward to it :)



*** This bug has been marked as a duplicate of 26455 ***