file = params.var(name);
// To make orderparams available for substitution in orderparam value
while (file.matches("^.*%[^%]+%.*$")) {
String p = file.replaceFirst("^.*%([^%]+)%.*$", "$1");
String s = params.var(p);
s = s.replace('\\','/');
file = file.replaceAll("%"+p+"%", s);
logger.debug("processing job parameter ["+name+"]: substitute %"+p+"% with "+s);
}
}