ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "webhiker@tiscali.fr" <webhi...@tiscali.fr>
Subject Re: shell like property values ...
Date Thu, 05 Jun 2003 07:38:45 GMT
I personally prefer to see the unprocessed variable reference - it's a 
great way to debug quickly
if you've cocked up any of your settings.

Seeing "foo" in a trace will likely be loads harder than if you see  
${foo}, which immediately
lets you know there's a problem.

Don't over complicate Ant - the main reason is good is it's simplicity.
Next thing you'll want is obligatory tabs for indenting your targets..

;>




Matt Benson wrote:

>I have suggested these before as well.  What about:
>
>${foofoobarbar%bar} = foofoobar
>${foofoobarbar%bar*} = foofoobar
>${foofoobarbar%%bar*} = foofoo
>${foofoobarbar#foo} = foobarbar
>${foofoobarbar##*foo} = barbar
>
>etc...
>
>Anybody wanna submit an RFE?
>
>-Matt
>
>
>--- James Todd <jwtodd@pacbell.net> wrote:
>  
>
>>has the addition of unix shell pattern expansion
>>been considered.
>>
>>specifically, adding things like the following to
>>the ${...} property
>>references:
>>
>>    ${foo}
>>
>>        returns the value of foo or empty string if
>>not set (vs the 
>>literal ${foo})
>>
>>    ${foo:-bar}
>>
>>       returns bar iff foo is unset
>>
>>    ${foo:=bar}
>>
>>       sets foo to bar iff foo isunset, and returns
>>the value of foo
>>
>>    ${foo:?bar}
>>
>>       echo error message in the event foo is unset
>>
>>    ${foo:+bar}
>>
>>       opposite of ":-"
>>
>>    there are more ...
>>
>>i'd think the above would ease the process one goes
>>through to check
>>for property defaults, etc. this should be easily
>>implementable given it
>>is, for the most part, string maninpulation and
>>logical conditionals 
>>specific
>>to the ${...} syntax.
>>
>>thx,
>>
>>- james
>>
>>
>>
>>    
>>
>---------------------------------------------------------------------
>  
>
>>To unsubscribe, e-mail:
>>user-unsubscribe@ant.apache.org
>>For additional commands, e-mail:
>>user-help@ant.apache.org
>>
>>    
>>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
>http://calendar.yahoo.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


Mime
View raw message