/maven-scm-providers/maven-scm-provider-jazz/src/main/java/org/apache/maven/scm/provider/jazz/command/JazzConstants.java

https://github.com/intelchen/maven-scm · Java · 263 lines · 46 code · 52 blank · 165 comment · 0 complexity · 95c66ccadba7e8f08b175558d69c925c MD5 · raw file

  1. package org.apache.maven.scm.provider.jazz.command;
  2. /*
  3. * Licensed to the Apache Software Foundation (ASF) under one
  4. * or more contributor license agreements. See the NOTICE file
  5. * distributed with this work for additional information
  6. * regarding copyright ownership. The ASF licenses this file
  7. * to you under the Apache License, Version 2.0 (the
  8. * "License"); you may not use this file except in compliance
  9. * with the License. You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing,
  14. * software distributed under the License is distributed on an
  15. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. * KIND, either express or implied. See the License for the
  17. * specific language governing permissions and limitations
  18. * under the License.
  19. */
  20. /**
  21. * @author <a href="mailto:ChrisGWarp@gmail.com">Chris Graham</a>
  22. */
  23. public class JazzConstants
  24. {
  25. // -------------------------------------------------------------------------------------------------
  26. // MISC.
  27. // -------------------------------------------------------------------------------------------------
  28. /**
  29. * Executable for Jazz SCM (Rational Team Concert).
  30. */
  31. public static final String SCM_EXECUTABLE = "scm";
  32. /**
  33. * Folder created by the SCM to store metadata.
  34. */
  35. public static final String SCM_META_DATA_FOLDER = ".jazz5";
  36. /**
  37. * SCM type identifier
  38. */
  39. public static final String SCM_TYPE = "jazz";
  40. // -------------------------------------------------------------------------------------------------
  41. // COMMANDS
  42. // -------------------------------------------------------------------------------------------------
  43. /**
  44. * Accept command - Accept change sets into a repository workspace and load them into the local workspace.
  45. */
  46. public static final String CMD_ACCEPT = "accept";
  47. /**
  48. * Annotate command - Show line-by-line revision information for a file.
  49. */
  50. public static final String CMD_ANNOTATE = "annotate";
  51. /**
  52. * Checkin command - Check in locally modified files, adding them to the current change set.
  53. */
  54. public static final String CMD_CHECKIN = "checkin";
  55. /**
  56. * Create command - Can be used with a sub command to create a snapshot (tag) or repository workspace (branch).
  57. */
  58. public static final String CMD_CREATE = "create";
  59. /**
  60. * Deliver command - Deliver to a target.
  61. */
  62. public static final String CMD_DELIVER = "deliver";
  63. /**
  64. * Diff command - Compare two states of a file.
  65. */
  66. public static final String CMD_DIFF = "diff";
  67. /**
  68. * History command - Show the history of a file or component.
  69. */
  70. public static final String CMD_HISTORY = "history";
  71. /**
  72. * List command - List repository objects.
  73. */
  74. public static final String CMD_LIST = "list";
  75. /**
  76. * Load command - Load components from a repository workspace into a local workspace.
  77. */
  78. public static final String CMD_LOAD = "load";
  79. /**
  80. * Lock command - Used to lock or revoke locks on files in a stream. (requires 'acquire' or 'release' sub commands).
  81. */
  82. public static final String CMD_LOCK = "lock";
  83. /**
  84. * Snapshot command - Used to promote snapshots. Requires the 'promote' sub command.
  85. */
  86. public static final String CMD_SNAPSHOT = "snapshot";
  87. /**
  88. * Status command - Show modification status of items in a workspace.
  89. */
  90. public static final String CMD_STATUS = "status";
  91. // -------------------------------------------------------------------------------------------------
  92. // SUB-COMMANDS
  93. // -------------------------------------------------------------------------------------------------
  94. // CREATE sub commands
  95. /**
  96. * The 'type' (snapshot) of the create command.
  97. */
  98. public static final String CMD_SUB_SNAPSHOT = "snapshot";
  99. /**
  100. * The 'type' (workspace) of the create command.
  101. */
  102. public static final String CMD_SUB_WORKSPACE = "workspace";
  103. /**
  104. * The 'type' (changeset) of the create command.
  105. */
  106. public static final String CMD_SUB_CHANGESET = "changeset";
  107. // LIST sub commands
  108. /**
  109. * List files in a remote workspace.
  110. */
  111. public static final String CMD_SUB_REMOTEFILES = "remotefiles";
  112. /**
  113. * List files in a remote workspace.
  114. */
  115. public static final String CMD_SUB_CHANGESETS = "changesets";
  116. // LOCK sub commands
  117. /**
  118. * Locks files in a stream.
  119. */
  120. public static final String CMD_SUB_ACQUIRE = "acquire";
  121. /**
  122. * Revoke locks on files in a stream.
  123. */
  124. public static final String CMD_SUB_RELEASE = "release";
  125. // SNAPSHOT sub commands
  126. /**
  127. * Promotes a snapshot to a stream or workspace.
  128. */
  129. public static final String CMD_SUB_PROMOTE = "promote";
  130. // -------------------------------------------------------------------------------------------------
  131. // ARGUMENTS
  132. // -------------------------------------------------------------------------------------------------
  133. /**
  134. * Accept component additions and deletions (used with "accept" command).
  135. */
  136. public static final String ARG_FLOW_COMPONENTS = "--flow-components";
  137. /**
  138. * Overwrite existing files when loading (used with "load" command).
  139. */
  140. public static final String ARG_FORCE = "--force";
  141. /**
  142. * Local workspace path.
  143. */
  144. public static final String ARG_LOCAL_WORKSPACE_PATH = "--dir";
  145. /**
  146. * Load Root Directory.
  147. */
  148. public static final String ARG_LOAD_ROOT_DIRECTORY = "--directory";
  149. /**
  150. * The repository name.
  151. */
  152. public static final String ARG_REPOSITORY_URI = "--repository-uri";
  153. /**
  154. * Description for the snapshot (used with "create snapshot" command).
  155. */
  156. public static final String ARG_SNAPSHOT_DESCRIPTION = "--description";
  157. /**
  158. * Name of the snapshot (used with "create snapshot" command).
  159. */
  160. public static final String ARG_SNAPSHOT_NAME = "--name";
  161. /**
  162. * Forces the output to not shorten, otherwise the width will be based on the COLUMNS environment variable, or if
  163. * that is not set, to 80 characters. (used with the "status" command).
  164. */
  165. public static final String ARG_STATUS_WIDE_PRINT_OUT = "--wide";
  166. /**
  167. * The user ID in the repository.
  168. */
  169. public static final String ARG_USER_NAME = "--username";
  170. /**
  171. * The user password in the repository.
  172. */
  173. public static final String ARG_USER_PASSWORD = "--password";
  174. /**
  175. * Description for the repository workspace (used with "create workspace" command).
  176. */
  177. public static final String ARG_WORKSPACE_DESCRIPTION = "--description";
  178. /**
  179. * Name of the repository workspace (used with "create workspace" command).
  180. */
  181. public static final String ARG_WORKSPACE_NAME = "--name";
  182. /**
  183. * Name of the repository workspace (used with "create workspace" command).
  184. */
  185. public static final String ARG_WORKSPACE_SNAPSHOT = "--snapshot";
  186. /**
  187. * Name of the source repository workspace (used with "deliver" command).
  188. */
  189. public static final String ARG_DELIVER_SOURCE = "--source";
  190. /**
  191. * Name of the target repository workspace or stream (used with "deliver" command).
  192. */
  193. public static final String ARG_DELIVER_TARGET = "--target";
  194. /**
  195. * Ignore uncommitted changes and deliver (used with "deliver" command).
  196. */
  197. public static final String ARG_OVERWRITE_UNCOMMITTED = "--overwrite-uncommitted";
  198. /**
  199. * Perform a file base diff (aftertype = file) (used with "diff" command).
  200. */
  201. public static final String ARG_FILE = "file";
  202. /**
  203. * Specify the maximum number of results to return, must be greater than zero.
  204. * Used by numerous commands.
  205. */
  206. public static final String ARG_MAXIMUM = "--maximum";
  207. /**
  208. * Name of the repository workspace (used with "list changesets" command).
  209. */
  210. public static final String ARG_WORKSPACE = "--workspace";
  211. }