PolicyDefinition result return empty collection using Java SDK of TFS 2015 “tp.getCheckinPolicies()” or “vcc.getCheckinPoliciesForServerPaths()”
问题 Does anyone tried to retrieve PolicyDefinition using Java SDK of TFS 2015? I have used following code to retrieve the PolicyDefinition under intelliJ Plugin. Code execute fine but I am getting empty collection of PolicyDefinition. I am working on CustomPath Policy and I know on particular team project customPath Policy is applied. Before allowing user checkin I want to validate that weather this policy is applied or not. Sample Code: Project myProject = policyContext.getProject(); //