We execute all VB projects using the below NANT script: Example only
<target name="VBCompile" > <property name="failure.reason" value="VBCompile" /> <trycatch> <try> <foreach item="File" property="FileName" in="${VBProj.dir}"> <echo message="Creating Dll from: $:{FileName}" /> <exec basedir=${VBProj.dir} program=${VB6.exe} commandline=/MAKE ${FileName} outdir ${VBDll.dir} </foreach> </try> <catch> <fail message="${failure.reason}"/> </catch> <finally>
I want the script, if we encounter some error while executing all the VB projects, should display errors on the command line itself, and I do not want the error message to appear as alerts. I tried using and $ {fail.message}. Doesn't work for me :( Please suggest any solution.
source share