View Javadoc
1   package org.apache.maven.shared.release.strategies;
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 java.util.List;
23  
24  import org.apache.maven.shared.release.strategy.Strategy;
25  
26  /**
27   * 
28   * @author Robert Scholte
29   * @since 3.0.0
30   */
31  public class DefaultStrategy implements Strategy
32  {
33      /**
34       * The phases of release to run, and in what order.
35       */
36      private List<String> preparePhases;
37  
38      /**
39       * The phases of release to run to perform.
40       */
41      private List<String> performPhases;
42  
43      /**
44       * The phases of release to run to rollback changes
45       */
46      private List<String> rollbackPhases;
47  
48      /**
49       * The phases to create a branch.
50       */
51      private List<String> branchPhases;
52  
53      /**
54       * The phases to create update versions.
55       */
56      private List<String> updateVersionsPhases;
57  
58      @Override
59      public List<String> getPreparePhases()
60      {
61          return preparePhases;
62      }
63  
64      public void setPreparePhases( List<String> preparePhases )
65      {
66          this.preparePhases = preparePhases;
67      }
68  
69      @Override
70      public List<String> getPerformPhases()
71      {
72          return performPhases;
73      }
74  
75      public void setPerformPhases( List<String> performPhases )
76      {
77          this.performPhases = performPhases;
78      }
79  
80      @Override
81      public List<String> getRollbackPhases()
82      {
83          return rollbackPhases;
84      }
85  
86      public void setRollbackPhases( List<String> rollbackPhases )
87      {
88          this.rollbackPhases = rollbackPhases;
89      }
90  
91      @Override
92      public List<String> getBranchPhases()
93      {
94          return branchPhases;
95      }
96  
97      public void setBranchPhases( List<String> branchPhases )
98      {
99          this.branchPhases = branchPhases;
100     }
101 
102     @Override
103     public List<String> getUpdateVersionsPhases()
104     {
105         return updateVersionsPhases;
106     }
107 
108     public void setUpdateVersionsPhases( List<String> updateVersionsPhases )
109     {
110         this.updateVersionsPhases = updateVersionsPhases;
111     }
112 }