mirror of https://github.com/apache/maven.git
Removed unused methods from ProjectBuilderConfig. Since we collapsed maven-project into maven-core, method not needed.
git-svn-id: https://svn.apache.org/repos/asf/maven/components/branches/MNG-2766@769957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
01f79cf31a
commit
abec748f23
|
@ -156,7 +156,6 @@ public class DefaultMavenExecutionRequest
|
|||
copy.setProfileManager( original.getProfileManager() );
|
||||
copy.setRemoteRepositories( original.getRemoteRepositories() );
|
||||
copy.setNoSnapshotUpdates( original.isNoSnapshotUpdates() );
|
||||
copy.setPlugins(original.getPlugins());//TODO - deeper copy
|
||||
return original;
|
||||
}
|
||||
|
||||
|
@ -702,10 +701,8 @@ public class DefaultMavenExecutionRequest
|
|||
projectBuildingConfiguration.setLocalRepository( getLocalRepository() );
|
||||
projectBuildingConfiguration.setExecutionProperties( getProperties() );
|
||||
projectBuildingConfiguration.setGlobalProfileManager( getProfileManager() );
|
||||
projectBuildingConfiguration.setUserProperties( getUserProperties() );
|
||||
projectBuildingConfiguration.setBuildStartTime( getStartTime() );
|
||||
projectBuildingConfiguration.setRemoteRepositories( getRemoteRepositories() );
|
||||
projectBuildingConfiguration.setPlugins(getPlugins());
|
||||
}
|
||||
|
||||
return projectBuildingConfiguration;
|
||||
|
|
|
@ -136,7 +136,7 @@ public class DefaultMavenProjectBuilder
|
|||
List<Profile> projectProfiles;
|
||||
Properties props = new Properties();
|
||||
props.putAll(configuration.getExecutionProperties());
|
||||
props.putAll(configuration.getUserProperties());
|
||||
|
||||
try
|
||||
{
|
||||
projectProfiles = DefaultProfileManager.getActiveProfilesFrom(configuration.getGlobalProfileManager(), props, domainModel.getModel() );
|
||||
|
|
|
@ -50,22 +50,6 @@ public class DefaultProjectBuilderConfiguration
|
|||
|
||||
private MavenProject topProject;
|
||||
|
||||
private Set<Plugin> plugins;
|
||||
|
||||
public void setPlugins(Set<Plugin> plugins)
|
||||
{
|
||||
this.plugins = plugins;
|
||||
}
|
||||
|
||||
public Set<Plugin> getPlugins()
|
||||
{
|
||||
if(plugins == null)
|
||||
{
|
||||
plugins = new HashSet<Plugin>();
|
||||
}
|
||||
return plugins;
|
||||
}
|
||||
|
||||
public MavenProject getTopLevelProjectFromReactor()
|
||||
{
|
||||
return topProject;
|
||||
|
@ -109,22 +93,6 @@ public class DefaultProjectBuilderConfiguration
|
|||
return this;
|
||||
}
|
||||
|
||||
public ProjectBuilderConfiguration setUserProperties( Properties userProperties )
|
||||
{
|
||||
this.userProperties = userProperties;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Properties getUserProperties()
|
||||
{
|
||||
if ( userProperties == null )
|
||||
{
|
||||
userProperties = new Properties();
|
||||
}
|
||||
|
||||
return userProperties;
|
||||
}
|
||||
|
||||
public Properties getExecutionProperties()
|
||||
{
|
||||
return executionProperties;
|
||||
|
|
|
@ -17,8 +17,6 @@ public interface ProjectBuilderConfiguration
|
|||
|
||||
ProfileManager getGlobalProfileManager();
|
||||
|
||||
Properties getUserProperties();
|
||||
|
||||
Properties getExecutionProperties();
|
||||
|
||||
ProjectBuilderConfiguration setGlobalProfileManager( ProfileManager globalProfileManager );
|
||||
|
@ -27,8 +25,6 @@ public interface ProjectBuilderConfiguration
|
|||
|
||||
ProjectBuilderConfiguration setRemoteRepositories( List<ArtifactRepository> remoteRepositories );
|
||||
|
||||
ProjectBuilderConfiguration setUserProperties( Properties userProperties );
|
||||
|
||||
ProjectBuilderConfiguration setExecutionProperties( Properties executionProperties );
|
||||
|
||||
//TODO: these do not belong here, we can profile things else where
|
||||
|
@ -40,7 +36,4 @@ public interface ProjectBuilderConfiguration
|
|||
|
||||
void setTopLevelProjectForReactor(MavenProject mavenProject);
|
||||
|
||||
void setPlugins(Set<Plugin> plugins);
|
||||
|
||||
Set<Plugin> getPlugins();
|
||||
}
|
||||
|
|
|
@ -585,7 +585,6 @@ public class MavenEmbedder
|
|||
|
||||
try
|
||||
{
|
||||
request.setPlugins(lifecycleExecutor.getPluginsBoundByDefaultToAllLifecycles("jar"));
|
||||
request = populator.populateDefaults( request, configuration );
|
||||
}
|
||||
catch ( MavenEmbedderException e )
|
||||
|
|
Loading…
Reference in New Issue