Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -457,12 +457,24 @@ public void setEnvironment(Map<String, String> env, IBuildConfiguration config,
case IEnvironmentVariable.ENVVAR_REPLACE:
env.put(name, var.getValue());
break;
case IEnvironmentVariable.ENVVAR_APPEND:
env.put(name, env.get(name) + var.getDelimiter() + var.getValue());
case IEnvironmentVariable.ENVVAR_APPEND: {
String oldValue = env.get(name);
if (oldValue == null) {
env.put(name, var.getValue());
} else {
env.put(name, oldValue + var.getDelimiter() + var.getValue());
}
break;
case IEnvironmentVariable.ENVVAR_PREPEND:
env.put(name, var.getValue() + var.getDelimiter() + env.get(name));
}
case IEnvironmentVariable.ENVVAR_PREPEND: {
String oldValue = env.get(name);
if (oldValue == null) {
env.put(name, var.getValue());
} else {
env.put(name, var.getValue() + var.getDelimiter() + oldValue);
}
break;
}
case IEnvironmentVariable.ENVVAR_REMOVE:
env.remove(name);
break;
Expand Down
Loading