Hi,
 
I am trying to write the NAnt result into a log file using the below script :
 
<trycatch>
      <try>
           <exec program="..\nant\bin\nant.exe" commandline="-buildfile:MiddleTier\MTM.MiddleTier.build build > ..\..\..\Log\MTM.MiddleTier.build.log" />
      </try>
      <catch>
           <fail message="MTM.MiddleTier.build failed!" />
      </catch>
      <finally>
           <exec program="..\nant\bin\nant.exe" commandline="-buildfile:MiddleTier\MTM.MiddleTier.BuildLog.build writeLogFile" />
      </finally>
 </trycatch>
 
When i open up the command prompt and execute the build file containing the above script i see the output on the command prompt screen but not sent to the log file mentioned (..\..\..\Log\MTM.MiddleTier.build.log).
 
Can anyone tell me what i might be doing wrong?
 
Appreciate your help.
 
Thanks,
 
--Pradeep

Reply via email to