1 | |
package org.apache.maven.project; |
2 | |
|
3 | |
import org.apache.maven.artifact.repository.ArtifactRepository; |
4 | |
import org.apache.maven.profiles.ProfileManager; |
5 | |
|
6 | |
import java.util.Properties; |
7 | |
|
8 | |
public class DefaultProjectBuilderConfiguration |
9 | |
implements ProjectBuilderConfiguration |
10 | |
{ |
11 | |
|
12 | |
private ProfileManager globalProfileManager; |
13 | |
|
14 | |
private ArtifactRepository localRepository; |
15 | |
|
16 | |
private Properties userProperties; |
17 | |
|
18 | 0 | private Properties executionProperties = System.getProperties(); |
19 | |
|
20 | |
public DefaultProjectBuilderConfiguration() |
21 | 0 | { |
22 | 0 | } |
23 | |
|
24 | |
public ProjectBuilderConfiguration setGlobalProfileManager( ProfileManager globalProfileManager ) |
25 | |
{ |
26 | 0 | this.globalProfileManager = globalProfileManager; |
27 | 0 | return this; |
28 | |
} |
29 | |
|
30 | |
public ProfileManager getGlobalProfileManager() |
31 | |
{ |
32 | 0 | return globalProfileManager; |
33 | |
} |
34 | |
|
35 | |
public ProjectBuilderConfiguration setLocalRepository( ArtifactRepository localRepository ) |
36 | |
{ |
37 | 0 | this.localRepository = localRepository; |
38 | 0 | return this; |
39 | |
} |
40 | |
|
41 | |
public ArtifactRepository getLocalRepository() |
42 | |
{ |
43 | 0 | return localRepository; |
44 | |
} |
45 | |
|
46 | |
public ProjectBuilderConfiguration setUserProperties( Properties userProperties ) |
47 | |
{ |
48 | 0 | this.userProperties = userProperties; |
49 | 0 | return this; |
50 | |
} |
51 | |
|
52 | |
public Properties getUserProperties() |
53 | |
{ |
54 | 0 | if ( userProperties == null ) |
55 | |
{ |
56 | 0 | userProperties = new Properties(); |
57 | |
} |
58 | |
|
59 | 0 | return userProperties; |
60 | |
} |
61 | |
|
62 | |
public Properties getExecutionProperties() |
63 | |
{ |
64 | 0 | return executionProperties; |
65 | |
} |
66 | |
|
67 | |
public ProjectBuilderConfiguration setExecutionProperties( Properties executionProperties ) |
68 | |
{ |
69 | 0 | this.executionProperties = executionProperties; |
70 | 0 | return this; |
71 | |
} |
72 | |
|
73 | |
} |