I am trying to exclude a file (which is in the deployment root folder) from being deployed to a sandbox. Does ant have any sort of attribute to achieve this?
<target name="deploy">
<sf:deploy username="${sf.username}" password="${sf.password}${sf.token}"
serverurl="${sf.endpoint}" maxPoll="${sf.maxPoll}" deployRoot="../src"
rollbackOnError="true" autoUpdatePackage="true" purgeOnDelete="true"
logType="Debugonly" allowMissingFiles="true" ignoreWarnings="true"
pollWaitMillis="10000" />
</target>
deployRoot is referring to src folder which has a subfolder - salesforce settings folder. There are few types of settings we include in that folder, I want to exclude knowledge.settings file from being deployed. I don't want to delete the file from that folder.