Check if teamcity.build.changedFiles.file is available in NANT script
Since the
teamcity.build.changedFiles.file is only availabe when there are changed files. Is there a way to check if ts available. Any time I reference that setting in NANT it thows an error, unless there are actually changed files for the build.
Thanks
- Andy
Please sign in to leave a comment.
Andy,
Could you please create an issue in our tracker for this http://youtrack.jetbrains.net/issue/TW.
Kind regards,
Marina
I figured out a way to do this - manually check if a changefile exists
<property name="ChangeDir" value="${agent.home.dir}\temp\agentTmp" />
<foreach item="Folder" in="${ChangeDir}" property="foldername">
<in>
<items>
<include name="changedFiles*." />
</items>
</in>
<do>
<echo message="File Changes Exists"/>
<call target="ExecSqlFiles" />
</do>
</foreach>