Arduino with AVR Dragon

What in particular doesn't work? I'm trying to burn bootloaders from arduino using the dragon via jtag. I can do it using avrdude, but would be nice to do it using arduino too.