Package org.eclipse.tycho.core.ee
Class ExecutionEnvironmentConfigurationImpl
- java.lang.Object
-
- org.eclipse.tycho.core.ee.ExecutionEnvironmentConfigurationImpl
-
- All Implemented Interfaces:
ExecutionEnvironmentConfiguration
public class ExecutionEnvironmentConfigurationImpl extends Object implements ExecutionEnvironmentConfiguration
-
-
Constructor Summary
Constructors Constructor Description ExecutionEnvironmentConfigurationImpl(org.codehaus.plexus.logging.Logger logger, boolean ignoredByResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionEnvironmentgetFullSpecification()Returns the execution environment specification with information needed for the build.StringgetProfileName()Returns the name of the configured profile.booleanisCustomProfile()Returnstrueif the configured profile is not one of the known standard execution environments.booleanisIgnoredByResolver()voidoverrideProfileConfiguration(String profileName, String configurationOrigin)Sets the effective profile configuration.voidsetFullSpecificationForCustomProfile(List<SystemCapability> systemCapabilities)Call-back for setting the actual specification for the configured custom profile.voidsetProfileConfiguration(String profileName, String configurationOrigin)Sets the effective profile configuration, unless the methodExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)has been called on this instance.
-
-
-
Method Detail
-
overrideProfileConfiguration
public void overrideProfileConfiguration(String profileName, String configurationOrigin) throws IllegalStateException
Description copied from interface:ExecutionEnvironmentConfigurationSets the effective profile configuration.- Specified by:
overrideProfileConfigurationin interfaceExecutionEnvironmentConfiguration- Throws:
IllegalStateException- if the configuration has been already frozen by calling any one of the getters defined inExecutionEnvironmentConfiguration
-
setProfileConfiguration
public void setProfileConfiguration(String profileName, String configurationOrigin) throws IllegalStateException
Description copied from interface:ExecutionEnvironmentConfigurationSets the effective profile configuration, unless the methodExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)has been called on this instance.- Specified by:
setProfileConfigurationin interfaceExecutionEnvironmentConfiguration- Throws:
IllegalStateException- if the configuration has been already frozen by calling any one of the getters defined inExecutionEnvironmentConfiguration
-
getProfileName
public String getProfileName()
Description copied from interface:ExecutionEnvironmentConfigurationReturns the name of the configured profile.- Specified by:
getProfileNamein interfaceExecutionEnvironmentConfiguration
-
isCustomProfile
public boolean isCustomProfile()
Description copied from interface:ExecutionEnvironmentConfigurationReturnstrueif the configured profile is not one of the known standard execution environments.- Specified by:
isCustomProfilein interfaceExecutionEnvironmentConfiguration
-
setFullSpecificationForCustomProfile
public void setFullSpecificationForCustomProfile(List<SystemCapability> systemCapabilities) throws IllegalStateException
Description copied from interface:ExecutionEnvironmentConfigurationCall-back for setting the actual specification for the configured custom profile. The specification, e.g. the list of provided packages, is read from the target platform.- Specified by:
setFullSpecificationForCustomProfilein interfaceExecutionEnvironmentConfiguration- Throws:
IllegalStateException- if the configured execution environment profile is not a custom profile- See Also:
ExecutionEnvironmentConfiguration.isCustomProfile()
-
getFullSpecification
public ExecutionEnvironment getFullSpecification() throws IllegalStateException
Description copied from interface:ExecutionEnvironmentConfigurationReturns the execution environment specification with information needed for the build.- Specified by:
getFullSpecificationin interfaceExecutionEnvironmentConfiguration- Throws:
IllegalStateException- if a custom execution environment profile has been configure, andExecutionEnvironmentConfiguration.setFullSpecificationForCustomProfile(List)has not been called.- See Also:
ExecutionEnvironment
-
isIgnoredByResolver
public boolean isIgnoredByResolver()
- Specified by:
isIgnoredByResolverin interfaceExecutionEnvironmentConfiguration
-
-