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.
I would love to see a "Repeat Last Build" command added to the "Build" menu. Then I could assign a keyboard shortcut to it, and save a lot of time and hassle. The most consistently repeated UI interaction for me is to perform a build, usually the same as the last one. Currently this involves: 1) finding the build.xml file in the Explorer 2) right-click on it to get the pop-up menu 3) scroll down to "Run Target" 4) scroll to the desired target in the submenu 5) click on the desired target Because of issue 34800, issue 34801, and issue 34802 I am currently unable to use the existing "Assign Shortcut Key to Ant Build Target" features in NetBeans to accomplish this. Regardless, I still believe this would be a valuable timesaving feature that most NetBeans users would appreciate and use often. I further propose that NetBeans assign Alt-Shift-F11 by default to "Repeat Last Build". Thanks!
The Issuezilla component 'nbbuild' is for the netbeans.org build infrastructure - CVS, Ant scripts, publishing stuff, etc. I think you meant 'ant' for the Ant integration in the product.
oops; yep; sorry.
Patches are welcome... :-) Probably the easiest approach would be to make a new singleton action in the Ant module to be added to the Build menu; TargetExecutor would inform it whenever it ran some AntProjectCookie + String[] targets. (The action should keep only a filename, not a hard ref to the APC.) The action would initially be disabled, but enabled after it gets an APC. When run, it would just call TargetExecutor - use FileUtil.fromFile, DataObject.find, getCookie(APC.class) to get the APC back. I am not sure if non-Ant users would appreciate an added Build menu item that was always disabled for them, but maybe it isn't a big deal.
Won't fix as such, but for NB 4.0, if you don't want to make a shortcut to a target, you can use the new Run Target -> Advanced... option in the Ant script to retain your last-selected target, properties, and verbosity. Anyway since normal IDE projects will be Ant based, for most Ant users there should be easier ways of running Ant from the Build and Run menus, assuming you make project wrappers.
This issue was solved long time ago. Because nobody has reopened it neither added comments, we are verifying/closing it now. If you are still able to reproduce the problem, please reopen. Thanks in advance.