ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Schutte" <mar...@schutte.com>
Subject [PATCH] Suggestion for new commandline switch -targets
Date Sun, 13 Aug 2000 21:34:06 GMT
Reposted with my suggestion in a diff file. Also, see comments below.

> -----Original Message-----
> From: Christopher Elkins [mailto:celkins@scardini.com]
> Sent: zondag 13 augustus 2000 22:59
> To: ant-dev@jakarta.apache.org
> Subject: Re: Suggestion for new commandline switch -targets
>
>
> > Hi,
> >
> > In the attached version of Main.java there are some simple modifications
> > which make ant recognize a -targets option.
> >
> > This will print out a list of all the targets available in the selected
> > build-file. It is meant as some sort of documentation on what
> the build-file
> > can do. Execution is suppressed.
> >
> > Do you guys like this suggestion, and if so, how do I go about
> incorporating
> > it in ant?
> >
> First, you should submit your patch in diff form
> <http://jakarta.apache.org/guidelines/source.html>. It makes it
> much easier to
> evaluate.
>
> Second, I think this would be a useful addition. Many ant-using
> projects create
> their own targets (e.g., "usage") to provide similar functionality as your
> patch. Standardizing such behavior would be a very good thing.
>
> However, not all targets in a build file are suitable and/or relevant for
> calling from the command-line. For example, calling the "prepare"
> target in
> jakarta-ant/build.xml from the command-line would have limited utility.
> Therefore, it might be useful to add an attribute to the <target> tag that
> allowed one to specify whether that target should be output in
> Main.printTargets().

Or perhaps a 'private' attribute, which can make a target invisible from the
outside and only visible to 'depends' clauses.
Another optional attribute could be 'description', to be printed as part of
the target list.
Let me know what you think of this,

>
> > Regards,
> > Marcel Schutte
> >
>
> --
> Christopher Elkins
>
>
Regards,
Marcel Schutte

Mime
View raw message