Bug 7219 - [ExternalTools] Ant wizard improvements
Summary: [ExternalTools] Ant wizard improvements
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: 2.1   Edit
Assignee: Simon Arsenault CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
: 13671 14302 22151 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-02 14:15 EST by John Arthorne CLA
Modified: 2002-11-04 09:41 EST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2002-01-02 14:15:32 EST
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."
Comment 1 Rodrigo Peretti CLA 2002-05-19 17:27:36 EDT
Moving to Platform UI (External Tools) for comment. Interesting suggestion but 
not critical for 2.0.
Comment 2 Ilja Preuss CLA 2002-05-24 04:35:43 EDT
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.
Comment 3 Simon Arsenault CLA 2002-05-30 14:41:05 EDT
*** Bug 13671 has been marked as a duplicate of this bug. ***
Comment 4 Simon Arsenault CLA 2002-08-07 10:47:26 EDT
*** Bug 14302 has been marked as a duplicate of this bug. ***
Comment 5 Simon Arsenault CLA 2002-08-07 10:48:35 EDT
*** Bug 22151 has been marked as a duplicate of this bug. ***
Comment 6 Simon Arsenault CLA 2002-09-06 14:25:39 EDT
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.
Comment 7 Vijay Aravamudhan CLA 2002-09-21 23:00:23 EDT
> 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?
Comment 8 Rodrigo Peretti CLA 2002-09-23 09:07:04 EDT
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).
Comment 9 Vijay Aravamudhan CLA 2002-11-03 22:45:31 EST
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?
Comment 10 Rodrigo Peretti CLA 2002-11-04 09:41:07 EST
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.