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 73702 - Extract more information from free-form ant scripts
Summary: Extract more information from free-form ant scripts
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Pavel Buzek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-17 13:58 UTC by dynamite
Modified: 2016-07-07 08:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2006-03-17 13:58:55 UTC
It seems from my naive perspective that more information could be automatically
extracted from ant scripts. It may be that what is needed are some enhancements
to the ant tool itself to make identifying some of this information easier
(given that it clearly manages to parse its own files).

1. Libraries of jar could be compiled from <path> and <classpath> declarations
and <war>s <lib> sub-element. This won't include javadocs automatically, but at
least all the jars that the IDE will use will be those that the build will
actually use. If the IDE generated libraries the javadocs could be associated
with them later.

2. Java source paths could be identified against <javac>. Interestingly this
possibility could allow NetBeans to cope with the case where unit tests and
library code are intermingled if <include> and <exclude> were examined (although
I guess that could require significant internal changes).

3. Ant scripts can have optional behaviour based upon whether parameters are
set, or may expect particular parameters to be set outside of the script. Such
parameters will be used but never set in the script. Parsing could extract these
parameters and make the setting of them available in the project properties
(global options doesn't seem like the right place - they are project options
after all).
Comment 1 Martin Balin 2016-07-07 08:52:58 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss