Load rule was ignored during the build
I'm running RTC client 5.0.2. During the build, I want to re-fetch a project for latest update. A load rule was created and called by following Ant script.
<teamFetch repositoryAddress="${repositoryAddress}"
userId="${userId}"
passwordFile="${passwordFile}"
workspaceUUID="${team.scm.workspaceUUID}"
destination="${user.dir}/../temp"
verbose="true"
loadRulesByPath="build.bldtools/project1/load.rules/history.loadrule"/>
But the whole workspace was extracted from RTC regardless of history.loadrule. I wonder whether I missed something.
<teamFetch repositoryAddress="${repositoryAddress}"
userId="${userId}"
passwordFile="${passwordFile}"
workspaceUUID="${team.scm.workspaceUUID}"
destination="${user.dir}/../temp"
verbose="true"
loadRulesByPath="build.bldtools/project1/load.rules/history.loadrule"/>
But the whole workspace was extracted from RTC regardless of history.loadrule. I wonder whether I missed something.
Accepted answer
By default, a build will load all components in the build workspace. A load rule in a build can be used to specify 'what' (files or folders) to load and 'how' to load them (path location or alternate name). If you do not want to load certain components, you would need to put them in either the 'componentsToExcludeByUUID' or 'componentsToExcludeByName' Ant property.
Comments
One other answer
https://jazz.net/forum/questions/19387/choosing-which-components-to-load-during-an-rtc-build - might be helpful for your scenario.
Thanks,
Sridevi
Thanks,
Sridevi