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 34803 - Repeat Last Build command
Summary: Repeat Last Build command
Status: VERIFIED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Jesse Glick
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2003-07-08 20:23 UTC by Mike Cepek
Modified: 2005-12-20 16:02 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 Mike Cepek 2003-07-08 20:23:30 UTC
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!
Comment 1 Jesse Glick 2003-07-08 20:48:32 UTC
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.
Comment 2 Mike Cepek 2003-07-08 20:56:43 UTC
oops; yep; sorry.
Comment 3 Jesse Glick 2003-07-08 21:31:40 UTC
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.
Comment 4 Jesse Glick 2004-06-09 02:13:16 UTC
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.
Comment 5 Marian Mirilovic 2005-12-20 16:02:34 UTC
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.