Community
Participate
Working Groups
From the newsgroup: "It would be nice if the Run Ant dialog showed the target's description. Also, it's not uncommon for an Ant script to contain a lot of targets that are meant to be called only from other targets. It would be handy if these were not displayed in the target list, or were in some other way made visually obvious that they should not be selected. This could be done based on the description starting with "Internal:" or some other distinguishing pattern."
Moving to Platform UI (External Tools) for comment. Interesting suggestion but not critical for 2.0.
The behaviour should work similar to the -projecthelp switch of ant, imo. Here, all targets having a description are marked as primary, all others as secondary targets.
*** Bug 13671 has been marked as a duplicate of this bug. ***
*** Bug 14302 has been marked as a duplicate of this bug. ***
*** Bug 22151 has been marked as a duplicate of this bug. ***
In the new external tool work, the ant target page will show the description of the selected target. Also, it shows by default only "main" targets (targets with descriptions), which a check box to include "sub" targets (targets with no descriptions). Also, internal targets (those whose names start with '-') are never displayed as they cannot be called. Note: new external tool work is not yet released to the head stream and won't for a while yet.
> Also, internal targets (those whose names start with '-') are never displayed as they cannot be called. I was not able to find any documentation on the ant web-site which talked about "internal" targets. Is this a naming convention that Eclipse is introducing? (This might not be the forum - but I wanted to keep this within the thread - Sorry) Also, when can we actually see this in a public release?
http://jakarta.apache.org/ant/manual/index.html Using Ant->Targets "Targets beginning with a hyphen such as "-restart" are valid, and can be used to name targets that should not be called directly from the command line." It will be part of 2.1 builds (maybe it is already).
I am running the 10/31 integration build and I dont see this having been fixed. I right-clicked on the build.xml file and selected "Run Ant". When I selected one of the targets, I should have seen the descriptions, right?
Maybe it is fixed in a different code stream. Try asking in the platform-ant- dev mailing list (since Simmon is away for a while) or reopening this bug.