1 package org.apache.maven.scm.provider.jazz.command.branch;
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 import org.apache.maven.scm.ScmException;
23 import org.apache.maven.scm.ScmFileSet;
24 import org.apache.maven.scm.ScmResult;
25 import org.apache.maven.scm.command.branch.AbstractBranchCommand;
26 import org.apache.maven.scm.provider.ScmProviderRepository;
27
28 // STATUS: NOT DONE
29 //
30 // The current scm command does not have the functionality to create streams.
31 //
32 // Once it does, we will need to figure out how users intend this goal to work in RTC.
33 //
34 // There is no direct equivalent of the "branch" command in RTC.
35 // A branch in RTC is roughly equivalent to a Stream or even a Repository Workspace, depending on how
36 // the flow targets have been defined, thus the branch command could be used to create a new Stream or
37 // Repository Workspace. The RTC command "create" can be used to create new Repository Workspaces.
38 // Note however the creation of a new stream from the command line is not supported.
39 //
40 // See the following links for additional information on the RTC "create" command:
41 // RTC 2.0.0.2:
42 // http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.scm.doc/topics/r_scm_cli_create.html
43 // RTC 3.0:
44 // http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0/topic/com.ibm.team.scm.doc/topics/r_scm_cli_create.html
45 // RTC 3.0.1:
46 // http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.team.scm.doc/topics/r_scm_cli_create.html
47 //
48
49 /**
50 * @author <a href="mailto:ChrisGWarp@gmail.com">Chris Graham</a>
51 */
52 public class JazzBranchCommand
53 extends AbstractBranchCommand
54 {
55 /**
56 * {@inheritDoc}
57 */
58 protected ScmResult executeBranchCommand( ScmProviderRepository repo, ScmFileSet fileSet, String branch,
59 String message )
60 throws ScmException
61 {
62 throw new ScmException( "This provider does not support the branch command." );
63 }
64 }