--- Siamack Farshi <[EMAIL PROTECTED]> wrote:
> I am using the TryCatch task in the following format:
> 
> <try>
>       <ant antfile="build.xml" dir="PaginationAggregation" target="all"/>
> </try>
> <catch><echo>PainationAggregation failed</echo></catch>
> 
> I get the following error message:
> 
> build.xml:27: The <try> task doesn't support the nested "ant" element.

That's because the task doesn't -- the <try> nested element does. The
syntax to use for <trycatch> is:
  <trycatch [optional attributes...]>
    <try>
      ...
    </try>
    <catch>
      ...
    </catch>
    <finally>
      ...
    </finally>
  </trycatch>

The <finally> is optional.

Diane

=====
([EMAIL PROTECTED])



__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

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

Reply via email to