1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
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 }