java.lang.Object
org.eclipse.tycho.TargetEnvironment
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetArch()Returns the architecture of the represented target environment.getOs()Returns the operating system of the represented target environment.static TargetEnvironmentgetWs()Returns the windowing system of the represented target environment.inthashCode()booleanbooleanbooleanmatch(org.eclipse.equinox.p2.metadata.expression.IMatchExpression<org.eclipse.equinox.p2.metadata.IInstallableUnit> filter) booleanmatch(org.osgi.framework.Filter filter) Returns the target environment as string of the formws.os.arch.Returns the target environment as LDAP filter expression.Returns the target environment as map.toString()
-
Constructor Details
-
TargetEnvironment
public TargetEnvironment() -
TargetEnvironment
-
-
Method Details
-
getOs
Returns the operating system of the represented target environment. -
getWs
Returns the windowing system of the represented target environment. -
getArch
Returns the architecture of the represented target environment. -
match
-
match
public boolean match(org.osgi.framework.Filter filter) -
toConfigSpec
Returns the target environment as string of the formws.os.arch. This format is used by the p2 publishers and in that context called "configuration" or "config spec". -
isWindows
public boolean isWindows() -
toFilterProperties
Returns the target environment as map. The keys are "osgi.ws", "osgi.os", and "osgi.arch". This format is used by the p2 slicer to filter installable units by environments.- Returns:
- a new instance of
LinkedHashMapwith the target environment set
-
match
public boolean match(org.eclipse.equinox.p2.metadata.expression.IMatchExpression<org.eclipse.equinox.p2.metadata.IInstallableUnit> filter) -
toFilterExpression
Returns the target environment as LDAP filter expression. This format is used in p2 metadata.- Returns:
- the LDAP that evaluates to
truewhen installing for this target environment.
-
toString
-
hashCode
public int hashCode() -
equals
-
getRunningEnvironment
-