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.
While working in #203519 I encountered a stopper in the apisupport.ant project in the form of hard-coded project actions. The profile action needs a custom performer and it makes it impractical to enumerate the action along the others in the ModuleActions.java file - doing that would require a specific profiler API and, anyway, , all the other project types declare the actions in layer.xml file instead of directly in the source. This seems to be a good reason to switch to using layer.xml action declaration even for apisupport projects.
Created attachment 114834 [details] patch
Jesse, feel free to reassign the task to me once you feel comfortable with the proposed change.
Created attachment 114835 [details] patch (correct mime this time)
Let me take a look.
A number of things I want to change in this patch, actually.
(In reply to comment #5) > A number of things I want to change in this patch, actually. No problem. I just simply converted the programmatic registrations to their layer equivalents keeping the functionality exactly as it was.
I am retaining Projects/Profiler_Actions_temporary/ in this commit because it is not currently empty (in the trunk anyway). I assume you plan to remove all entries from this folder at some point; when you do that, just remove all the shadows to it from project action folders too. Among many other things, my version of the patch converts suite projects as well. core-main #31d7da043210
Thanks
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/31d7da043210 User: Jesse Glick <jglick@netbeans.org> Log: #207227: declarative registration of apisupport.project actions.