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 ExecutionEnvironment
getFullSpecification()
Returns the execution environment specification with information needed for the build.String
getProfileName()
Returns the name of the configured profile.boolean
isCustomProfile()
Returnstrue
if the configured profile is not one of the known standard execution environments.boolean
isIgnoredByResolver()
void
overrideProfileConfiguration(String profileName, String configurationOrigin)
Sets the effective profile configuration.void
setFullSpecificationForCustomProfile(List<SystemCapability> systemCapabilities)
Call-back for setting the actual specification for the configured custom profile.void
setProfileConfiguration(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:ExecutionEnvironmentConfiguration
Sets the effective profile configuration.- Specified by:
overrideProfileConfiguration
in 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:ExecutionEnvironmentConfiguration
Sets the effective profile configuration, unless the methodExecutionEnvironmentConfiguration.overrideProfileConfiguration(String, String)
has been called on this instance.- Specified by:
setProfileConfiguration
in 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:ExecutionEnvironmentConfiguration
Returns the name of the configured profile.- Specified by:
getProfileName
in interfaceExecutionEnvironmentConfiguration
-
isCustomProfile
public boolean isCustomProfile()
Description copied from interface:ExecutionEnvironmentConfiguration
Returnstrue
if the configured profile is not one of the known standard execution environments.- Specified by:
isCustomProfile
in interfaceExecutionEnvironmentConfiguration
-
setFullSpecificationForCustomProfile
public void setFullSpecificationForCustomProfile(List<SystemCapability> systemCapabilities) throws IllegalStateException
Description copied from interface:ExecutionEnvironmentConfiguration
Call-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:
setFullSpecificationForCustomProfile
in 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:ExecutionEnvironmentConfiguration
Returns the execution environment specification with information needed for the build.- Specified by:
getFullSpecification
in 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:
isIgnoredByResolver
in interfaceExecutionEnvironmentConfiguration
-
-