I'm trying to add a mime-mapping element to the web.xml.
My current best stab is:
def doWithWebDescriptor = { xml ->
xml + {
'mime-mapping' {
'extension'("htc")
'mime-type'("text/x-component")
}
}
}
I know the code is being run as the above actually outputs an invalid web.xml. The following seems to be more logical but it doesn't actually have any effect:
def doWithWebDescriptor = { xml ->
xml.'mime-mapping' + {
'extension'("htc")
'mime-type'("text/x-component")
}
}
edit: I'm using grails 1.0.3