BmtSSCommands.rpi 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: bme
  5. (C) Copyright IBM Corp. 2003, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure
  7. restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <Command_File>
  10. <Repository_Info>
  11. <Oem>TRUE</Oem>
  12. <Path/>
  13. <FormatDriver>BmtSSOutputHandler.exe</FormatDriver>
  14. <MaxCommentLength>512</MaxCommentLength>
  15. <Debug>FALSE</Debug>
  16. </Repository_Info>
  17. <Environment_Vars>
  18. <SSDIR>%PathToRep%</SSDIR>
  19. </Environment_Vars>
  20. <LocaleReference>
  21. <location lang="en-US">bmt/SSLangRes/SS_english_us_tag.xml</location>
  22. <location lang="en-CA">bmt/SSLangRes/SS_english_ca_tag.xml</location>
  23. </LocaleReference>
  24. <ResourceStrings>
  25. <Version ResourceId="ID_VERSION">Version</Version>
  26. <VersionTT ResourceId="ID_VERSION_TT">"Displays the Version number"</VersionTT>
  27. <User ResourceId="ID_USER">User</User>
  28. <UserTT ResourceId="ID_USER_TT">"Displays the name of the user who commited the action."</UserTT>
  29. <Date ResourceId="ID_DATE">Date</Date>
  30. <DateTT ResourceId="ID_DATE_TT">"Displays the date on which the action was commited"</DateTT>
  31. <Comment ResourceId="ID_COMMENT">Comment</Comment>
  32. <CommentTT ResourceId="ID_COMMENT_TT">"Displays a brief description of the action"</CommentTT>
  33. <Checkin_Comment ResourceId="ID_CHECKIN_COMMENT">No comment was provided for this checkin.</Checkin_Comment>
  34. <Add_File ResourceId="ID_ADD_FILE">Adding file to BMT project</Add_File>
  35. <Add_Folder ResourceId="ID_ADD_FOLDER">Adding folder to BMT project</Add_Folder>
  36. </ResourceStrings>
  37. <ConnectionString>
  38. <Argument>
  39. <Name>RepositoryRoot</Name>
  40. <InputType>eRepRoot</InputType>
  41. <Value>$</Value>
  42. <Description>Repository root</Description>
  43. </Argument>
  44. <Argument>
  45. <Name>PathToRep</Name>
  46. <InputType>ePath</InputType>
  47. <Description ResourceId="ID_PATHTOREP_DESCP">Path to the srcsafe.ini file</Description>
  48. </Argument>
  49. <Argument>
  50. <Name>PathInRep</Name>
  51. <InputType>ePathInRep</InputType>
  52. <Description>Path in repository</Description>
  53. </Argument>
  54. <Argument>
  55. <Name>ProjectName</Name>
  56. <InputType>eProjectName</InputType>
  57. <Description>Project name</Description>
  58. </Argument>
  59. </ConnectionString>
  60. <Section Name="Init">
  61. </Section>
  62. <Section Name="Create_Project" Dir="%ProjectPath%">
  63. <command>
  64. <cmd_str> Create "%PathInRep%" -I- </cmd_str>
  65. </command>
  66. <command>
  67. <cmd_str> Cp "%PathInRep%" -I- </cmd_str>
  68. </command>
  69. <command>
  70. <cmd_str> Add "%ProjectPath%\*" -C"%AddFile_Comment%" -I- </cmd_str>
  71. </command>
  72. <command>
  73. <cmd_str> Create "%PathInRep%\logs" -I- </cmd_str>
  74. </command>
  75. <command>
  76. <cmd_str> Cp "%PathInRep%\logs" -I- </cmd_str>
  77. </command>
  78. <command>
  79. <cmd_str> Add "%ProjectPath%\logs\*" -C"%AddFile_Comment%" -I- </cmd_str>
  80. </command>
  81. <command>
  82. <cmd_str> WorkFold "%PathInRep%" "%ProjectPath%"</cmd_str>
  83. </command>
  84. <command>
  85. <cmd_str> Cp "%PathInRep%" -I- </cmd_str>
  86. </command>
  87. </Section>
  88. <Section Name="Open_Project" Dir="%ProjectPath%">
  89. <command>
  90. <cmd_str> WorkFold "%PathInRep%" "%ProjectPath%"</cmd_str>
  91. </command>
  92. </Section>
  93. <Section Name="Exist">
  94. <command>
  95. <cmd_str> properties -I- "%File_Or_Folder_In_Rep%"</cmd_str>
  96. </command>
  97. </Section>
  98. <Section Name="EnumerateChildren">
  99. <command>
  100. <cmd_str> Directory -I- "%PathInRep%"</cmd_str>
  101. </command>
  102. </Section>
  103. <Section Name="EnumerateChildFolders">
  104. <command>
  105. <cmd_str> Directory -I- -F- "%PathInRep%"</cmd_str>
  106. </command>
  107. </Section>
  108. <Section Name="Add_Folder" Dir="%ProjectPath%">
  109. <command>
  110. <cmd_str> Create "%PathInRep%" -C -S -I-</cmd_str>
  111. </command>
  112. <command>
  113. <cmd_str> Add -R * -C"Adding folder for BMT" -I-</cmd_str>
  114. </command>
  115. <command>
  116. <cmd_str> WorkFold "%PathInRep%" "%ProjectPath%"</cmd_str>
  117. </command>
  118. <command>
  119. <cmd_str> Cp "%Previous_PathInRep%" -I-</cmd_str>
  120. </command>
  121. </Section>
  122. <Section Name="Add_File" Dir="%ProjectPath%" ImportSingleFile="FALSE">
  123. <command>
  124. <cmd_str> Cp "%PathInRep%" -I-</cmd_str>
  125. </command>
  126. <command>
  127. <cmd_str> Add "%ProjectPath%/%FileName%" -C -I-</cmd_str>
  128. </command>
  129. <command>
  130. <cmd_str> Cp "%Previous_PathInRep%" -I-</cmd_str>
  131. </command>
  132. </Section>
  133. <Section Name="ImportSingleFile" Dir=""/>
  134. <Section Name="Create_Folder" Dir="%ProjectPath%">
  135. <command>
  136. <cmd_str> Cp "%PathInRep%" -I-</cmd_str>
  137. </command>
  138. <command>
  139. <cmd_str> Create "%Folder_Name%" -C"%comment%" -I-</cmd_str>
  140. </command>
  141. <command>
  142. <cmd_str> Cp "%Previous_PathInRep%" -I-</cmd_str>
  143. </command>
  144. </Section>
  145. <Section Name="EnumerateChildren" Dir="">
  146. <command>
  147. <cmd_str> Directory -I-</cmd_str>
  148. </command>
  149. </Section>
  150. <Section Name="check_in_File" Dir="%ChangeDirTo%">
  151. <command>
  152. <cmd_str> Cp "%PathInRep%" -I-</cmd_str>
  153. </command>
  154. <command>
  155. <cmd_str> Checkin -I- -P "%PathInRep%/%FileName%" -C"%Checkin_Comment%"</cmd_str>
  156. </command>
  157. </Section>
  158. <Section Name="check_in_Folder" Dir="%ChangeDirTo%" ProcessSubFolder="FALSE">
  159. <command>
  160. <cmd_str> Checkin -I- -P "%PathInRep%\*" -C"%Checkin_Comment%"</cmd_str>
  161. </command>
  162. <command>
  163. <cmd_str> Checkin -I- -P "%PathInRep%\logs\*" -C"%Checkin_Comment%"</cmd_str>
  164. </command>
  165. </Section>
  166. <Section Name="check_out_File" Dir="%ChangeDirTo%">
  167. <command>
  168. <cmd_str> Checkout -C -I- "%PathInRep%/%FileName%"</cmd_str>
  169. </command>
  170. </Section>
  171. <Section Name="check_out_Folder" Dir="%ChangeDirTo%" ProcessSubFolder="FALSE">
  172. <command>
  173. <cmd_str> Checkout -C -I- "%PathInRep%\*"</cmd_str>
  174. </command>
  175. <command>
  176. <cmd_str> Checkout -C -I- "%PathInRep%\logs\*"</cmd_str>
  177. </command>
  178. </Section>
  179. <Section Name="Undocheck_out_File" Dir="%ChangeDirTo%">
  180. <command>
  181. <cmd_str> Undocheckout -I-Y "%PathInRep%/%FileName%"</cmd_str>
  182. </command>
  183. </Section>
  184. <Section Name="Undocheck_out_Folder" Dir="%ChangeDirTo%">
  185. <command>
  186. <cmd_str> Undocheckout -I-Y "%PathInRep%\*"</cmd_str>
  187. </command>
  188. <command>
  189. <cmd_str> Undocheckout -I-Y "%PathInRep%\logs\*"</cmd_str>
  190. </command>
  191. </Section>
  192. <Section Name="Get_History" Dir="%ChangeDirTo%">
  193. <command>
  194. <cmd_str> History -I- "%PathInRep%/%FileName%"</cmd_str>
  195. </command>
  196. </Section>
  197. <Section Name="Get_Version" Dir="%ChangeDirTo%">
  198. <command>
  199. <cmd_str> Get -I- "%PathInRep%/%FileName%" -GWR -R -V%Version_Number%</cmd_str>
  200. </command>
  201. </Section>
  202. <Section Name="Get_Latest_Version" Dir="%ChangeDirTo%" ProcessSubFolder="FALSE">
  203. <command>
  204. <cmd_str> Get "%PathInRep%\*" -I- -GWR</cmd_str>
  205. </command>
  206. <command>
  207. <cmd_str> Get "%PathInRep%\logs\*" -I- -GWR -GL"%ProjectPath%\logs"</cmd_str>
  208. </command>
  209. <command>
  210. <cmd_str> WorkFold "%PathInRep%" "%ProjectPath%"</cmd_str>
  211. </command>
  212. </Section>
  213. <Section Name="IsCheckedOut" Dir="%ProjectPath%">
  214. <command>
  215. <cmd_str> Status "%PathInRep%/%FileName%" -I- -R</cmd_str>
  216. </command>
  217. </Section>
  218. <Section Name="Properties" Dir="">
  219. <command>
  220. <cmd_str> properties "%File_Or_Folder_In_Rep%" -I-</cmd_str>
  221. </command>
  222. </Section>
  223. <Section Name="IsFileDiffernt" Dir="">
  224. <command>
  225. <cmd_str> diff -B "%PathInRep%/%FileName%" "%ProjectPath%/%FileName%" -I-</cmd_str>
  226. </command>
  227. </Section>
  228. <Section Name="Terminate"/>
  229. </Command_File>