1 package org.apache.maven.shared.transfer.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 private int retryFailedDeploymentCount;
32
33 // From DeployMojo
34
35 private MavenProject project;
36
37 private String altDeploymentRepository;
38
39 private String altSnapshotDeploymentRepository;
40
41 private String altReleaseDeploymentRepository;
42
43 /**
44 * @return the retryFailedDeploymentCount
45 */
46 public int getRetryFailedDeploymentCount()
47 {
48 return retryFailedDeploymentCount;
49 }
50
51 /**
52 * @param theRetryFailedDeploymentCountToBeSet the retryFailedDeploymentCount to set
53 * @return {@link ProjectDeployerRequest} for chaining.
54 */
55 public ProjectDeployerRequest setRetryFailedDeploymentCount( int theRetryFailedDeploymentCountToBeSet )
56 {
57 this.retryFailedDeploymentCount = theRetryFailedDeploymentCountToBeSet;
58 return this;
59 }
60
61 /**
62 * @return the project
63 */
64 public MavenProject getProject()
65 {
66 return project;
67 }
68
69 /**
70 * @param theProjectToBeSet the {link {@link MavenProject project} to set
71 * @return {@link ProjectDeployerRequest} for chaining.
72 */
73 public ProjectDeployerRequest setProject( MavenProject theProjectToBeSet )
74 {
75 this.project = theProjectToBeSet;
76 return this;
77 }
78
79 /**
80 * @return the altDeploymentRepository
81 */
82 public String getAltDeploymentRepository()
83 {
84 return altDeploymentRepository;
85 }
86
87 /**
88 * @param theAltDeploymentRepositoryToBeSet the altDeploymentRepository to set
89 * @return {@link ProjectDeployerRequest} for chaining.
90 */
91 public ProjectDeployerRequest setAltDeploymentRepository( String theAltDeploymentRepositoryToBeSet )
92 {
93 this.altDeploymentRepository = theAltDeploymentRepositoryToBeSet;
94 return this;
95 }
96
97 /**
98 * @return the altSnapshotDeploymentRepository
99 */
100 public String getAltSnapshotDeploymentRepository()
101 {
102 return altSnapshotDeploymentRepository;
103 }
104
105 /**
106 * @param theAltSnapshotDeploymentRepositoryToBeSet the altSnapshotDeploymentRepository to set
107 * @return {@link ProjectDeployerRequest} for chaining.
108 */
109 public ProjectDeployerRequest setAltSnapshotDeploymentRepository( String theAltSnapshotDeploymentRepositoryToBeSet )
110 {
111 this.altSnapshotDeploymentRepository = theAltSnapshotDeploymentRepositoryToBeSet;
112 return this;
113 }
114
115 /**
116 * @return the altReleaseDeploymentRepository
117 */
118 public String getAltReleaseDeploymentRepository()
119 {
120 return altReleaseDeploymentRepository;
121 }
122
123 /**
124 * @param theAltReleaseDeploymentRepositoryToBeSet the altReleaseDeploymentRepository to set
125 * @return {@link ProjectDeployerRequest} for chaining.
126 */
127 public ProjectDeployerRequest setAltReleaseDeploymentRepository( String theAltReleaseDeploymentRepositoryToBeSet )
128 {
129 this.altReleaseDeploymentRepository = theAltReleaseDeploymentRepositoryToBeSet;
130 return this;
131 }
132 }