ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
Subject Re: Specify non-top level target
Date Wed, 21 Nov 2007 16:52:11 GMT
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 <gscokart@gmail.com> 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:mjdenham@gmail.com]
> > 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: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
--
David Weintraub
qazwart@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message