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 21104 - Ant scripts occasionally not recognized when XML modules installed
Summary: Ant scripts occasionally not recognized when XML modules installed
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: David Konecny
URL: http://www.netbeans.org/source/browse...
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-02 18:44 UTC by Jesse Glick
Modified: 2003-06-30 14:48 UTC (History)
2 users (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 Jesse Glick 2002-03-02 18:44:37 UTC
There have been reports by users of NetBeans 3.3.1 that after installing the XML
modules, their Ant scripts suddenly stopped working and were treated as generic
XML files. I believe this happened to me as well once, though it is not
trivially reproducible that I know of.

The problem is that the XML modules recognize *.xml. The Ant module installs a
MIME recognizer which correctly assigns the MIME type text/x-ant+xml to the
scripts, but if the XML data loader is first in the loader pool it will
recognize the file anyway (since it ignores MIME type).

The workaround as a user is easy if you know it: reorder the Object Types node
in the Options dialog to put the Ant Scripts node above XML Files (or whatever
they are called).

Was fixed some time ago in the post-release33 trunk: see URL for diff. Just need
to introduce an ordering constraint into the manifest. Note that the order of
the loader pool is arbitrary except where there are constraints, which would
explain semi-reproducibility.
Comment 1 Jesse Glick 2002-03-02 18:54:37 UTC
Was fixed in the dev trunk, but may be a worthwhile fix for 3.3.2
because (1) the fix is simple, (2) the XML modules are considered
stable for 3.3.x though on Auto Update, (3) while an easy workaround
exists, it would not be obvious to most users, and without it major
functionality is lost.

BTW re. verification: no reports of the problem from dev builds; have
responded on nbusers suggesting the above workaround and gotten
replies that it worked. At least I can find this:

http://www.netbeans.org/servlets/ReadMsg?msgId=247839&listName=nbusers
Comment 2 Jesse Glick 2002-03-21 15:32:48 UTC
x
Comment 3 Jesse Glick 2002-03-21 15:33:58 UTC
David, perhaps you want to handle this bug in case it is 
approved for integration to 3.3.2?
Comment 4 David Konecny 2002-03-26 13:07:49 UTC
This issue was fixed by Jesse and I've just done review.
Comment 5 Milan Kubec 2002-04-02 11:56:53 UTC
Verified in ffj-020401. Since this is not easily reproducible I just
verified it by enabling and disabling ant and xml modules and
restarting of IDE and moving node Ant Scripts on Tools | Options | IDE
Configuration | System | Object Types.
Comment 6 Jesse Glick 2002-07-30 15:12:58 UTC
See also issue #25163 for related discussion.
Comment 7 Quality Engineering 2003-06-30 14:48:15 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.