Are you giving us the whole story?  From what I see
here, your <antcall>s are not pointing to actual
targets.  So for this example, there is not even
anything to do...

<target name="x">
  <antcall target="A" />
</target>

<target name="A">
  <property name="small" value="a" />
</target>

...


However, if, instead, you mean you want to <antcall> a
target based on the value of a property, that's a
little different, but still not difficult.  I think
all you should need is:


<target name="default">
  <antcall target="target-${small}" />
</target>

<target name="target-a">
  <echo message="target A!" />
</target>

<target name="target-b">
  <echo message="target B!" />
</target>

<target name="target-c">
  <echo message="target C!" />
</target>

<target name="target-">
  <fail message="no value specified for property
&quot;small&quot;" />
</target>

Very contrived, but should work okay...

-Matt

--- Chen Becky <[EMAIL PROTECTED]> wrote:
> Hi,
>  
> Yes, I am new to ANT, may be you all are familiar
> with this.
> By researching from archive emails, I think the
> statement "AntCall
> cannot return properties" is true.
> But there must be a way to setup a property to
> accomplish what I need to
> do below.
>  
> <-- I want to use AntCall to setup a property which
> based on another
> property with various name -->
> <AntCall target="input-1"/>
> <AntCall target="input-2"/>
> <AntCall target="input-3"/>
> ......
> ......
> <target name="A" if="input-1"
>   <property name="small" value="a"/>
> </target>
> <target name="B" if="input-2"
>   <property name="small" value="b"/>
> </target>
> <target name="C" if="input-3"
>   <property name="small" value="c"/>
> </target>
>  
> Thanks a lot.
> Becky
> 


__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

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

Reply via email to