View Javadoc

1   package org.apache.maven.scm.provider.cvslib.cvsjava;
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.command.Command;
23  import org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider;
24  import org.apache.maven.scm.provider.cvslib.cvsjava.command.add.CvsJavaAddCommand;
25  import org.apache.maven.scm.provider.cvslib.cvsjava.command.blame.CvsJavaBlameCommand;
26  import org.apache.maven.scm.provider.cvslib.cvsjava.command.branch.CvsJavaBranchCommand;
27  import org.apache.maven.scm.provider.cvslib.cvsjava.command.changelog.CvsJavaChangeLogCommand;
28  import org.apache.maven.scm.provider.cvslib.cvsjava.command.checkin.CvsJavaCheckInCommand;
29  import org.apache.maven.scm.provider.cvslib.cvsjava.command.checkout.CvsJavaCheckOutCommand;
30  import org.apache.maven.scm.provider.cvslib.cvsjava.command.diff.CvsJavaDiffCommand;
31  import org.apache.maven.scm.provider.cvslib.cvsjava.command.export.CvsJavaExportCommand;
32  import org.apache.maven.scm.provider.cvslib.cvsjava.command.list.CvsJavaListCommand;
33  import org.apache.maven.scm.provider.cvslib.cvsjava.command.login.CvsJavaLoginCommand;
34  import org.apache.maven.scm.provider.cvslib.cvsjava.command.mkdir.CvsJavaMkdirCommand;
35  import org.apache.maven.scm.provider.cvslib.cvsjava.command.remove.CvsJavaRemoveCommand;
36  import org.apache.maven.scm.provider.cvslib.cvsjava.command.status.CvsJavaStatusCommand;
37  import org.apache.maven.scm.provider.cvslib.cvsjava.command.tag.CvsJavaTagCommand;
38  import org.apache.maven.scm.provider.cvslib.cvsjava.command.update.CvsJavaUpdateCommand;
39  
40  /**
41   * @author <a href="mailto:evenisse@apache.org">Emmanuel Venisse</a>
42   *
43   * @plexus.component role="org.apache.maven.scm.provider.ScmProvider" role-hint="cvs"
44   */
45  public class CvsJavaScmProvider
46      extends AbstractCvsScmProvider
47  {
48      /** {@inheritDoc} */
49      protected Command getAddCommand()
50      {
51          return new CvsJavaAddCommand();
52      }
53  
54      /** {@inheritDoc} */
55      protected Command getBranchCommand()
56      {
57          return new CvsJavaBranchCommand();
58      }
59  
60      /** {@inheritDoc} */
61      protected Command getBlameCommand()
62      {
63          return new CvsJavaBlameCommand();
64      }
65  
66      /** {@inheritDoc} */
67      protected Command getChangeLogCommand()
68      {
69          return new CvsJavaChangeLogCommand();
70      }
71  
72      /** {@inheritDoc} */
73      protected Command getCheckInCommand()
74      {
75          return new CvsJavaCheckInCommand();
76      }
77  
78      /** {@inheritDoc} */
79      protected Command getCheckOutCommand()
80      {
81          return new CvsJavaCheckOutCommand();
82      }
83  
84      /** {@inheritDoc} */
85      protected Command getDiffCommand()
86      {
87          return new CvsJavaDiffCommand();
88      }
89  
90      /** {@inheritDoc} */
91      protected Command getExportCommand()
92      {
93          return new CvsJavaExportCommand();
94      }
95  
96      /** {@inheritDoc} */
97      protected Command getListCommand()
98      {
99          return new CvsJavaListCommand();
100     }
101 
102     /** {@inheritDoc} */
103     protected Command getLoginCommand()
104     {
105         return new CvsJavaLoginCommand();
106     }
107 
108     /** {@inheritDoc} */
109     protected Command getRemoveCommand()
110     {
111         return new CvsJavaRemoveCommand();
112     }
113 
114     /** {@inheritDoc} */
115     protected Command getStatusCommand()
116     {
117         return new CvsJavaStatusCommand();
118     }
119 
120     /** {@inheritDoc} */
121     protected Command getTagCommand()
122     {
123         return new CvsJavaTagCommand();
124     }
125 
126     /** {@inheritDoc} */
127     protected Command getUpdateCommand()
128     {
129         return new CvsJavaUpdateCommand();
130     }
131     
132     /** {@inheritDoc} */
133     protected Command getMkdirCommand()
134     {
135         return new CvsJavaMkdirCommand();
136     }
137 }