You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Grinvald, Edward" <ED...@ca.com> on 2002/06/07 17:53:15 UTC

Confused about syntax

Hi,
i'm just slightly confused.
i have the following 'code:'
  <input
   message="Please enter the project you want to build:"
   addproperty="vssproject"
  />
  <input
   message="Checkout source from VSS?"
   validargs="y,n"
   addproperty="do.checkout"
  />
  <condition property="${vssproject}.checkout">
   <equals arg1="y" arg2="do.checkout" />
  </condition>

if i wanted to print the value of ${vssproject}.checkout (set/not set), how
would i do it?
${vssproject}.checkout 
or
${${vssproject}.checkout}
or
${vssproject.checkout}
 
Thank You,
 
Edward Grinvald
Computer Associates International
Programmer, Storage Development
Edward.Grinvald@ca.com <ma...@ca.com> 
1-631-342-6000 x76350
 

Re: Confused about syntax

Posted by Diane Holt <ho...@yahoo.com>.
--- Stefan Bodewig <bo...@apache.org> wrote:
> You can't as Ant doesn't support recursive property expansion.

But ant-contrib's <propertycopy> does.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Confused about syntax

Posted by Stefan Bodewig <bo...@apache.org>.
On Fri, 7 Jun 2002, Edward Grinvald <ED...@ca.com> wrote:

>   <condition property="${vssproject}.checkout">
>    <equals arg1="y" arg2="do.checkout" />
>   </condition>

You will want to use ${do.checkout} here.

> if i wanted to print the value of ${vssproject}.checkout (set/not
> set), how would i do it?

You can't as Ant doesn't support recursive property expansion.

Stefan

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>