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 36320 - Not all targets appear in context menu "Run target"
Summary: Not all targets appear in context menu "Run target"
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
Keywords: UI
: 26749 (view as bug list)
Depends on:
Blocks: 44360
  Show dependency tree
Reported: 2003-09-28 10:07 UTC by vladmihaisima
Modified: 2005-12-20 15:49 UTC (History)
0 users

See Also:
Exception Reporter:

The file for which on the last build of netbeans, I get only 2 targets. (2.72 KB, text/plain)
2003-09-28 10:08 UTC, vladmihaisima

Note You need to log in before you can comment on or make changes to this bug.
Description vladmihaisima 2003-09-28 10:07:36 UTC
On the contextual menu of a build.xml, appear only 
2 of 5 targets, after the introduction of the 5th 
target (which depends on other two).
Comment 1 vladmihaisima 2003-09-28 10:08:57 UTC
Created attachment 11730 [details]
The file for which on the last build of netbeans, I get only 2 targets.
Comment 2 Marek Grummich 2003-09-29 09:22:26 UTC
Only targets that have a description and default target are appeared
in the 'Run Target' submenu. If no target have a description then all
targets are appeared in the submenu. - As designed.
Comment 3 Jesse Glick 2003-09-29 14:59:22 UTC
Although we might consider making the UI more helpful: show e.g.

Run Target ->
  Others ->

I.e. default target, then any non-default targets with descriptions,
then if necessary a submenu with non-default targets without
descriptions (in alphabetical order I suppose).

vladmihaisima, if you agree that would be a better UI (more useful, or
less confusing to new users), feel free to reopen this issue, but
change to ENHANCEMENT from DEFECT, P2 -> P3.
Comment 4 vladmihaisima 2003-10-01 11:44:15 UTC
 I agree that would be a better UI because not all ant build.xml are 
made with description and if you want to use one of these it's not so 
easy (add yourself a descriptin, etc.)
Comment 5 Jesse Glick 2003-10-17 20:28:57 UTC
*** Issue 26749 has been marked as a duplicate of this issue. ***
Comment 6 heydowns 2004-03-30 15:08:06 UTC
As part of the fix for this bug, targets with a name starting with '-'
should be separated into the "more targets" submenu as well. The ant
manual states that targets beginning with '-' are those which are not
intended to be run directly from the command line.
Comment 7 Jesse Glick 2004-03-30 15:16:59 UTC
Thanks for the tip, I did not notice the convention about targets
beginning with a hyphen. Based on the description in the Ant manual, I
would exclude them from the GUI altogether - if they are not supposed
to be run directly then they would just be clutter. You can always run
them from the command line if you have to in special circumstances.
Comment 8 Jesse Glick 2004-04-20 03:20:33 UTC
More on targets beginning with a hyphen:
Comment 9 Jesse Glick 2004-06-04 19:34:17 UTC
See commit info in issue #44360.
Comment 10 Marian Mirilovic 2005-12-20 15:49:27 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.