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