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 10010 - Deprecate Ant DefinitionsRegistry, replace with lookup
Summary: Deprecate Ant DefinitionsRegistry, replace with lookup
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 11965 14428
Blocks:
  Show dependency tree
 
Reported: 2001-03-06 13:44 UTC by Jesse Glick
Modified: 2003-06-30 14:47 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Current patch (note APIAntModule is deleted here) (36.92 KB, patch)
2001-08-15 02:24 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-03-06 13:44:44 UTC
Currently the Ant module provides an API to register task definitions (a name
and a class) with a special static registry. This could be replaced with lookup.
For now it is used only by the apisupport <-> ant integration.

Jarda, does this make sense? Also there are two kinds of registration: (1) a
task (subclass of ant's Task class); (2) a data type (no particular superclass).
So probably there should be an Ant subfolder under Services, with one folder for
tasks, and one for types, where in each folder you have e.g.:

	nbinstaller[org-netbeans-modules-apisupport-ant-InstallTask].instance

What is the best way to implement this? I could use FolderInstance, but is
Lookup better, and if so how do I request a subfolder?
Comment 1 Jan Chalupa 2001-05-05 19:23:26 UTC
Target milestone -> 3.3
Comment 2 Jesse Glick 2001-08-15 02:20:29 UTC
Pretty much implemented in working sources, but a little problematic
due to lookup bugs: works fine until you try to reinstall the Ant
module at which point the usual problem arises, <nbinstaller> is not
defined, or some ClassCastException's appear, etc.--version skew
and/or lookup nonrefresh.
Comment 3 Jesse Glick 2001-08-15 02:24:34 UTC
Created attachment 2174 [details]
Current patch (note APIAntModule is deleted here)
Comment 4 Jesse Glick 2001-08-20 11:48:08 UTC
Implemented in the trunk:

ant manifest 1.30
DefinitionRegistry.java 1.3
IntrospectedInfo.java 1.5
AntProjectChildren.java 1.2
AntProjectNode.java 1.14
AntTargetNode.java 1.15
AntTaskNode.java 1.5
TargetExecutor.java 1.11

apisupport-ant manifest 1.9
APIAntModule.java 1.4
api-support-ant layer 1.6
Comment 5 Quality Engineering 2003-06-30 14:44:08 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.

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