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 136949 - Adding a default Ant library entry ?
Summary: Adding a default Ant library entry ?
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-10 21:09 UTC by liono
Modified: 2008-06-10 22:23 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 liono 2008-06-10 21:09:32 UTC
Even though it would be rarely used I do wonder if it wouldn't make sense to add $NB_ROOT/java2/ant/lib/ant.jar as a
default entry in the library manager. NetBeans already has a template for setting up a custom Ant task but lacks a
default Ant library which can be used. Of course this can be easily solved by manually adding the jar file but I think
it would be more logic to have a default entry, considering how Netbeans heavily leans on Ant and ships it by default.
Comment 1 Jesse Glick 2008-06-10 21:16:25 UTC
Has been considered but rejected. Probably not very many people are writing their own custom tasks, and we would rather
not clutter the Library Manager with default entries unless they are likely be used heavily. If you are writing a task,
it is anyway better to add ${ant.core.lib} directly to javac.classpath in project.properties, rather than using the
Library Manager - as is documented in a comment in the header of the Ant task template.
Comment 2 liono 2008-06-10 21:31:26 UTC
Ok, I don't fully agree but do understand your point here. btw; a small comment if I may: adding the library to the
project.properties is - according to the docs - the easiest option. Its absolutely not the best since doing it like that
interferes with the IDE's fault detection. Since the IDE won't know about the library it will keep on giving errors.
Comment 3 Jesse Glick 2008-06-10 21:42:22 UTC
I don't know what you mean by

"doing it like that interferes with the IDE's fault detection. Since the IDE won't know about the library it will keep
on giving errors"

but if you have run into a specific problem please file an issue (perhaps ant/project component in this case) with steps
to reproduce.
Comment 4 liono 2008-06-10 22:23:11 UTC
Thanks for the tip!  I'll do so tomorrow.