I am having a task to find whether the clearcase folder has any changes or not.
<Target Name="CheckChanges" Returns="ItemsFromFile">
<Exec Command="cleartool find "$(FolderPath)" -version "{brtype($(StreamName)) && created_since($(FromDate))}" -print >> Changes.log" />
<ReadLinesFromFile
File="Changes.log" >
<Output
TaskParameter="Lines"
ItemName="ItemsFromFile"/>
</ReadLinesFromFile>
</Target>
<Target Name="Build">
<!-- This target should be executed only when Changes.log file has contents -->
<Target>
If the $(FolderPath) has changes then the contents will be available in Changes.log.
What i would like to do is if the changes.log file contains some lines then run another task Build should run.
How to execute a target based on condition that the file has contents?