Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve env properties in SelectDestination #607

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 @@ -101,7 +101,7 @@ public void setConfiguration (Configuration cfg) {
public void setConfiguration(Element xml) throws ConfigurationException {
for (Element ep : xml.getChildren("endpoint")) {
String destination = QFactory.getAttributeValue(ep, "destination");
StringTokenizer st = new StringTokenizer(ep.getText());
StringTokenizer st = new StringTokenizer(Environment.get(ep.getTextTrim()));
while (st.hasMoreElements()) {
BinRange br = new BinRange(destination, st.nextToken());
binranges.add(br);
Expand All @@ -110,7 +110,7 @@ public void setConfiguration(Element xml) throws ConfigurationException {
for (Element re : xml.getChildren("regexp")) {
String destination = QFactory.getAttributeValue(re, "destination");
regexps.add(
new PanRegExp(QFactory.getAttributeValue(re, "destination"), re.getTextTrim())
new PanRegExp(QFactory.getAttributeValue(re, "destination"), Environment.get(re.getTextTrim()))
);
}
LogEvent evt = Log.getLog(Q2.LOGGER_NAME, this.getClass().getName()).createLogEvent("config");
Expand Down
Loading