View Javadoc

1   package org.apache.maven.plugin.deploy;
2   
3   import org.apache.maven.project.MavenProject;
4   
5   /*
6    * Licensed to the Apache Software Foundation (ASF) under one
7    * or more contributor license agreements.  See the NOTICE file
8    * distributed with this work for additional information
9    * regarding copyright ownership.  The ASF licenses this file
10   * to you under the Apache License, Version 2.0 (the
11   * "License"); you may not use this file except in compliance
12   * with the License.  You may obtain a copy of the License at
13   *
14   *  http://www.apache.org/licenses/LICENSE-2.0
15   *
16   * Unless required by applicable law or agreed to in writing,
17   * software distributed under the License is distributed on an
18   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19   * KIND, either express or implied.  See the License for the
20   * specific language governing permissions and limitations
21   * under the License.
22   */
23  
24  /**
25   * 
26   * @author Robert Scholte
27   * @since 2.8.1
28   */
29  class DeployRequest
30  {
31  
32      // From AbstractDeployMojo
33      
34      private boolean updateReleaseInfo;
35      
36      private int retryFailedDeploymentCount;
37      
38      // From DeployMojo
39      
40      private MavenProject project;
41      
42      private String altDeploymentRepository;
43      
44      private String altSnapshotDeploymentRepository;
45      
46      private String altReleaseDeploymentRepository;
47  
48      /**
49       * @return the updateReleaseInfo
50       */
51      public boolean isUpdateReleaseInfo()
52      {
53          return updateReleaseInfo;
54      }
55  
56      /**
57       * @param updateReleaseInfo the updateReleaseInfo to set
58       */
59      public DeployRequest setUpdateReleaseInfo( boolean updateReleaseInfo )
60      {
61          this.updateReleaseInfo = updateReleaseInfo;
62          return this;
63      }
64  
65      /**
66       * @return the retryFailedDeploymentCount
67       */
68      public int getRetryFailedDeploymentCount()
69      {
70          return retryFailedDeploymentCount;
71      }
72  
73      /**
74       * @param retryFailedDeploymentCount the retryFailedDeploymentCount to set
75       */
76      public DeployRequest setRetryFailedDeploymentCount( int retryFailedDeploymentCount )
77      {
78          this.retryFailedDeploymentCount = retryFailedDeploymentCount;
79          return this;
80      }
81  
82      /**
83       * @return the project
84       */
85      public MavenProject getProject()
86      {
87          return project;
88      }
89  
90      /**
91       * @param project the project to set
92       */
93      public DeployRequest setProject( MavenProject project )
94      {
95          this.project = project;
96          return this;
97      }
98  
99      /**
100      * @return the altDeploymentRepository
101      */
102     public String getAltDeploymentRepository()
103     {
104         return altDeploymentRepository;
105     }
106 
107     /**
108      * @param altDeploymentRepository the altDeploymentRepository to set
109      */
110     public DeployRequest setAltDeploymentRepository( String altDeploymentRepository )
111     {
112         this.altDeploymentRepository = altDeploymentRepository;
113         return this;
114     }
115 
116     /**
117      * @return the altSnapshotDeploymentRepository
118      */
119     public String getAltSnapshotDeploymentRepository()
120     {
121         return altSnapshotDeploymentRepository;
122     }
123 
124     /**
125      * @param altSnapshotDeploymentRepository the altSnapshotDeploymentRepository to set
126      */
127     public DeployRequest setAltSnapshotDeploymentRepository( String altSnapshotDeploymentRepository )
128     {
129         this.altSnapshotDeploymentRepository = altSnapshotDeploymentRepository;
130         return this;
131     }
132 
133     /**
134      * @return the altReleaseDeploymentRepository
135      */
136     public String getAltReleaseDeploymentRepository()
137     {
138         return altReleaseDeploymentRepository;
139     }
140 
141     /**
142      * @param altReleaseDeploymentRepository the altReleaseDeploymentRepository to set
143      */
144     public DeployRequest setAltReleaseDeploymentRepository( String altReleaseDeploymentRepository )
145     {
146         this.altReleaseDeploymentRepository = altReleaseDeploymentRepository;
147         return this;
148     }
149 }