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.
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?
Target milestone -> 3.3
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.
Created attachment 2174 [details] Current patch (note APIAntModule is deleted here)
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
Resolved for 3.3.x or earlier, no new info since then -> closing.