I’m running an exec task with an output argument that uses a property value
<exec executable="cmd" resultproperty="runStatus" output="${logFolder}/soapui.log" error="${logFolder}/soapui-errors.log">
When running it doesn’t do anything. If I however hardcode the output location output="C:\a.txt" it works fine.
What am I doing wrong here?
P.S. At the same time error="${logFolder}/soapui-errors.log" works perfectly fine.
Thanks to FailedDev for this one.
Basically the issue was with the
${logFolder}not yet existing as it only gets created by soapUI to store logs. I assumed that soapUI would create the directory to store theoutputlogs but I was wrong.A simple
mkdirtask fixed this issue.