View Javadoc

1   package org.apache.continuum.configuration;
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.commons.lang.builder.ReflectionToStringBuilder;
23  
24  import java.io.File;
25  import java.util.List;
26  
27  /**
28   * @author <a href="mailto:olamy@apache.org">olamy</a>
29   * @version $Id: GeneralConfiguration.java 748163 2009-02-26 14:47:01Z ctan $
30   * @since 17 juin 2008
31   */
32  public class GeneralConfiguration
33  {
34      private File workingDirectory;
35  
36      private File buildOutputDirectory;
37  
38      private File deploymentRepositoryDirectory;
39  
40      private String baseUrl;
41  
42      private ProxyConfiguration proxyConfiguration;
43      
44      private File releaseOutputDirectory;
45      
46      private int numberOfBuildsInParallel = 1;
47  
48      private List<BuildAgentConfiguration> buildAgents;
49      
50      private List<BuildAgentGroupConfiguration> buildAgentGroups;
51  
52      public GeneralConfiguration()
53      {
54          // nothing here
55      }
56  
57      public File getWorkingDirectory()
58      {
59          return workingDirectory;
60      }
61  
62      public void setWorkingDirectory( File workingDirectory )
63      {
64          this.workingDirectory = workingDirectory;
65      }
66  
67      public File getBuildOutputDirectory()
68      {
69          return buildOutputDirectory;
70      }
71  
72      public void setBuildOutputDirectory( File buildOutputDirectory )
73      {
74          this.buildOutputDirectory = buildOutputDirectory;
75      }
76  
77      public File getDeploymentRepositoryDirectory()
78      {
79          return deploymentRepositoryDirectory;
80      }
81  
82      public void setDeploymentRepositoryDirectory( File deploymentRepositoryDirectory )
83      {
84          this.deploymentRepositoryDirectory = deploymentRepositoryDirectory;
85      }
86  
87      public String getBaseUrl()
88      {
89          return baseUrl;
90      }
91  
92      public void setBaseUrl( String baseUrl )
93      {
94          this.baseUrl = baseUrl;
95      }
96  
97      public ProxyConfiguration getProxyConfiguration()
98      {
99          return proxyConfiguration;
100     }
101 
102     public void setProxyConfiguration( ProxyConfiguration proxyConfiguration )
103     {
104         this.proxyConfiguration = proxyConfiguration;
105     }
106 
107     @Override
108     public String toString()
109     {
110         return ReflectionToStringBuilder.toString( this );
111     }
112 
113     public File getReleaseOutputDirectory()
114     {
115         return releaseOutputDirectory;
116     }
117     
118     public void setReleaseOutputDirectory( File releaseOutputDirectory )
119     {
120         this.releaseOutputDirectory = releaseOutputDirectory;
121     }
122 
123     public int getNumberOfBuildsInParallel()
124     {
125         return numberOfBuildsInParallel;
126     }
127 
128     public void setNumberOfBuildsInParallel( int numberOfBuildsInParallel )
129     {
130         this.numberOfBuildsInParallel = numberOfBuildsInParallel;
131     }
132 
133     public List<BuildAgentConfiguration> getBuildAgents()
134     {
135         return buildAgents;
136     }
137 
138     public void setBuildAgents( List<BuildAgentConfiguration> buildAgents )
139     {
140         this.buildAgents = buildAgents;
141     }
142 
143     public List<BuildAgentGroupConfiguration> getBuildAgentGroups()
144     {
145         return buildAgentGroups;
146     }
147 
148     public void setBuildAgentGroups( List<BuildAgentGroupConfiguration> buildAgentGroups )
149     {
150         this.buildAgentGroups = buildAgentGroups;
151     }
152 }