public class EclipseVariableResolver
extends java.lang.Object
| Constructor and Description |
|---|
EclipseVariableResolver() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map |
getEclipseVariables(EclipseProject project)
Returns a map with the eclipse variables as keys and their values as
values
|
static java.lang.String |
resolveEclipseVariables(java.lang.String string,
EclipseProject project,
java.util.Map otherProperties)
Substitutes all occurences of an eclipse variable (aka as property in ant)in the given string.
|
public static java.lang.String resolveEclipseVariables(java.lang.String string,
EclipseProject project,
java.util.Map otherProperties)
string is first searched
in otherProperties. If the value cannot be found there it will be resolved
as eclipse would do it.
If a variable contains an argument (${workspace_loc:/path/to/myWorkspace})
the argument is ignored.string - The string with variablesproject - The project that should be used for resolving variables like project_locotherProperties - Table with variable names as keys and their values as values. Might be null.public static java.util.Map getEclipseVariables(EclipseProject project)