|
|
|
|
|
|
|
|
public String substitute(String input, String allowed, |
|
|
public String substitute(String input, String allowed, |
|
|
boolean withEnv) { |
|
|
boolean withEnv) { |
|
|
if (input == null || input.length() <= 1 |
|
|
if (input == null || input.length() <= 1 |
|
|
|| input.indexOf('%') < 0 |
|
|
|
|
|
&& (!withEnv || input.indexOf("${") < 0)) { //$NON-NLS-1$ |
|
|
|
|
|
|
|
|
|| (input.indexOf('%') < 0 |
|
|
|
|
|
&& (!withEnv || input.indexOf("${") < 0))) { //$NON-NLS-1$ |
|
|
return input; |
|
|
return input; |
|
|
} |
|
|
} |
|
|
StringBuilder builder = new StringBuilder(); |
|
|
StringBuilder builder = new StringBuilder(); |