2014-04-02 24 views

回答

0

第三方Ant-Contrib<trycatch> task,捕捉異常,然後繼續Ant腳本:

<taskdef resource="net/sf/antcontrib/antlib.xml" /> 

<trycatch> 
    <try> 
     <unwar/> <!-- A fully configured unwar task here --> 
    </try> 
    <catch> 
     <echo>The unwar task failed.</echo> 
    </catch> 
</trycatch> 

<!-- The script continues here, even if the unwar task failed. --> 
相關問題