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 25440 - The Ant module has a bug which stops it from handling included ant files correctly.
Summary: The Ant module has a bug which stops it from handling included ant files corr...
Status: CLOSED DUPLICATE of bug 21728
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@projects
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-09 13:24 UTC by mgent
Modified: 2003-06-30 14:47 UTC (History)
0 users

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 mgent 2002-07-09 13:24:55 UTC
All,

I've found an anomaly in the ant module that occurs when 
using ant build files which include part of their contents 
(like in the case of our own project, or in the Jakarta 
log4j project).  If the ant build file is then shown under 
Filesystems in the Exporer, and the entry is expanded to 
show all the tasks, then only the tasks in the file itself 
will be listed.  None of the ones in the included file(s) 
will be shown (which is the majority of tasks in our case).

This is clearly an error in the ant file parsing code, 
where the parser does not fully observe xml syntax.

For example, if your ant build file contains:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
    <!ENTITY subproject.inc SYSTEM "subproject.inc">
]>

and

&subproject.inc;

somewhere in the body, then all the tasks in subproject.inc 
are not shown.

Could you please fix this ASAP, as it stops us from 
cleaning up our build environment.  We have a build 
environment with many subprojects with identical tasks, so 
we want to put them into an include file, but NetBeans does 
not support this at the moment because of this bug.

Many thanks,

Mark Gent
Comment 1 David Konecny 2002-07-09 13:40:16 UTC
Check the issue 21728 and add any comments there.

*** This issue has been marked as a duplicate of 21728 ***
Comment 2 Quality Engineering 2003-06-30 14:44:26 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.

Comment 3 Quality Engineering 2003-06-30 14:47:27 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.