Skip to content

Commit d93bd3e

Browse files
committed
GRAILS-3847 applied patch to format web.xml
1 parent d1bb8ea commit d93bd3e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/_GrailsWar.groovy

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,15 @@ target (war: "The implementation target") {
165165
}
166166
}
167167
}
168+
168169
ant.copy(file:webXmlFile.absolutePath, tofile:"${stagingDir}/WEB-INF/web.xml", overwrite:true)
170+
171+
def webXML = new File("${stagingDir}/WEB-INF/web.xml")
172+
def xmlInput = new XmlParser().parse(webXML)
173+
webXML.withWriter { xmlOutput ->
174+
new XmlNodePrinter(new PrintWriter(xmlOutput), '\t').print(xmlInput)
175+
}
176+
169177
ant.delete(file:webXmlFile)
170178

171179

0 commit comments

Comments
 (0)