View Javadoc
1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one
3    * or more contributor license agreements.  See the NOTICE file
4    * distributed with this work for additional information
5    * regarding copyright ownership.  The ASF licenses this file
6    * to you under the Apache License, Version 2.0 (the
7    * "License"); you may not use this file except in compliance
8    * with the License.  You may obtain a copy of the License at
9    *
10   *   http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing,
13   * software distributed under the License is distributed on an
14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15   * KIND, either express or implied.  See the License for the
16   * specific language governing permissions and limitations
17   * under the License.
18   */
19  package org.apache.maven.project;
20  
21  import java.util.Date;
22  import java.util.Properties;
23  
24  import org.apache.maven.artifact.repository.ArtifactRepository;
25  import org.apache.maven.profiles.ProfileManager;
26  
27  /**
28   * DefaultProjectBuilderConfiguration
29   */
30  @Deprecated
31  public class DefaultProjectBuilderConfiguration implements ProjectBuilderConfiguration {
32  
33      private ProfileManager globalProfileManager;
34  
35      private ArtifactRepository localRepository;
36  
37      private Properties userProperties;
38  
39      private Properties executionProperties = System.getProperties();
40  
41      private Date buildStartTime;
42  
43      public DefaultProjectBuilderConfiguration() {}
44  
45      public ProjectBuilderConfiguration setGlobalProfileManager(ProfileManager globalProfileManager) {
46          this.globalProfileManager = globalProfileManager;
47          return this;
48      }
49  
50      public ProfileManager getGlobalProfileManager() {
51          return globalProfileManager;
52      }
53  
54      public ProjectBuilderConfiguration setLocalRepository(ArtifactRepository localRepository) {
55          this.localRepository = localRepository;
56          return this;
57      }
58  
59      public ArtifactRepository getLocalRepository() {
60          return localRepository;
61      }
62  
63      public ProjectBuilderConfiguration setUserProperties(Properties userProperties) {
64          this.userProperties = userProperties;
65          return this;
66      }
67  
68      public Properties getUserProperties() {
69          if (userProperties == null) {
70              userProperties = new Properties();
71          }
72  
73          return userProperties;
74      }
75  
76      public Properties getExecutionProperties() {
77          return executionProperties;
78      }
79  
80      public ProjectBuilderConfiguration setExecutionProperties(Properties executionProperties) {
81          this.executionProperties = executionProperties;
82          return this;
83      }
84  
85      public Date getBuildStartTime() {
86          return buildStartTime;
87      }
88  
89      public ProjectBuilderConfiguration setBuildStartTime(Date buildStartTime) {
90          this.buildStartTime = buildStartTime;
91          return this;
92      }
93  }