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 225751 - A way to produce a single shortcut that would run a target for the current project instead of having to have one shortcut per project
Summary: A way to produce a single shortcut that would run a target for the current pr...
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 7.3
Hardware: PC Other
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-05 14:48 UTC by bhulse
Modified: 2016-07-07 08:37 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 bhulse 2013-02-05 14:48:17 UTC
I would like to create a single "Deploy To Remote" shortcut into the toolbar so that I could run the target "deployToRemote" from the current project's build.xml file. My build environment is full of building block components so I have many projects, each with a common build.xml file that includes the same custom targets (like deployToRemote)

All shortcuts seem to be built specifically for the current project only. In order to have a shortcut that runs "deployToRemote" for a number of projects, you have to create the shortcut once for each project you are interested in launching it from. In my case, this would result in 20-30 toolbar items being added

I'd like to be able to use the shortcut like Build and Clean and Build. Whatever project I'm currently editing in runs its Build or Clean and Build targets. I don't see a way to do that currently.

I checked the customized ant script when creating the shortcut, but the available properties don't include anything about the current project, so I couldn't customize the ant script to launch the current project's build.xml file with the desired target. I realize that this kind of functionality could result in no such target errors, but that is far better than always having to switch to the files tab, open the build.xml file and execute run target.

An alternative solution would be to have all of the toolbar items have to be defined, then have the toolbar / menu handlers in the IDE hide the ones that do not apply to the current project (meaning the one the current editor file is from). In this case, if there were 20 deployToRemotes defined for the various projects, the only one that would be shown in the toolbar / menu would be the one for the project in which I'm currently editing a file.
Comment 1 Martin Balin 2016-07-07 08:37:30 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss