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 theUpdateReleaseInfoToBeSet the updateReleaseInfo to set
57 * @return {@link ProjectDeployerRequest} for chaining.
58 */
59 public ProjectDeployerRequest setUpdateReleaseInfo( boolean theUpdateReleaseInfoToBeSet )
60 {
61 this.updateReleaseInfo = theUpdateReleaseInfoToBeSet;
62 return this;
63 }
64
65 /**
66 * @return the retryFailedDeploymentCount
67 */
68 public int getRetryFailedDeploymentCount()
69 {
70 return retryFailedDeploymentCount;
71 }
72
73 /**
74 * @param theRetryFailedDeploymentCountToBeSet the retryFailedDeploymentCount to set
75 * @return {@link ProjectDeployerRequest} for chaining.
76 */
77 public ProjectDeployerRequest setRetryFailedDeploymentCount( int theRetryFailedDeploymentCountToBeSet )
78 {
79 this.retryFailedDeploymentCount = theRetryFailedDeploymentCountToBeSet;
80 return this;
81 }
82
83 /**
84 * @return the project
85 */
86 public MavenProject getProject()
87 {
88 return project;
89 }
90
91 /**
92 * @param theProjectToBeSet the {link {@link MavenProject project} to set
93 * @return {@link ProjectDeployerRequest} for chaining.
94 */
95 public ProjectDeployerRequest setProject( MavenProject theProjectToBeSet )
96 {
97 this.project = theProjectToBeSet;
98 return this;
99 }
100
101 /**
102 * @return the altDeploymentRepository
103 */
104 public String getAltDeploymentRepository()
105 {
106 return altDeploymentRepository;
107 }
108
109 /**
110 * @param theAltDeploymentRepositoryToBeSet the altDeploymentRepository to set
111 * @return {@link ProjectDeployerRequest} for chaining.
112 */
113 public ProjectDeployerRequest setAltDeploymentRepository( String theAltDeploymentRepositoryToBeSet )
114 {
115 this.altDeploymentRepository = theAltDeploymentRepositoryToBeSet;
116 return this;
117 }
118
119 /**
120 * @return the altSnapshotDeploymentRepository
121 */
122 public String getAltSnapshotDeploymentRepository()
123 {
124 return altSnapshotDeploymentRepository;
125 }
126
127 /**
128 * @param theAltSnapshotDeploymentRepositoryToBeSet the altSnapshotDeploymentRepository to set
129 * @return {@link ProjectDeployerRequest} for chaining.
130 */
131 public ProjectDeployerRequest setAltSnapshotDeploymentRepository( String theAltSnapshotDeploymentRepositoryToBeSet )
132 {
133 this.altSnapshotDeploymentRepository = theAltSnapshotDeploymentRepositoryToBeSet;
134 return this;
135 }
136
137 /**
138 * @return the altReleaseDeploymentRepository
139 */
140 public String getAltReleaseDeploymentRepository()
141 {
142 return altReleaseDeploymentRepository;
143 }
144
145 /**
146 * @param theAltReleaseDeploymentRepositoryToBeSet the altReleaseDeploymentRepository to set
147 * @return {@link ProjectDeployerRequest} for chaining.
148 */
149 public ProjectDeployerRequest setAltReleaseDeploymentRepository( String theAltReleaseDeploymentRepositoryToBeSet )
150 {
151 this.altReleaseDeploymentRepository = theAltReleaseDeploymentRepositoryToBeSet;
152 return this;
153 }
154 }