Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Mar 19, 2020
1 parent c223437 commit 6ba753f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gradle/ide.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ idea {
}
codeStyle {
java {
classCountToUseImportOnDemand = 99
classCountToUseImportOnDemand = 999
}
}
encodings {
Expand Down Expand Up @@ -130,6 +130,12 @@ idea {
}
}

/**
* Parses a given XML file, applies a set of changes, and writes those changes back to the original file.
*
* @param path Path to existing XML file
* @param action Action to perform on parsed XML document
*/
void modifyXml(Object path, Action<? super Node> action) {
File xmlFile = project.file(path)
Node xml = new XmlParser().parse(xmlFile)
Expand Down

0 comments on commit 6ba753f

Please sign in to comment.