Skip to content

Commit

Permalink
urn:wildfly check in SubsystemSubtreeLocator
Browse files Browse the repository at this point in the history
  • Loading branch information
rsvoboda authored and rhatlapa committed Feb 6, 2017
1 parent 3ea71f6 commit 84079a9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,10 @@ public GPathResult locate(GPathResult root, OfflineOptions options) throws Excep
}

private static final class SubsystemSubtreeLocator implements SubtreeLocator {
private static final Class STANDALONE_OR_HOST_SCRIPT_CLASS = GroovyHolder.GROOVY.parseClass("root.profile.subsystem.find { [email protected]().startsWith(\"urn:jboss:domain:${subsystemName}:\") }");
private static final Class DOMAIN_SCRIPT_CLASS = GroovyHolder.GROOVY.parseClass("root.profiles.profile.find { it.@name == defaultProfile }.subsystem.find { [email protected]().startsWith(\"urn:jboss:domain:${subsystemName}:\") }");
private static final Class STANDALONE_OR_HOST_SCRIPT_CLASS = GroovyHolder.GROOVY.parseClass("root.profile.subsystem.find { [email protected]()"
+ ".startsWith(\"urn:jboss:domain:${subsystemName}:\") || [email protected]().startsWith(\"urn:wildfly:${subsystemName}:\")} ");
private static final Class DOMAIN_SCRIPT_CLASS = GroovyHolder.GROOVY.parseClass("root.profiles.profile.find { it.@name == defaultProfile }.subsystem"
+ ".find { [email protected]().startsWith(\"urn:jboss:domain:${subsystemName}:\") || [email protected]().startsWith(\"urn:wildfly:${subsystemName}:\") }");

private final String subsystemName;

Expand Down

0 comments on commit 84079a9

Please sign in to comment.