ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: Specify non-top level target
Date Tue, 20 Nov 2007 18:42:08 GMT
On Nov 20, 2007 12:24 PM, mjdenham <> wrote:
> My ant build file is getting quite long and has a lot of targets.  When I
> view the ant file in Eclipse it can be difficult to see which targets are
> the top-level ones which I would call and which are just helper targets like
> "init".
> Is it possible to remove some of the "targets" from the external interface
> just leaving a set of targets which people will actually invoke.

No, I don't think so. But traditionally, some people (like me) used
helper targets' name starting with a dask, as in "-init", which made
them impossible to call from the command line, an in general indicates
an "internal" (as in implement-detail) target of the build. IDEs don't
have restrictions on calling these targets though. Having the leading
dash would at least group these targets in a different lexicographic
group, since targets are usually sorted by names in IDEs.

I would not be surprised to learn that some IDEs allow to hide some
target names, but you can't do that in Ant AFAIK. --DD

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message