In java server API. How do we delete file in SCM after delivering files to the streams?
One answer
Several things:
- An advisor is a pre-condition that can guard operations and fail if the operation is not allowed
- A pre condition MUST not delete or modify any of its operational data e.g. https://rsjazz.wordpress.com/2012/12/14/do-not-modify-the-triggering-element-in-an-operationadvisor/
- Why would you even want to delete a file in the server API?
I also agree with Kenny.
Comments
Kenny Smith
May 24 '19, 9:05 a.m.Why are you trying to delete a file after you have delivered it? That will create a deletion stub that would become a change set that also needs to be delivered.
Dhirendra Singh
May 27 '19, 1:38 a.m.Hi kenny,
From admin perspective I want to delete few files from stream which are not part of project anymore. And i want those file to be deleted on specific event.