This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 205040 - Ant build.xml file does not consistently expose the build targets in the Navigator Window
Summary: Ant build.xml file does not consistently expose the build targets in the Navi...
Status: RESOLVED INCOMPLETE
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.0.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-13 02:34 UTC by gliesian
Modified: 2011-11-14 15:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gliesian 2011-11-13 02:34:23 UTC
Ant build.xml file does not consistently expose the targets in the Navigator Window

Case Study:

(1) Create a new project from existing sources, for the exploring-jms folder of Fuse Message Broker (http://fusesource.com/products/enterprise-activemq/).

(2) Update the project element in the build.xml file to include basedir="." attribute. Note: It appears that the presence of this basedir attribute may enable the Ant Targets to be displayed in the Navigator window of the NetBeans IDE.

(3) !!! The ant targets are not shown in the Navigator window, as they are expected to be.  The window is blank.  Weird workaround:  If I keep renaming the build file (e.g., move build.xml build2.xml), the targets will eventually be displayed in the Navigator window.  This makes no sense to me.  It's as if there is a trigger/listener, that is not running all of the time.

Thanks for the help!
Comment 1 gliesian 2011-11-13 02:37:45 UTC
Note: The goal is to have the projects Ant targets shown in the Navigator window (when clicking on the build.xml file in the Projects window), immediately after a new project has been created from existing sources (i.e. the exploring-jms project).
Comment 2 gliesian 2011-11-13 02:50:30 UTC
FMB reference: https://fusesource.com/issues/browse/MB-1009
Comment 3 Jesse Glick 2011-11-14 15:16:53 UTC
(In reply to comment #0)
> Update the project element in the build.xml file

Which is otherwise what? No example attached, and no sources obviously available (anonymously) from the URLs given. No steps to reproduce from scratch given.

> It appears that the presence of this basedir attribute may
> enable the Ant Targets to be displayed in the Navigator window of the NetBeans
> IDE.

Yes, the IDE has various heuristics for deciding if an XML file is really an Ant project, one of which is presence of basedir. Just <project> is not good enough since many XML files use this root element name.