I'm using cactus to test an enterprise application. I need to have a test EAR (with the cactus tests as a separate web app) and a real EAR (with no cactus) for deployment onto the production server.
I would like to be slick about this, and use the same application.xml file for both, but I need to have ant inject an extra <module> tag into the application.xml to hold the tests. Are there any ant tasks that can deal with xml files (or deployment descriptors in general) in a nice way?
I suppose I could write my own ant task and just use SAXP or something like that, but I'd rather not reinvent the wheel.