ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: some help
Date Thu, 25 Apr 2002 21:21:59 GMT
--- Siamack Farshi <sfarshi@724.com> 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

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



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

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


Mime
View raw message