View Javadoc
1   package org.apache.maven.shared.project.deploy;
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.project.MavenProject;
23  
24  /**
25   * 
26   * @author Robert Scholte
27   */
28  public class ProjectDeployerRequest
29  {
30  
31      // From AbstractDeployMojo
32  
33      private boolean updateReleaseInfo;
34  
35      private int retryFailedDeploymentCount;
36  
37      // From DeployMojo
38  
39      private MavenProject project;
40  
41      private String altDeploymentRepository;
42  
43      private String altSnapshotDeploymentRepository;
44  
45      private String altReleaseDeploymentRepository;
46  
47      /**
48       * @return the updateReleaseInfo
49       */
50      public boolean isUpdateReleaseInfo()
51      {
52          return updateReleaseInfo;
53      }
54  
55      /**
56       * @param updateReleaseInfo the updateReleaseInfo to set
57       */
58      public ProjectDeployerRequest setUpdateReleaseInfo( boolean updateReleaseInfo )
59      {
60          this.updateReleaseInfo = updateReleaseInfo;
61          return this;
62      }
63  
64      /**
65       * @return the retryFailedDeploymentCount
66       */
67      public int getRetryFailedDeploymentCount()
68      {
69          return retryFailedDeploymentCount;
70      }
71  
72      /**
73       * @param retryFailedDeploymentCount the retryFailedDeploymentCount to set
74       */
75      public ProjectDeployerRequest setRetryFailedDeploymentCount( int retryFailedDeploymentCount )
76      {
77          this.retryFailedDeploymentCount = retryFailedDeploymentCount;
78          return this;
79      }
80  
81      /**
82       * @return the project
83       */
84      public MavenProject getProject()
85      {
86          return project;
87      }
88  
89      /**
90       * @param project the project to set
91       */
92      public ProjectDeployerRequest setProject( MavenProject project )
93      {
94          this.project = project;
95          return this;
96      }
97  
98      /**
99       * @return the altDeploymentRepository
100      */
101     public String getAltDeploymentRepository()
102     {
103         return altDeploymentRepository;
104     }
105 
106     /**
107      * @param altDeploymentRepository the altDeploymentRepository to set
108      */
109     public ProjectDeployerRequest setAltDeploymentRepository( String altDeploymentRepository )
110     {
111         this.altDeploymentRepository = altDeploymentRepository;
112         return this;
113     }
114 
115     /**
116      * @return the altSnapshotDeploymentRepository
117      */
118     public String getAltSnapshotDeploymentRepository()
119     {
120         return altSnapshotDeploymentRepository;
121     }
122 
123     /**
124      * @param altSnapshotDeploymentRepository the altSnapshotDeploymentRepository to set
125      */
126     public ProjectDeployerRequest setAltSnapshotDeploymentRepository( String altSnapshotDeploymentRepository )
127     {
128         this.altSnapshotDeploymentRepository = altSnapshotDeploymentRepository;
129         return this;
130     }
131 
132     /**
133      * @return the altReleaseDeploymentRepository
134      */
135     public String getAltReleaseDeploymentRepository()
136     {
137         return altReleaseDeploymentRepository;
138     }
139 
140     /**
141      * @param altReleaseDeploymentRepository the altReleaseDeploymentRepository to set
142      */
143     public ProjectDeployerRequest setAltReleaseDeploymentRepository( String altReleaseDeploymentRepository )
144     {
145         this.altReleaseDeploymentRepository = altReleaseDeploymentRepository;
146         return this;
147     }
148 }