I also use target names starting with / for the targets that just set some 
properties modifying the behaviour of
whatever is executed after (for example '/offline', '/notest').  This doesn't 
change anything to visibility (they are
callable from command line), but regroup them logically, even when they have a 
description.

Gilles

> -----Original Message-----
> From: Dominique Devienne [mailto:[EMAIL PROTECTED]
> Sent: mardi 20 novembre 2007 19:42
> To: Ant Users List
> Subject: Re: Specify non-top level target
> 
> On Nov 20, 2007 12:24 PM, mjdenham <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to