1 package org.apache.maven.settings.building;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23 import java.util.Properties;
24
25
26
27
28
29
30 public class DefaultSettingsBuildingRequest
31 implements SettingsBuildingRequest
32 {
33
34 private File globalSettingsFile;
35
36 private File userSettingsFile;
37
38 private Properties systemProperties;
39
40 private Properties userProperties;
41
42 public File getGlobalSettingsFile()
43 {
44 return globalSettingsFile;
45 }
46
47 public DefaultSettingsBuildingRequest setGlobalSettingsFile( File globalSettingsFile )
48 {
49 this.globalSettingsFile = globalSettingsFile;
50
51 return this;
52 }
53
54 public File getUserSettingsFile()
55 {
56 return userSettingsFile;
57 }
58
59 public DefaultSettingsBuildingRequest setUserSettingsFile( File userSettingsFile )
60 {
61 this.userSettingsFile = userSettingsFile;
62
63 return this;
64 }
65
66 public Properties getSystemProperties()
67 {
68 if ( systemProperties == null )
69 {
70 systemProperties = new Properties();
71 }
72
73 return systemProperties;
74 }
75
76 public DefaultSettingsBuildingRequest setSystemProperties( Properties systemProperties )
77 {
78 if ( systemProperties != null )
79 {
80 this.systemProperties = new Properties();
81 this.systemProperties.putAll( systemProperties );
82 }
83 else
84 {
85 this.systemProperties = null;
86 }
87
88 return this;
89 }
90
91 public Properties getUserProperties()
92 {
93 if ( userProperties == null )
94 {
95 userProperties = new Properties();
96 }
97
98 return userProperties;
99 }
100
101 public DefaultSettingsBuildingRequest setUserProperties( Properties userProperties )
102 {
103 if ( userProperties != null )
104 {
105 this.userProperties = new Properties();
106 this.userProperties.putAll( userProperties );
107 }
108 else
109 {
110 this.userProperties = null;
111 }
112
113 return this;
114 }
115
116 }