Skip to content

Commit

Permalink
GPWEBXML-6 changed from Set to List
Browse files Browse the repository at this point in the history
  • Loading branch information
Burt Beckwith committed Feb 14, 2012
1 parent 2a120f1 commit 5af1e21
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/_Events.groovy
Expand Up @@ -57,12 +57,12 @@ private void fixWebXml() {
webXmlFile.withWriter { it << XmlUtil.serialize(wxml) }
}

private Set<String> findFilterMappingNames(dom) {
Set names = []
private List<String> findFilterMappingNames(dom) {
List names = []

use (DOMCategory) {
def mappingNodes = dom.'filter-mapping'
mappingNodes.each { n ->
for (n in mappingNodes) {
names << n.'filter-name'.text()
}
}
Expand All @@ -80,8 +80,8 @@ private void sortFilterMappingNodes(dom, orderedFilterNames) {
followingNode = mappingNodes[-1].nextSibling

Set doneFilters = []
orderedFilterNames.each { f ->
mappingNodes.each { n ->
for (f in orderedFilterNames) {
for (n in mappingNodes) {
def filterName = n.'filter-name'.text()
if (!(filterName in doneFilters)) {
if (filterName == f || (f == '*' && !orderedFilterNames.contains(filterName))) {
Expand Down

0 comments on commit 5af1e21

Please sign in to comment.