Package org.eclipse.tycho.core.ee
Class CustomExecutionEnvironment
- java.lang.Object
-
- org.eclipse.tycho.core.ee.CustomExecutionEnvironment
-
- All Implemented Interfaces:
ExecutionEnvironment
public class CustomExecutionEnvironment extends Object implements ExecutionEnvironment
-
-
Constructor Summary
Constructors Constructor Description CustomExecutionEnvironment(String profileName, List<SystemCapability> systemCapabilities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCompilerSourceLevelDefault()Returns a reasonable compiler source level default for this execution environment.StringgetCompilerTargetLevelDefault()Returns a reasonable compiler target level default for this execution environment.StringgetProfileName()PropertiesgetProfileProperties()Set<String>getSystemPackages()Returns the list of packages (without versions) provided by the execution environment.booleanisCompatibleCompilerTargetLevel(String target)Returnsfalseif classes compiled with the given compiler target level can certainly not be executed on this execution environment.StringtoString()
-
-
-
Constructor Detail
-
CustomExecutionEnvironment
public CustomExecutionEnvironment(String profileName, List<SystemCapability> systemCapabilities)
-
-
Method Detail
-
getProfileName
public String getProfileName()
- Specified by:
getProfileNamein interfaceExecutionEnvironment
-
getProfileProperties
public Properties getProfileProperties()
- Specified by:
getProfilePropertiesin interfaceExecutionEnvironment
-
getSystemPackages
public Set<String> getSystemPackages()
Description copied from interface:ExecutionEnvironmentReturns the list of packages (without versions) provided by the execution environment.- Specified by:
getSystemPackagesin interfaceExecutionEnvironment
-
getCompilerSourceLevelDefault
public String getCompilerSourceLevelDefault()
Description copied from interface:ExecutionEnvironmentReturns a reasonable compiler source level default for this execution environment.- Specified by:
getCompilerSourceLevelDefaultin interfaceExecutionEnvironment- Returns:
- a compiler source level matching the execution environment, or
nullif unknown.
-
getCompilerTargetLevelDefault
public String getCompilerTargetLevelDefault()
Description copied from interface:ExecutionEnvironmentReturns a reasonable compiler target level default for this execution environment.- Specified by:
getCompilerTargetLevelDefaultin interfaceExecutionEnvironment- Returns:
- a compiler target level matching the execution environment, or
nullif unknown.
-
isCompatibleCompilerTargetLevel
public boolean isCompatibleCompilerTargetLevel(String target)
Description copied from interface:ExecutionEnvironmentReturnsfalseif classes compiled with the given compiler target level can certainly not be executed on this execution environment. Used to detect inconsistent configuration.- Specified by:
isCompatibleCompilerTargetLevelin interfaceExecutionEnvironment
-
-