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 boolean
equals(Object obj)
String
getArch()
Returns the architecture of the represented target environment.String
getOs()
Returns the operating system of the represented target environment.static TargetEnvironment
getRunningEnvironment()
String
getWs()
Returns the windowing system of the represented target environment.int
hashCode()
boolean
match(String os, String ws, String arch)
String
toConfigSpec()
Returns the target environment as string of the formws.os.arch
.String
toFilterExpression()
Returns the target environment as LDAP filter expression.HashMap<String,String>
toFilterProperties()
Returns the target environment as map.String
toString()
-
-
-
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
HashMap
with 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
true
when installing for this target environment.
-
getRunningEnvironment
public static TargetEnvironment getRunningEnvironment()
-
-