Package org.eclipse.tycho.core.shared
Class TargetEnvironment
- java.lang.Object
-
- org.eclipse.tycho.core.shared.TargetEnvironment
-
public final class TargetEnvironment extends Object
-
-
Constructor Summary
Constructors Constructor Description TargetEnvironment()TargetEnvironment(String os, String ws, String arch)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetArch()Returns the architecture of the represented target environment.StringgetOs()Returns the operating system of the represented target environment.static TargetEnvironmentgetRunningEnvironment()StringgetWs()Returns the windowing system of the represented target environment.inthashCode()booleanmatch(String os, String ws, String arch)StringtoConfigSpec()Returns the target environment as string of the formws.os.arch.StringtoFilterExpression()Returns the target environment as LDAP filter expression.HashMap<String,String>toFilterProperties()Returns the target environment as map.StringtoString()
-
-
-
Method Detail
-
getOs
public String getOs()
Returns the operating system of the represented target environment.
-
getWs
public String getWs()
Returns the windowing system of the represented target environment.
-
getArch
public String getArch()
Returns the architecture of the represented target environment.
-
toConfigSpec
public String 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".
-
toFilterProperties
public HashMap<String,String> 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
HashMapwith the target environment set
-
toFilterExpression
public String 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.
-
getRunningEnvironment
public static TargetEnvironment getRunningEnvironment()
-
-