Actually, the problem is solved with Eclipse itself. Eclipse can
filter out all targets that don't have a description parameter. Use
this feature, and names themselves don't matter so much. This also
works in the command line since "ant -projecthelp" will only print out
targets that have a description parameter.

If you do want to specify names, then make top level targets start
with an uppercase letter (or be all uppercase) and internal targets
start with a lowercase letter (or be all lowercase). After "z" comes
the curly braces, the pipe, and the tilde character -- all characters
with special Unix meanings.


On Nov 21, 2007 8:06 AM, Gilles Scokart <[EMAIL PROTECTED]> wrote:
> The problem with ~ is that it has a special meaning in unix command line.  If 
> you have a user having the name of the
> target, you will have to escape it.
>
> Unfortunately, there is no ascii characters after ~.  Maybe starting the top 
> level target by an uppercase and using _
> might work.
>
> Gilles
>
> > -----Original Message-----
> > From: mjdenham [mailto:[EMAIL PROTECTED]
> > Sent: mercredi 21 novembre 2007 12:57
> > To: user@ant.apache.org
>
> > Subject: Re: Specify non-top level target
> >
> >
> > Thanks for all those great ideas everybody.
> >
> > Two ideas that I liked the most were:
> > 1. add a description to the target, making it non-internal.  Then click the
> > "Hide Internal Targets" toolbar button in Eclipse ant View.
> >
> > 2. Use a special prefix for internal ant targets.  The standard seems to be
> > '-' e.g. '-init'.  However I have found that using '~' has the benefit of
> > moving the internal targets to the bottom because Eclipse ant viewer sorts
> > targets alphabetically and '-' < a-z < '~' in ASCII.
> >
> > Thanks
> >
> > Martin
> > --
> > View this message in context: 
> > http://www.nabble.com/Specify-non-top-level-target-
> > tf4845485.html#a13875826
> > Sent from the Ant - Users mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>



-- 
--
David Weintraub
[EMAIL PROTECTED]

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

Reply via email to