Bug 238839 - Unable to find an Ant file to run
Unable to find an Ant file to run
Status: VERIFIED FIXED
Product: Platform
Classification: Eclipse
Component: Ant
3.4
PC Windows XP
: P3 critical with 10 votes (vote)
: 3.4.2
Assigned To: Michael Rennie CLA Friend
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2008-06-27 15:30 EDT by Leandro de Oliveira CLA Friend
Modified: 2009-02-02 12:10 EST (History)
6 users (show)

See Also:
Mike_Wilson: pmc_approved+


Attachments
patch to find build file associated with editor's project (1013 bytes, patch)
2009-01-20 12:06 EST, Darin Wright CLA Friend
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leandro de Oliveira CLA Friend 2008-06-27 15:30:28 EDT
Build ID: I20080617-2000

Steps To Reproduce:
1. Open a Java Class File on Java Editor;
2. Create a simple Ant Build file on root of the current Java Project;
3. Rebind Run Ant Build to Ctrl + F10;
4. Unbind "Show Ruler Context Menu" and "Show View Menu" on Preferences -> General -> Keys;
5. Type Ctrl + F10 on Java Source Code Editor;
6. The message "Unable to find an Ant file to run" will popup.


More information:
Eclipse 3.3 can find the ant file Eclipse 3.4 cant.
Comment 1 Jerome Lanneluc CLA Friend 2008-07-02 07:57:48 EDT
Moving to Platform/Ant
Comment 2 Leandro de Oliveira CLA Friend 2008-07-24 14:23:24 EDT
Is there anyone working on this issue?
Comment 3 Remy Suen CLA Friend 2008-07-24 14:32:34 EDT
I can reproduce this on Linux/gtk+ with I20080716-1200. I don't have a 3.3.x build at the moment to test whether it's a regression or not though.
Comment 4 Bob Miller CLA Friend 2009-01-16 14:07:14 EST
I am running 3.3 and 3.4 side by side.  I used the default binding (alt+shift+x, q).  It works perfectly in 3.3 and does not work in 3.4.
Comment 5 Darin Wright CLA Friend 2009-01-16 16:56:30 EST
It looks like "Run Ant Build" will "find" a build.xml file when launched from a selection (e.g. a file in the navigator), but not when launched from the editor.
Comment 6 Darin Wright CLA Friend 2009-01-20 12:06:00 EST
Created attachment 123097 [details]
patch to find build file associated with editor's project
Comment 7 Darin Wright CLA Friend 2009-01-20 12:06:28 EST
Fixed in HEAD. 
Comment 8 Darin Wright CLA Friend 2009-01-20 12:07:52 EST
Requesting PMC approval to fix in 3.4.2 since this is a regression from 3.3
Comment 9 Darin Wright CLA Friend 2009-01-20 13:56:56 EST
Released to 3.4.2
Comment 10 Darin Wright CLA Friend 2009-01-20 13:57:23 EST
Please verify, Mike (R).
Comment 11 Michael Rennie CLA Friend 2009-02-02 12:10:02 EST
verified