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 String
getCompilerSourceLevelDefault()
Returns a reasonable compiler source level default for this execution environment.String
getCompilerTargetLevelDefault()
Returns a reasonable compiler target level default for this execution environment.String
getProfileName()
Properties
getProfileProperties()
Set<String>
getSystemPackages()
Returns the list of packages (without versions) provided by the execution environment.boolean
isCompatibleCompilerTargetLevel(String target)
Returnsfalse
if classes compiled with the given compiler target level can certainly not be executed on this execution environment.String
toString()
-
-
-
Constructor Detail
-
CustomExecutionEnvironment
public CustomExecutionEnvironment(String profileName, List<SystemCapability> systemCapabilities)
-
-
Method Detail
-
getProfileName
public String getProfileName()
- Specified by:
getProfileName
in interfaceExecutionEnvironment
-
getProfileProperties
public Properties getProfileProperties()
- Specified by:
getProfileProperties
in interfaceExecutionEnvironment
-
getSystemPackages
public Set<String> getSystemPackages()
Description copied from interface:ExecutionEnvironment
Returns the list of packages (without versions) provided by the execution environment.- Specified by:
getSystemPackages
in interfaceExecutionEnvironment
-
getCompilerSourceLevelDefault
public String getCompilerSourceLevelDefault()
Description copied from interface:ExecutionEnvironment
Returns a reasonable compiler source level default for this execution environment.- Specified by:
getCompilerSourceLevelDefault
in interfaceExecutionEnvironment
- Returns:
- a compiler source level matching the execution environment, or
null
if unknown.
-
getCompilerTargetLevelDefault
public String getCompilerTargetLevelDefault()
Description copied from interface:ExecutionEnvironment
Returns a reasonable compiler target level default for this execution environment.- Specified by:
getCompilerTargetLevelDefault
in interfaceExecutionEnvironment
- Returns:
- a compiler target level matching the execution environment, or
null
if unknown.
-
isCompatibleCompilerTargetLevel
public boolean isCompatibleCompilerTargetLevel(String target)
Description copied from interface:ExecutionEnvironment
Returnsfalse
if classes compiled with the given compiler target level can certainly not be executed on this execution environment. Used to detect inconsistent configuration.- Specified by:
isCompatibleCompilerTargetLevel
in interfaceExecutionEnvironment
-
-