ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sunyj" <su...@adtec.com.cn>
Subject Re: failonerror=false
Date Tue, 10 Jul 2001 11:37:22 GMT
>     <javah>
>         ...
>     </javah>
>         ....
>         ....
> </target>
> 
> suggestions anyone??
> 
> Henning

You can use TryCatchTask  in ant-contrib. 

ANT Contribute project is here. You can get it through cvs.
http://sourceforge.net/projects/ant-contrib/

Or it can be directly downloaded here.
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/ant-contrib/ant-contrib/src/net/sf/antcontrib/logic/TryCatchTask.java?rev=1.1

For example:
<target name="javah-files" depends="init,classes">
  <trycatch> 
        <try>
           <javah>
            ...
          </javah>
        </try>
        <catch/>
        <try>
          <javah>
            ...
          </javah>
        </try>
        <catch/>
  </trycatch>
        ....
        ....
</target>
If have some questions about this. You are welcome!


Sun Yongjing
-------------------------------------------------
Sun Yongjing
International Software Cooperation Department
Advanced Digital Technology CO.,Ltd
Tel: (+86) 10-6870-0009 ext. 1037
Fax: (+86) 10-6870-0510
e-mail: sunyj@adtec.com.cn
--------------------------------------------------
Mime
View raw message